diff --git a/README.fedora b/README.fedora new file mode 100644 index 0000000..0047fad --- /dev/null +++ b/README.fedora @@ -0,0 +1,13 @@ +This package is an umbrella package to pull in all separate Twisted +projects. + +It depends on: + +python-twisted-conch +python-twisted-names +python-twisted-runner +python-twisted-web +python-twisted-words +python-twisted-lore +python-twisted-mail +python-twisted-news diff --git a/python-twisted.spec b/python-twisted.spec index 6b604de..d470814 100644 --- a/python-twisted.spec +++ b/python-twisted.spec @@ -1,105 +1,107 @@ -Summary: Event-driven networking framework written in Python -Name: python-twisted -Version: 1.3.0 -Release: 7%{?dist} - -License: LGPL -Group: Applications/Internet -URL: http://www.twistedmatrix.com/ -Source: http://twisted.sourceforge.net/Twisted-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root -Requires: python -BuildRequires: python, python-devel -Obsoletes: python-Twisted < 1.3.0 -Provides: python-Twisted = %{version}-%{release} +%{?!python:%define python python} +%{?!pybasever:%{expand:%%define pybasever %(%{__python} -c "import sys ; print sys.version[:3]")}} + +%define origname Twisted + +Name: %{python}-twisted +Version: 2.4.0 +Release: 3%{?dist} +Summary: Twisted is an event-based framework for internet applications + +Group: Development/Libraries +License: MIT +URL: http://www.twistedmatrix.com +Source: README.fedora +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +Requires: %{python}-twisted-core +Requires: %{python}-twisted-conch +Requires: %{python}-twisted-lore +Requires: %{python}-twisted-mail +Requires: %{python}-twisted-names +Requires: %{python}-twisted-news +Requires: %{python}-twisted-runner +Requires: %{python}-twisted-web +Requires: %{python}-twisted-words + +Obsoletes: %{origname} < 2.4.0-1 +Provides: %{origname} = %{version}-%{release} +Obsoletes: twisted < 2.4.0-1 +Provides: twisted = %{version}-%{release} %description -An event-driven networking framework written in Python and licensed -under the LGPL. Twisted supports TCP, UDP, SSL/TLS, multicast, Unix -sockets, a large number of protocols (including HTTP, NNTP, SSH, IRC, -FTP, and others), and much more. - - -%package docs -Summary: Documentation for the Twisted networking framework -Group: Documentation - -%description docs -An event-driven networking framework written in Python and licensed -under the LGPL. Twisted supports TCP, UDP, SSL/TLS, multicast, Unix -sockets, a large number of protocols (including HTTP, NNTP, SSH, IRC, -FTP, and others), and much more. - -This package contains all the documentation for Twisted. +Twisted is an event-based framework for internet applications. It includes a +web server, a telnet server, a chat server, a news server, a generic client +and server for remote object access, and APIs for creating new protocols and +services. Twisted supports integration of the Tk, GTK+, Qt or wxPython event +loop with its main event loop. The Win32 event loop is also supported, as is +basic support for running servers on top of Jython. +Installing this package brings all Twisted sub-packages into your system. %prep -%setup -n Twisted-%{version} - +cp %{SOURCE0} . %build -%{__python} setup.py build_ext - %install -%{__rm} -rf %{buildroot} -%{__python} setup.py install --root=%{buildroot} +rm -rf $RPM_BUILD_ROOT -# the man pages are not installed, so install them -# and remove them from the doc dir -%{__mkdir_p} %{buildroot}%{_mandir}/man1 -for man in doc/man/*.1; do - %{__install} -m 0644 ${man} %{buildroot}%{_mandir}/man1/ - %{__rm} -f ${man} -done +%clean +rm -rf $RPM_BUILD_ROOT -# set permissions on all doc files to 644 -# because some examples are set executable and some aren't, which is -# inconsistent -find doc -type f -exec chmod 644 {} \; +%files +%defattr(-,root,root,-) +%doc README.fedora +# empty rpm +%changelog +* Tue Jan 16 2007 Thomas Vander Stichele +- 2.4.0-3 +- list packages in README.fedora -%clean -%{__rm} -rf %{buildroot} +* Wed Jan 03 2007 Thomas Vander Stichele +- 2.4.0-2 +- add a README.fedora +- made noarch, since it doesn't actually install any python twisted/ module + code +- fixed provides/obsoletes +* Wed Jun 07 2006 Thomas Vander Stichele +- 2.4.0-1 +- this is now a pure umbrella package -%files -%defattr(-, root, root, 0755) -%doc CREDITS ChangeLog README -%{_bindir}/* -%{_libdir}/python?.?/site-packages/twisted -%{_mandir}/man1/* +* Mon Oct 10 2005 Jeff Pitman 2.1.0-1 +- upstream release -%files docs -%defattr(-, root, root, 0755) -%doc doc/* +* Tue Aug 23 2005 Jeff Pitman 2.0.1-1 +- upstream release +* Mon Apr 04 2005 Jeff Pitman 2.0.0-2 +- add zsh support -%changelog -* Thu Oct 05 2006 Christian Iseli 1.3.0-7 - - rebuilt for unwind info generation, broken in gcc-4.1.1-21 +* Fri Mar 25 2005 Jeff Pitman 2.0.0-1 +- final release + +* Thu Mar 17 2005 Jeff Pitman 2.0.0-0.2.a3 +- dropped web2 -* Wed Sep 20 2006 Thomas Vander Stichele -- 1.3.0-5 -- rebuilt +* Wed Mar 16 2005 Jeff Pitman 2.0.0-0.1.a3 +- upstream release -* Wed Jan 25 2006 Thomas Vander Stichele -- 1.3.0-4 -- rebuilt for rawhide, current package installs for python2.3 +* Sat Mar 12 2005 Jeff Pitman 2.0.0-0.1.a2 +- new prerelease; FE versioning -* Fri Apr 7 2005 Michael Schwendt -- rebuilt +* Mon Feb 07 2005 Jeff Pitman 2.0.0a1-1 +- prep for split -* Tue Jun 22 2004 Matthias Saou 1.3.0-1 -- Update to 1.3.0. -- Spec file changes. +* Fri Aug 20 2004 Jeff Pitman 1.3.0-1 +- new version -* Sun May 09 2004 Thomas Vander Stichele -- 1.2.0-0.fdr.1: Update to new upstream release -- split off docs -- packaged man pages correctly -- patch to remove hardcoding of python2.2 +* Mon Apr 19 2004 Jeff Pitman 1.2.0-3 +- vaultize -* Fri Feb 13 2004 Thomas Vander Stichele -- 1.1.1-0.fdr.1: Initial RPM release +* Mon Apr 12 2004 Jeff Pitman 1.2.0-2 +- require pyOpenSSL, SOAPpy, openssh-clients, crypto, dia so trial can run