forked from pool/python-limnoria
- Switch to using PySocks instead of SocksiPy: the former is well-maintained than the latter. OBS-URL: https://build.opensuse.org/request/show/596501 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-limnoria?expand=0&rev=4
90 lines
2.8 KiB
RPMSpec
90 lines
2.8 KiB
RPMSpec
#
|
|
# spec file for package python-limnoria
|
|
#
|
|
# Copyright (c) 2018 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 appname limnoria
|
|
%define srcver 2018-01-28
|
|
Name: python-limnoria
|
|
Version: 2018.01.28
|
|
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: %{python_module PySocks}
|
|
BuildRequires: %{python_module SQLAlchemy}
|
|
BuildRequires: %{python_module chardet}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module ecdsa}
|
|
BuildRequires: %{python_module feedparser}
|
|
BuildRequires: %{python_module mock}
|
|
BuildRequires: %{python_module python-dateutil}
|
|
BuildRequires: %{python_module python-gnupg}
|
|
BuildRequires: %{python_module pytz}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-SQLAlchemy
|
|
Requires: python-PySocks
|
|
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 Python IRC bot with a plugin API. It is equipped with
|
|
an ACL system for specifying user permissions with per-command
|
|
granularity. Numerous plugins are included.
|
|
|
|
%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
|