%{!?python_standard_lib: %define python_standard_lib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(standard_lib=1)")} Name: yahoo-transport Version: 0.4 Release: 1 Summary: Yahoo Transport for Jabber Servers Group: Applications/Internet License: GPL URL: http://xmpppy.sourceforge.net/yahoo/ Source0: yahoo-transport-%{version}.tar.gz Source1: pyyim-t.init Patch0: config.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel Requires: python-twisted Requires: python-imaging Requires: pyOpenSSL Requires(post): /sbin/chkconfig Requires(preun): /sbin/chkconfig Requires(preun): /sbin/service Requires(postun): /sbin/service %description The Yahoo Transport provides a gateway which allows Jabber users to communicate with their contacts on the Yahoo network. The transport must be installed on the Jabber server, and it's operation is nearly transparent to the user. They can interact with their Yahoo contacts in the same way as they do with their Jabber contacts. %prep %setup -q %patch0 -p0 %build %{__python} %{python_standard_lib}/compileall.py . %{__python} -O %{python_standard_lib}/compileall.py . %install rm -rf %{buildroot} mkdir -p %{buildroot}/etc/pyyim-t mkdir -p %{buildroot}%{_datadir}/pyyim-t mkdir -p %{buildroot}/var/spool/pyyim-t mkdir -p %{buildroot}%{_initrddir} cp %{S:1} %{buildroot}%{_initrddir}/pyyim-t chmod a+x %{buildroot}%{_initrddir}/pyyim-t touch %{buildroot}/etc/pyyim-t/config.xml cp *py %{buildroot}%{_datadir}/pyyim-t cp *pyc %{buildroot}%{_datadir}/pyyim-t chmod a+x %{buildroot}%{_datadir}/pyyim-t/yahoo.py cp -r curphoo %{buildroot}%{_datadir}/pyyim-t %clean rm -rf %{buildroot} %post /sbin/chkconfig --add pyyim-t %preun if [ $1 = 0 ]; then /sbin/service pyyim-t stop >/dev/null 2>&1 /sbin/chkconfig --del pyyim-t fi %postun if [ "$1" -ge "1" ]; then /sbin/service pyyim-t condrestart >/dev/null 2>&1 fi %files %defattr(-,root,root,-) %doc config_example.xml %{_initrddir}/pyyim-t %dir %{_sysconfdir}/pyyim-t %ghost %config(noreplace) %{_sysconfdir}/pyyim-t/config.xml %{_datadir}/pyyim-t %dir %{_localstatedir}/spool/pyyim-t %changelog * Thu Mar 22 2007 Scott R. Shinn - 0.8-1 - ported pyicq-t to pyaim-t - updated init script - updated config.patch * Fri Dec 8 2006 Jeffrey C. Ollie - 0.8-3 - Fix up requires for mysql subpackage. * Fri Dec 8 2006 Jeffrey C. Ollie - 0.8-2 - Bump release and rebuild for Python 2.5 - Use macro for path to standard library - Eliminate provides/obsoletes pyicqt * Tue Oct 31 2006 Jeffrey C. Ollie - 0.8-1 - Update to 0.8 (see http://www.blathersource.org/releases_view.php?projid=pyicq-t&relid=28) - Fix init script to create subsys lock file * Thu Sep 7 2006 Jeffrey C. Ollie - 0.7-5 - Really no longer ghost *.pyo files * Mon Aug 14 2006 Jeffrey C. Ollie - 0.7-4 - No longer ghost *.pyo files * Wed Aug 2 2006 Jeffrey C. Ollie - 0.7-3 - Rename more stuff to pyicq-t * Sun Jul 30 2006 Jeffrey C. Ollie - 0.7-2 - Rename to pyicq-t - Change Group tag * Wed Jul 26 2006 Jeffrey C. Ollie - 0.7-1 - First version for Fedora Extras