%{!?python_standard_lib: %define python_standard_lib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(standard_lib=1)")} Name: pyaim-t Version: 0.8 Release: 1 Summary: AIM Transport for Jabber Servers Group: Applications/Internet License: GPL URL: http://pyaim-t.blathersource.org/ Source0: http://www.blathersource.org/download.php/pyaim-t/pyaim-t-%{version}.tar.gz Source1: pyaim-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 AIM Transport provides a gateway which allows Jabber users to communicate with their contacts on the AIM 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 AIM contacts in the same way as they do with their Jabber contacts. %package mysql Summary: MySQL backend for AIM transport Group: Applications/Internet Requires: MySQL-python Requires: pyaim-t = %{version}-%{release} %description mysql MySQL backend for AIM transport %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/pyaim-t mkdir -p %{buildroot}%{_datadir}/pyaim-t mkdir -p %{buildroot}/var/spool/pyaim-t mkdir -p %{buildroot}%{_initrddir} cp %{S:1} %{buildroot}%{_initrddir}/pyaim-t chmod a+x %{buildroot}%{_initrddir}/pyaim-t touch %{buildroot}/etc/pyaim-t/config.xml cp PyAIMt.py* %{buildroot}%{_datadir}/pyaim-t chmod a+x %{buildroot}%{_datadir}/pyaim-t/PyAIMt.py cp -r data %{buildroot}%{_datadir}/pyaim-t cp -r src %{buildroot}%{_datadir}/pyaim-t %clean rm -rf %{buildroot} %post /sbin/chkconfig --add pyaim-t %preun if [ $1 = 0 ]; then /sbin/service pyaim-t stop >/dev/null 2>&1 /sbin/chkconfig --del pyaim-t fi %postun if [ "$1" -ge "1" ]; then /sbin/service pyaim-t condrestart >/dev/null 2>&1 fi %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog config_example.xml COPYING INSTALL NEWS README tools/managessi.py tools/migrate.py %{_initrddir}/pyaim-t %dir %{_sysconfdir}/pyaim-t %ghost %config(noreplace) %{_sysconfdir}/pyaim-t/config.xml %exclude %{_datadir}/pyaim-t/src/xdb/mysql.py* %{_datadir}/pyaim-t %dir %{_localstatedir}/spool/pyaim-t %files mysql %defattr(-,root,root,-) %doc tools/db-setup.mysql %{_datadir}/pyaim-t/src/xdb/mysql.py* %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