%{?!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 TwistedWords Name: %{python}-twisted-words Version: 0.4.0 Release: 1%{?dist} Summary: Twisted Words contains Instant Messaging implementations Group: Development/Libraries License: MIT URL: http://www.twistedmatrix.com Source0: http://tmrc.mit.edu/mirror/twisted/Words/0.4/TwistedWords-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{python}-twisted-core >= 2.4.0 # for FC3 and earlier %if "%{pybasever}" < "2.4" Requires: python(abi) = %{pybasever} %endif Requires: %{python}-twisted-core # a noarch-turned-arch package should not have debuginfo %define debug_package %{nil} %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. 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 %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 %files %defattr(-,root,root,-) %doc README doc/* %{_mandir}/man1/* %{_bindir}/im %dir %{python_sitearch}/twisted/words/ %{python_sitearch}/twisted/words/*.py %{python_sitearch}/twisted/words/*.pyc %ghost %{python_sitearch}/twisted/words/*.pyo %dir %{python_sitearch}/twisted/words/im/ %{python_sitearch}/twisted/words/im/*.py %{python_sitearch}/twisted/words/im/*.pyc %ghost %{python_sitearch}/twisted/words/im/*.pyo %{python_sitearch}/twisted/words/im/*.glade %dir %{python_sitearch}/twisted/words/protocols/ %{python_sitearch}/twisted/words/protocols/*.py %{python_sitearch}/twisted/words/protocols/*.pyc %ghost %{python_sitearch}/twisted/words/protocols/*.pyo %dir %{python_sitearch}/twisted/words/protocols/jabber/ %{python_sitearch}/twisted/words/protocols/jabber/*.py %{python_sitearch}/twisted/words/protocols/jabber/*.pyc %ghost %{python_sitearch}/twisted/words/protocols/jabber/*.pyo %dir %{python_sitearch}/twisted/words/scripts/ %{python_sitearch}/twisted/words/scripts/*.py %{python_sitearch}/twisted/words/scripts/*.pyc %ghost %{python_sitearch}/twisted/words/scripts/*.pyo %dir %{python_sitearch}/twisted/words/test/ %{python_sitearch}/twisted/words/test/*.py %{python_sitearch}/twisted/words/test/*.pyc %ghost %{python_sitearch}/twisted/words/test/*.pyo %dir %{python_sitearch}/twisted/words/xish/ %{python_sitearch}/twisted/words/xish/*.py %{python_sitearch}/twisted/words/xish/*.pyc %ghost %{python_sitearch}/twisted/words/xish/*.pyo %{python_sitearch}/twisted/words/xish/xpathparser.g %{python_sitearch}/twisted/plugins/twisted_words.py %{python_sitearch}/twisted/plugins/twisted_words.pyc %ghost %{python_sitearch}/twisted/plugins/twisted_words.pyo %changelog * Wed Jun 07 2006 Thomas Vander Stichele - 0.4.0-1 - new release - remove xish dependency - remove noarch * Tue Aug 23 2005 Jeff Pitman 0.1.0-2 - disttag * 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