%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5) %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %endif %global srcname jabberbot Name: python-%{srcname} Version: 0.10 Release: 1%{?dist} Summary: A simple jabber (XMPP) bot framework Group: Applications/Internet License: GPLv3+ URL: http://thpinfo.com/2007/python-jabberbot/ Source0: http://thpinfo.com/2007/python-jabberbot/%{srcname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: python-xmpp Requires: python-xmpp %description This is python-jabberbot, a Jabber bot framework for Python that enables you to easily write simple Jabber bots. You can use your Jabber bots to provide information about your running systems, to make your website interact with your visitors or notify you about updates or changes you monitor with your Python scripts. %prep %setup -q -n %{srcname}-%{version} sed -i -e '/^#!\//, 1d' jabberbot.py %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root=%{buildroot} %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS COPYING README examples/ %{python_sitelib}/jabberbot* %{python_sitelib}/jabberbot*.egg-info %changelog * Fri Oct 08 2010 Fabian Affolter <fabian@bernewireless.net> - 0.10-1 - Added scrname - Updated to new upstream version 0.10 * Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.9-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Mon Dec 28 2009 Fabian Affolter <fabian@bernewireless.net> - 0.9-1 - Added COPYING - Updated to new upstream version 0.9 * Mon Dec 21 2009 Fabian Affolter <fabian@bernewireless.net> - 0.8-2 - Fixed license tag - Removed prefix in install section * Mon Dec 07 2009 Fabian Affolter <fabian@bernewireless.net> - 0.8-1 - Updated to new upstream version 0.8 * Wed Oct 25 2009 Fabian Affolter <fabian@bernewireless.net> - 0.6-1 - Initial spec for Fedora