diff --git a/.cvsignore b/.cvsignore index e69de29..1fcb35a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +TwistedLore-0.2.0.tar.bz2 diff --git a/python-twisted-lore.spec b/python-twisted-lore.spec new file mode 100644 index 0000000..6649088 --- /dev/null +++ b/python-twisted-lore.spec @@ -0,0 +1,111 @@ +%{?!python:%define python python} +%{?!pybasever:%{expand:%%define pybasever %(%{__python} -c "import sys ; print sys.version[:3]")}} +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +%define origname TwistedLore + +Name: %{python}-twisted-lore +Version: 0.2.0 +Release: 4%{?dist} +Summary: Twisted documentation system + +Group: Development/Libraries +License: MIT +URL: http://www.twistedmatrix.com +Source0: http://tmrc.mit.edu/mirror/twisted/Lore/0.2/TwistedLore-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: %{python}-twisted-core >= 2.4.0 +BuildRequires: python-devel + +# for FC3 and earlier +%if "%{pybasever}" < "2.4" +Requires: python(abi) = %{pybasever} +%endif + +Requires: %{python}-twisted-core +Requires: %{python}-twisted-web + +# a noarch-turned-arch package should not have debuginfo +%define debug_package %{nil} + +%description +Twisted is an event-based framework for internet applications. + +Lore is a complete documentation system based on XHTML and can generate +documentation into other formats such as PDF, HTML. + +%prep +%setup -n %{origname}-%{version} -q + +%{__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 + +%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} + + +# Man pages +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/ +cp -a doc/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1/ +rm -rf doc/man + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p %{_libexecdir}/twisted-dropin-cache + +%postun -p %{_libexecdir}/twisted-dropin-cache + +%files +%defattr(-,root,root,-) +%doc README LICENSE NEWS doc/* +%{_mandir}/man1/* +%{_bindir}/bookify +%{_bindir}/lore + +%{python_sitearch}/twisted/lore/ + +%{python_sitearch}/twisted/plugins/twisted_lore.py* + +%changelog +* Wed Jan 03 2007 Thomas Vander Stichele +- 0.2.0-4 +- add python-devel BR +- add docs + +* Wed Nov 01 2006 Thomas Vander Stichele +- 0.2.0-3 +- fix end-of-line on some files + +* Tue Sep 26 2006 Thomas Vander Stichele +- 0.2.0-2 +- no longer ghost .pyo files +- rebuild dropin.cache + +* Wed Jun 07 2006 Thomas Vander Stichele +- 0.2.0-1 +- remove noarch + +* Tue Aug 23 2005 Jeff Pitman 0.1.0-2 +- disttag + +* Fri Mar 25 2005 Jeff Pitman 0.1.0-1 +- final release + +* Wed Mar 16 2005 Jeff Pitman 0.1.0-0.1.a3 +- upstream release + +* Sat Mar 12 2005 Jeff Pitman 0.1.0-0.1.a2 +- prerelease; FE versioning + +* Mon Feb 07 2005 Jeff Pitman 0.1.0-1 +- prep for split + diff --git a/sources b/sources index e69de29..2b09362 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +213569a86fc3d8558605e2847e6378b0 TwistedLore-0.2.0.tar.bz2