2017-12-18 10:45:31 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-limnoria
|
|
|
|
|
#
|
2022-02-05 18:46:37 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2017-12-18 10:45:31 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-09-11 10:51:19 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-12-18 10:45:31 +00:00
|
|
|
#
|
|
|
|
|
|
2018-02-27 14:58:22 +00:00
|
|
|
|
2020-01-06 08:04:16 +00:00
|
|
|
%define skip_python2 1
|
2022-02-05 18:46:37 +00:00
|
|
|
# no feedparser for python 3.10
|
|
|
|
|
%define skip_python310 1
|
2017-12-18 10:45:31 +00:00
|
|
|
%define appname limnoria
|
2022-02-05 18:46:37 +00:00
|
|
|
%define srcver 2022-02-03
|
2017-12-18 10:45:31 +00:00
|
|
|
Name: python-limnoria
|
2022-02-05 18:46:37 +00:00
|
|
|
Version: 2022.02.03
|
2017-12-18 10:45:31 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: A modified version of Supybot (an IRC bot and framework)
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
Group: Development/Languages/Python
|
2018-08-17 10:26:58 +00:00
|
|
|
URL: https://github.com/ProgVal/Limnoria
|
2020-08-31 05:23:46 +00:00
|
|
|
Source: https://github.com/ProgVal/Limnoria/archive/master-%{srcver}.tar.gz#/%{appname}-%{version}.tar.gz
|
2022-02-05 18:46:37 +00:00
|
|
|
# full python for sqlite3 module
|
|
|
|
|
BuildRequires: %pythons
|
2018-04-14 11:05:08 +00:00
|
|
|
BuildRequires: %{python_module PySocks}
|
2017-12-18 10:45:31 +00:00
|
|
|
BuildRequires: %{python_module chardet}
|
2022-02-05 18:46:37 +00:00
|
|
|
BuildRequires: %{python_module cryptography}
|
2017-12-18 10:45:31 +00:00
|
|
|
BuildRequires: %{python_module ecdsa}
|
|
|
|
|
BuildRequires: %{python_module feedparser}
|
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
|
BuildRequires: %{python_module python-dateutil}
|
2018-02-27 14:58:22 +00:00
|
|
|
BuildRequires: %{python_module python-gnupg}
|
2022-02-05 18:46:37 +00:00
|
|
|
BuildRequires: %{python_module pytz if %python-base < 3.9}
|
|
|
|
|
# pyxmpp2-scram not available, the code actually covers the non-availability
|
|
|
|
|
#BuildRequires: %%{python_module pyxmpp2-scram}
|
2017-12-18 10:45:31 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-02-27 14:58:22 +00:00
|
|
|
BuildRequires: fdupes
|
2022-02-05 18:46:37 +00:00
|
|
|
BuildRequires: procps
|
2018-02-27 14:58:22 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-02-05 18:46:37 +00:00
|
|
|
Requires: procps
|
|
|
|
|
Requires: python
|
2018-04-14 11:05:08 +00:00
|
|
|
Requires: python-PySocks
|
2017-12-18 10:45:31 +00:00
|
|
|
Requires: python-chardet
|
2022-02-05 18:46:37 +00:00
|
|
|
Requires: python-cryptography
|
2017-12-18 10:45:31 +00:00
|
|
|
Requires: python-ecdsa
|
|
|
|
|
Requires: python-feedparser
|
|
|
|
|
Requires: python-python-dateutil
|
2018-04-30 19:35:35 +00:00
|
|
|
Requires: python-python-gnupg
|
2022-02-05 18:46:37 +00:00
|
|
|
#Requires: python-pyxmpp2-scram
|
|
|
|
|
%if 0%{?python_version_nodots} < 39
|
2017-12-18 10:45:31 +00:00
|
|
|
Requires: python-pytz
|
2022-02-05 18:46:37 +00:00
|
|
|
%endif
|
2018-08-31 07:38:29 +00:00
|
|
|
Requires(post): update-alternatives
|
2021-03-22 22:29:20 +00:00
|
|
|
Requires(postun):update-alternatives
|
2017-12-18 10:45:31 +00:00
|
|
|
Provides: Supybot = %{version}
|
|
|
|
|
Obsoletes: Supybot < 1.0
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
2018-03-31 12:13:32 +00:00
|
|
|
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.
|
2017-12-18 10:45:31 +00:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Limnoria-master-%{srcver}
|
|
|
|
|
sed -i "1,4{/\/usr\/bin\/python/d}" plugins/Debug/plugin.py
|
2020-05-09 15:01:26 +00:00
|
|
|
sed -i "1,4{/\/usr\/bin\/env/d}" plugins/SedRegex/constants.py
|
2022-02-05 18:46:37 +00:00
|
|
|
chmod -x supybot/plugins/*/locales/fi.po
|
2017-12-18 10:45:31 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/supybot/
|
2018-08-31 07:33:26 +00:00
|
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/supybot.1
|
|
|
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/supybot-adduser.1
|
|
|
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/supybot-botchk.1
|
|
|
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/supybot-plugin-create.1
|
|
|
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/supybot-plugin-doc.1
|
|
|
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/supybot-test.1
|
|
|
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/supybot-wizard.1
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/supybot
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/supybot-adduser
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/supybot-botchk
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/supybot-plugin-create
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/supybot-plugin-doc
|
2019-03-20 12:58:36 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/supybot-reset-password
|
2018-08-31 07:33:26 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/supybot-test
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/supybot-wizard
|
2017-12-18 10:45:31 +00:00
|
|
|
|
|
|
|
|
%check
|
2018-05-10 16:45:45 +00:00
|
|
|
%{python_expand export PYTHONDONTWRITEBYTECODE=1
|
|
|
|
|
export PYTHONPATH=%{buildroot}%{$python_sitelib}/
|
2022-02-05 18:46:37 +00:00
|
|
|
# Status plugin cannot read cpuinfo in obs environment
|
|
|
|
|
%{buildroot}%{_bindir}/supybot-test-%{$python_bin_suffix} -c -v --plugins-dir=%{buildroot}%{$python_sitelib}/supybot/plugins/ --no-network
|
2017-12-18 10:45:31 +00:00
|
|
|
}
|
|
|
|
|
|
2018-08-31 07:33:26 +00:00
|
|
|
%post
|
2018-08-31 07:38:29 +00:00
|
|
|
%{python_install_alternative supybot supybot-adduser supybot-botchk
|
2019-03-20 12:58:36 +00:00
|
|
|
supybot-plugin-create supybot-plugin-doc supybot-reset-password supybot-test supybot-wizard
|
2018-08-31 07:38:01 +00:00
|
|
|
supybot.1 supybot-adduser.1 supybot-botchk.1 supybot-plugin-create.1
|
|
|
|
|
supybot-plugin-doc.1 supybot-test.1 supybot-wizard.1
|
|
|
|
|
}
|
2018-08-31 07:33:26 +00:00
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%{python_uninstall_alternative supybot}
|
|
|
|
|
|
2018-08-17 10:26:58 +00:00
|
|
|
%files %{python_files}
|
2018-05-10 16:45:45 +00:00
|
|
|
%doc README.md CONTRIBUTING.md
|
|
|
|
|
%license LICENSE.md
|
2018-08-31 07:33:26 +00:00
|
|
|
%python_alternative %{_bindir}/supybot
|
|
|
|
|
%python_alternative %{_bindir}/supybot-adduser
|
|
|
|
|
%python_alternative %{_bindir}/supybot-botchk
|
|
|
|
|
%python_alternative %{_bindir}/supybot-plugin-create
|
|
|
|
|
%python_alternative %{_bindir}/supybot-plugin-doc
|
2019-03-20 12:58:36 +00:00
|
|
|
%python_alternative %{_bindir}/supybot-reset-password
|
2018-08-31 07:33:26 +00:00
|
|
|
%python_alternative %{_bindir}/supybot-test
|
|
|
|
|
%python_alternative %{_bindir}/supybot-wizard
|
|
|
|
|
%{python_sitelib}/supybot/
|
|
|
|
|
%{python_sitelib}/limnoria-*.egg-info
|
2018-08-31 07:38:01 +00:00
|
|
|
%python_alternative %{_mandir}/man1/supybot.1
|
|
|
|
|
%python_alternative %{_mandir}/man1/supybot-adduser.1
|
|
|
|
|
%python_alternative %{_mandir}/man1/supybot-botchk.1
|
|
|
|
|
%python_alternative %{_mandir}/man1/supybot-plugin-create.1
|
|
|
|
|
%python_alternative %{_mandir}/man1/supybot-plugin-doc.1
|
|
|
|
|
%python_alternative %{_mandir}/man1/supybot-test.1
|
|
|
|
|
%python_alternative %{_mandir}/man1/supybot-wizard.1
|
2017-12-18 10:45:31 +00:00
|
|
|
|
|
|
|
|
%changelog
|