%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} Name: willie Version: 3.1.2 Release: 2%{?dist} Summary: Simple, lightweight and easy-to-use IRC Utility bot License: EFL 2.0 URL: http://willie.dftba.net/ Source0: http://willie.dftba.net/files/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-sphinx BuildRequires: dos2unix Requires: pytz Requires: python-lxml Requires: python-feedparser Requires: python-enchant Requires: MySQL-python Requires: pyOpenSSL Requires: python-praw %description Willie is a simple, lightweight, open source, easy-to-use IRC Utility bot. It is designed to be easy to use, run and extend. %prep %setup -q %build %{__python} setup.py build #Remove twitter: deps not in fedora rm build/lib/willie/modules/twit.py dos2unix CREDITS cd docs/ make singlehtml mv build/singlehtml build/api-docs rm build/api-docs/.buildinfo %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %files %doc README.md COPYING CREDITS docs/build/api-docs %{python_sitelib}/* %{_bindir}/willie.py %changelog * Tue Nov 20 2012 Elad Alfassa - 3.1.2-2 - Use python2-devel instead of python-devel * Mon Nov 19 2012 Elad Alfassa - 3.1.2-1 - New upstream release - Fix bug which prevented module config wizard from working on new installs * Sun Nov 18 2012 Elad Alfassa - 3.1.1-1 - New upstream release * Sat Nov 17 2012 Elad Alfassa - 3.1-3 - Fix summary line - Fix license tag * Tue Nov 13 2012 Elad Alfassa - 3.1-2 - Require pyOpenSSL to enable full SSL support - Don't remove reddit, python-praw is now in Fedora * Sat Nov 10 2012 Elad Alfassa - 3.1-1 - Initial packaging