rpms/python-twisted-words/devel .cvsignore, 1.3, 1.4 python-twisted-words.spec, 1.6, 1.7 sources, 1.3, 1.4

Matthias Saou thias at fedoraproject.org
Tue Dec 23 21:32:43 UTC 2008


Author: thias

Update of /cvs/extras/rpms/python-twisted-words/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2610

Modified Files:
	.cvsignore python-twisted-words.spec sources 
Log Message:
Update to 8.1.0.



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-twisted-words/devel/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- .cvsignore	5 Sep 2007 13:52:24 -0000	1.3
+++ .cvsignore	23 Dec 2008 21:32:12 -0000	1.4
@@ -1 +1 @@
-TwistedWords-0.5.0.tar.bz2
+TwistedWords-8.1.0.tar.bz2


Index: python-twisted-words.spec
===================================================================
RCS file: /cvs/extras/rpms/python-twisted-words/devel/python-twisted-words.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- python-twisted-words.spec	30 Nov 2008 12:43:48 -0000	1.6
+++ python-twisted-words.spec	23 Dec 2008 21:32:12 -0000	1.7
@@ -1,23 +1,19 @@
-%{?!python:%define python python}
-%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-
-%define origname TwistedWords
+%{!?python:%define python python}
+%{!?python_sitearch: %define python_sitearch %(%{python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 Name:           %{python}-twisted-words
-Version:        0.5.0
-Release:        5%{?dist}
-Summary:        Twisted Words contains Instant Messaging implementations
-
+Version:        8.1.0
+Release:        2%{?dist}
+Summary:        Twisted Instant Messaging implementations
 Group:          Development/Libraries
 License:        MIT
-URL:            http://www.twistedmatrix.com
-Source0:        http://tmrc.mit.edu/mirror/twisted/Words/0.5/TwistedWords-%{version}.tar.bz2
+URL:            http://twistedmatrix.com/trac/wiki/TwistedWords
+Source0:        http://tmrc.mit.edu/mirror/twisted/Words/8.1/TwistedWords-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires:  %{python}-twisted-core >= 2.5.0
+BuildRequires:  %{python}-twisted-core >= 8.1.0
 BuildRequires:  %{python}-devel
-
-Requires:       %{python}-twisted-core >= 2.5.0
+Requires:       %{python}-twisted-core >= 8.1.0
+Requires:       %{python}-twisted-web
 
 # a noarch-turned-arch package should not have debuginfo
 %define debug_package %{nil}
@@ -25,53 +21,71 @@
 %description
 Twisted is an event-based framework for internet applications.
 
-Twisted Words contains implementations of many Instant Messaging
-protocols, including IRC, Jabber, MSN, OSCAR (AIM & ICQ), TOC (AOL),
-and some functionality for creating bots, inter-protocol gateways, and
-a client application for many of the protocols.
+Twisted Words contains implementations of many Instant Messaging protocols,
+including IRC, Jabber, MSN, OSCAR (AIM & ICQ), TOC (AOL), and some
+functionality for creating bots, inter-protocol gateways, and a client
+application for many of the protocols.
 
 In support of Jabber, Twisted Words also contains X-ish, a library for
 processing XML with Twisted and Python, with support for a Pythonic DOM and
 an XPath-like toolkit.
 
 %prep
-%setup -n %{origname}-%{version} -q
+%setup -q -n TwistedWords-%{version}
+
+# Fix doc permissions
+%{__chmod} -x doc/examples/oscardemo.py
 
 %build
+%{python} setup.py build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-# this is a pure python package, but extending the twisted namespace from
+%{__rm} -rf %{buildroot}
+
+# This is a pure python package, but extending the twisted namespace from
 # python-twisted-core, which is arch-specific, so it needs to go in sitearch
-%{__python} setup.py install -O1 --root $RPM_BUILD_ROOT --install-purelib %{python_sitearch}
+%{python} setup.py install -O1 --skip-build \
+    --install-purelib %{python_sitearch} --root %{buildroot}
 
 # Man pages
-mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
-cp -a doc/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/
-rm -rf doc/man
+%{__mkdir_p} %{buildroot}%{_mandir}/man1/
+%{__cp} -a doc/man/*.1 %{buildroot}%{_mandir}/man1/
+%{__rm} -rf doc/man
+
+# See if there's any egg-info
+if [ -f %{buildroot}%{python_sitearch}/Twisted*.egg-info ]; then
+    echo %{buildroot}%{python_sitearch}/Twisted*.egg-info |
+        %{__sed} -e 's|^%{buildroot}||'
+fi > egg-info
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+%{__rm} -rf %{buildroot}
 
-%post -p %{_libexecdir}/twisted-dropin-cache
+%post
+if [ -x %{_libexecdir}/twisted-dropin-cache ]; then
+    %{_libexecdir}/twisted-dropin-cache || :
+fi
+
+%postun
+if [ -x %{_libexecdir}/twisted-dropin-cache ]; then
+    %{_libexecdir}/twisted-dropin-cache || :
+fi
 
-%postun -p %{_libexecdir}/twisted-dropin-cache
-
-%files
+%files -f egg-info
 %defattr(-,root,root,-)
-%doc README LICENSE NEWS doc/*
-%{_mandir}/man1/*
+%doc README LICENSE doc/* NEWS
 %{_bindir}/im
-
+%{_mandir}/man1/im.1*
+%{_mandir}/man1/t-im.1*
 %{python_sitearch}/twisted/words/
-
 %{python_sitearch}/twisted/plugins/twisted_words.py*
 
-%if 0%{?fedora} >= 9
-  %{python_sitearch}/Twisted_Words-%{version}-py?.?.egg-info
-%endif
-
 %changelog
+* Tue Dec 23 2008 Matthias Saou <http://freshrpms.net/> 8.1.0-2
+- Update to 8.1.0.
+- Merge back changes from Paul Howarth.
+- Make sure the scriplets never return a non-zero exit status.
+
 * Sun Nov 30 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm at gmail.com> - 0.5.0-5
 - Fix locations for Python 2.6
 


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-twisted-words/devel/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sources	5 Sep 2007 13:52:24 -0000	1.3
+++ sources	23 Dec 2008 21:32:12 -0000	1.4
@@ -1 +1 @@
-7004f93a2358abe093bed55c2fff25ef  TwistedWords-0.5.0.tar.bz2
+40cecdc6d58efefdb02b50961bb9a381  TwistedWords-8.1.0.tar.bz2




More information about the fedora-extras-commits mailing list