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

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


Author: thias

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

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



Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/python-twisted-lore/devel/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- .cvsignore	21 May 2008 11:03:56 -0000	1.3
+++ .cvsignore	23 Dec 2008 21:23:00 -0000	1.4
@@ -1 +1 @@
-TwistedLore-0.3.0.tar.bz2
+TwistedLore-8.1.0.tar.bz2


Index: python-twisted-lore.spec
===================================================================
RCS file: /cvs/extras/rpms/python-twisted-lore/devel/python-twisted-lore.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- python-twisted-lore.spec	30 Nov 2008 12:37:29 -0000	1.6
+++ python-twisted-lore.spec	23 Dec 2008 21:23:00 -0000	1.7
@@ -1,23 +1,18 @@
-%{?!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 TwistedLore
+%{!?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-lore
-Version:        0.3.0
-Release:        3%{?dist}
-Summary:        Twisted documentation system
-
+Version:        8.1.0
+Release:        2%{?dist}
+Summary:        Documentation generator with HTML and LaTeX support
 Group:          Development/Libraries
 License:        MIT
-URL:            http://www.twistedmatrix.com
-Source0:        http://tmrc.mit.edu/mirror/twisted/Lore/0.3/TwistedLore-%{version}.tar.bz2
+URL:            http://www.twistedmatrix.com/trac/wiki/TwistedLore
+Source0:        http://tmrc.mit.edu/mirror/twisted/Lore/8.1/TwistedLore-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
-BuildRequires:  %{python}-twisted-core >= 2.5.0
-BuildRequires:  python-devel
-
-Requires:       %{python}-twisted-core
+BuildRequires:  %{python}-twisted-core >= 8.1.0
+BuildRequires:  %{python}-devel
+Requires:       %{python}-twisted-core >= 8.1.0
 Requires:       %{python}-twisted-web
 
 # a noarch-turned-arch package should not have debuginfo
@@ -30,50 +25,61 @@
 documentation into other formats such as PDF, HTML.
 
 %prep
-%setup -n %{origname}-%{version} -q
+%setup -q -n TwistedLore-%{version}
 
-%{__sed} -i 's/\r//' doc/howto/listings/lore/1st_example.html
-%{__sed} -i 's/\r//' doc/howto/listings/lore/factory.py*
-%{__sed} -i 's/\r//' doc/howto/listings/lore/spitters.py*
-%{__sed} -i 's/\r//' doc/howto/listings/lore/plugins.tml
+# Fix line endings
+%{__sed} -i -e 's,\r$,,' doc/howto/listings/lore/*
 
 %build
+%{python} setup.py build
 
 %install
-rm -rf $RPM_BUILD_ROOT
-# 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}
+%{__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 --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 LICENSE NEWS README doc/*
 %{_bindir}/bookify
 %{_bindir}/lore
-
+%{_mandir}/man1/lore.1*
 %{python_sitearch}/twisted/lore/
-
 %{python_sitearch}/twisted/plugins/twisted_lore.py*
 
-%if 0%{?fedora} >= 9
-  %{python_sitearch}/Twisted_Lore-%{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.3.0-3
 - Fix locations for Python 2.6
 


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/python-twisted-lore/devel/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sources	21 May 2008 11:03:56 -0000	1.3
+++ sources	23 Dec 2008 21:23:00 -0000	1.4
@@ -1 +1 @@
-3e1476bf25f420bcd76351a22630e7c3  TwistedLore-0.3.0.tar.bz2
+ec7226b88218586ec1d5c3b3624376b7  TwistedLore-8.1.0.tar.bz2




More information about the fedora-extras-commits mailing list