# # spec file for package python-limnoria # # Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 # python2-SocksiPy not available %define appname limnoria %define srcver 2017-10-25 Name: python-limnoria Version: 2017.10.25 Release: 0 Summary: A modified version of Supybot (an IRC bot and framework) License: BSD-3-Clause Group: Development/Languages/Python Url: https://github.com/ProgVal/Limnoria Source: https://github.com/ProgVal/Limnoria/archive/master-%{srcver}.tar.gz BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRequires: %{python_module SQLAlchemy} BuildRequires: %{python_module SocksiPy} BuildRequires: %{python_module chardet} BuildRequires: %{python_module devel} BuildRequires: %{python_module ecdsa} BuildRequires: %{python_module feedparser} BuildRequires: %{python_module python-gnupg} BuildRequires: %{python_module mock} BuildRequires: %{python_module python-dateutil} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} Requires: python-SQLAlchemy Requires: python-SocksiPy Requires: python-chardet Requires: python-ecdsa Requires: python-feedparser Requires: python-gnupg Requires: python-python-dateutil Requires: python-pytz Provides: Supybot = %{version} Obsoletes: Supybot < 1.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages %description Limnoria is a robust, full-featured Python IRC bot with a clean and flexible plugin API. It is equipped with a complete ACL system for specifying user permissions with as much as per-command granularity. Batteries are included in the form of numerous plugins already written. %prep %setup -q -n Limnoria-master-%{srcver} sed -i "1,4{/\/usr\/bin\/python/d}" plugins/Debug/plugin.py %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib}/supybot/ %check %{python_expand # export PYTHONPATH=%{buildroot}%{python_sitelib}/ %python_exec test/test.py } %files %python_files %defattr(-,root,root,-) %doc LICENSE.md README.md CONTRIBUTING.md %python3_only %{_bindir}/supybot %python3_only %{_bindir}/supybot-* %{python_sitelib}/* %python3_only %{_mandir}/man1/supybot*%{ext_man} %changelog