%define origname Supybot %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: supybot Version: 0.83.3 Release: 6%{?dist} Summary: Cross-platform IRC bot written in Python Group: Applications/Internet # The entire source code is BSD except for # plugins/Math/convertcore.py which is GPLv2 License: BSD and GPLv2 URL: http://supybot.com Source0: http://downloads.sourceforge.net/supybot/%{origname}-%{version}.tar.bz2 # Disable the Google plugin Patch0: %{name}-%{version}-plugins.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildArch: noarch BuildRequires: python-devel %if 0%{?fedora} >= 8 BuildRequires: python-setuptools-devel %else BuildRequires: python-setuptools %endif Requires: python-twisted-core Requires: python-twisted-names Requires: python-dateutil Requires: python-feedparser #Requires: python-dictclient Provides: Supybot = %{version}-%{release} %description Supybot is a robust, user-friendly, and programmer-friendly Python IRC bot. It aims to be an adequate replacement for most existing IRC bots. It includes a very flexible and powerful ACL system for controlling access to commands, as well as more than 50 builtin plugins providing around 400 actual commands. %prep %setup -q -n %{origname}-%{version} %patch0 -b .plugins %build CFLAGS="%{optflags}" %{__python} -c 'import setuptools; execfile("setup.py")' build %install %{__rm} -rf %{buildroot} %{__python} -c 'import setuptools; execfile("setup.py")' install \ --skip-build --root %{buildroot} %{__install} -d -m 755 %{buildroot}%{_mandir}/man1/ %{__install} -m 644 docs/man/supybot.1 %{buildroot}%{_mandir}/man1/ %{__install} -m 644 docs/man/supybot-adduser.1 %{buildroot}%{_mandir}/man1/ %{__install} -m 644 docs/man/supybot-botchk.1 %{buildroot}%{_mandir}/man1/ %{__install} -m 644 docs/man/supybot-plugin-create.1 %{buildroot}%{_mandir}/man1/ %{__install} -m 644 docs/man/supybot-plugin-doc.1 %{buildroot}%{_mandir}/man1/ %{__install} -m 644 docs/man/supybot-test.1 %{buildroot}%{_mandir}/man1/ %{__install} -m 644 docs/man/supybot-wizard.1 %{buildroot}%{_mandir}/man1/ # These are provided in python-feedparser, python-dateutil, and # python-dictclient %{__rm} -rf %{buildroot}%{python_sitelib}/supybot/plugins/RSS/feedparser.py* %{__rm} -rf %{buildroot}%{python_sitelib}/supybot/plugins/Time/dateutil %{__rm} -rf %{buildroot}%{python_sitelib}/supybot/plugins/Dict/dictclient.py* %clean %{__rm} -rf %{buildroot} %files %defattr(-,root,root,-) %doc ACKS ChangeLog LICENSE README RELNOTES %doc docs/{ADVANCED_PLUGIN_CONFIG,ADVANCED_PLUGIN_TESTING,CAPABILITIES} %doc docs/{GETTING_STARTED,PLUGIN_TUTORIAL,STYLE,USING_UTILS,USING_WRAP} %{python_sitelib}/*egg-info %{python_sitelib}/supybot %{_bindir}/supybot %{_bindir}/supybot-adduser %{_bindir}/supybot-botchk %{_bindir}/supybot-plugin-create %{_bindir}/supybot-plugin-doc %{_bindir}/supybot-plugin-package %{_bindir}/supybot-test %{_bindir}/supybot-wizard %{_mandir}/man1/supybot.1* %{_mandir}/man1/supybot-adduser.1* %{_mandir}/man1/supybot-botchk.1* %{_mandir}/man1/supybot-plugin-create.1* %{_mandir}/man1/supybot-plugin-doc.1* %{_mandir}/man1/supybot-test.1* %{_mandir}/man1/supybot-wizard.1* %changelog * Wed May 24 2008 Ricky Zhou - 0.83.3-6 - Add Requires for plugin dependencies. - Add Provides Supybot. * Wed May 07 2008 Ricky Zhou - 0.83.3-5 - Apply Douglas Warner's patch to fix line lengths/add origname macro. * Wed May 07 2008 Ricky Zhou - 0.83.3-4 - Rename from Supybot to supybot. - Fix incorrect paths to rm. * Sun Apr 06 2008 Ricky Zhou - 0.83.3-3 - Remove included Python modules. - Mention different license for plugins/Math/convertcore.py. * Fri Mar 07 2008 Ricky Zhou - 0.83.3-2 - Use macros instead of calling commands directly. * Fri Mar 07 2008 Ricky Zhou - 0.83.3-1 - Update for 0.83.3 release. * Fri Mar 07 2008 Ricky Zhou - 0.83.2-3 - Generate egg-info for Fedora <= 8, add to files section. * Fri Mar 07 2008 Ricky Zhou - 0.83.2-2 - Use consistent macro style. - Update source URLs to match guidelines more precisely. * Fri Mar 07 2008 Ricky Zhou - 0.83.2-1 - Initial RPM Package.