# # python3 note: This project is python3 ready, but sadly not all plugins # Available in Fedora are yet. So, we will keep this python2 until we # port those plugins over to python3. # %bcond_with python3 %global upstreamver 2016-05-06 Name: limnoria Version: 20160506 Release: 2%{?dist} Summary: A modified version of Supybot (an IRC bot) with enhancements and bug fixes License: BSD and GPLv2 and GPLv2+ # # The bulk of the package is BSD. # Parts of the Math plugin are GPLv2+ # The Dict plugin is GPLv2+ # URL: https://github.com/ProgVal/Limnoria Source0: https://github.com/ProgVal/Limnoria/archive/master-%{upstreamver}.tar.gz BuildArch: noarch # Provide the upper case version also to avoid confusion Provides: Limnoria = %{version}-%{release} # # Obsolete the supybot-gribble package as this is a newer/maintained fork. # Obsoletes: supybot-gribble =< 0.83.4.1-18%{dist} Provides: supybot-gribble = 0.83.4.1-19%{dist} %if %{with python3} BuildRequires: python3-devel BuildRequires: python3-chardet BuildRequires: python3-pytz BuildRequires: python3-dateutil BuildRequires: python3-gnupg BuildRequires: python3-feedparser BuildRequires: python3-sqlalchemy BuildRequires: python3-pysocks BuildRequires: python3-mock BuildRequires: python3-ecdsa Requires: python3-devel Requires: python3-chardet Requires: python3-pytz Requires: python3-dateutil Requires: python3-gnupg Requires: python3-feedparser Requires: python3-sqlalchemy Requires: python3-pysocks Requires: python3-mock Requires: python3-ecdsa %else BuildRequires: python2-devel BuildRequires: python-chardet BuildRequires: pytz BuildRequires: python-dateutil BuildRequires: python2-gnupg BuildRequires: python-feedparser BuildRequires: python-sqlalchemy BuildRequires: python-pysocks BuildRequires: python-mock BuildRequires: python-ecdsa # Need to require packages for runtime as well. Requires: python2-devel Requires: python-chardet Requires: pytz Requires: python-dateutil Requires: python2-gnupg Requires: python-feedparser Requires: python-sqlalchemy Requires: python-pysocks Requires: python-mock Requires: python-ecdsa %endif %description Supybot is a robust (it doesn't crash), user friendly (it's easy to configure) and programmer friendly (plugins are extremely easy to write) 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. Limnoria is a project which continues development of Supybot (you can call it a fork) by fixing bugs and adding features (see the list of added features for more details). %prep %setup -q -n Limnoria-master-2016-05-06 %build # remove stray python bits from debug plugin sed -i 1"s|#!/usr/bin/python||" plugins/Debug/plugin.py %if %{with python3} %{__python3} setup.py build %else %{__python2} setup.py build %endif %install %if %{with python3} %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %else %{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %endif # TODO: get tests working #check %files %doc ChangeLog CONTRIBUTING.md README.md RELNOTES %license LICENSE.md %{_bindir}/supybot %{_bindir}/supybot-adduser %{_bindir}/supybot-botchk %{_bindir}/supybot-plugin-create %{_bindir}/supybot-plugin-doc %{_bindir}/supybot-test %{_bindir}/supybot-wizard %{_mandir}/man1/supybot-adduser.1.gz %{_mandir}/man1/supybot-botchk.1.gz %{_mandir}/man1/supybot-plugin-create.1.gz %{_mandir}/man1/supybot-plugin-doc.1.gz %{_mandir}/man1/supybot-test.1.gz %{_mandir}/man1/supybot-wizard.1.gz %{_mandir}/man1/supybot.1.gz %if %{with python3} %{python3_sitelib}/* %else %{python2_sitelib}/* %endif %changelog * Tue Jun 07 2016 Kevin Fenzi - 20160506-2 - Updates from review: Fixed license - Added Run time requires for needed python packages. * Sat Jun 04 2016 Kevin Fenzi - 20160506-1 - Initial Fedora/EPEL version