14
0
Files
python-limnoria/python-limnoria.spec

127 lines
4.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-limnoria
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define appname limnoria
Accepting request 773166 from home:lrupp:branches:devel:languages:python - Update to version 2020-01-31: + RSS: If ids are missing, use <link> as id. + RSS: Show a meaningful error in case '@rss' is called with a non-URL/… + ChannelStats: Use the safe math evaluator. + core/Math: Move the math evaluator to src/utils/. + Math: Fix log/log10 return type. + Aka, Google, String: fix more DeprecationWarning in tests (#1328) + AutoMode, Channel, Nickometer: fix invalid escape sequence Deprecatio… + plugins: use r'' strings to fix DeprecationWarning in test cases (#1328) + Aka, Debug: cleanup imports + Use importlib instead of imp. + Replace failUnless/failIf with assertTrue/assertFalse. + Socket: Don't add instances twice in cls._instances. + Socket: use a proper lock instead of a boolean. + Add subcommand dispatching for CAP/FAIL/WARN/NOTE. + Rename doAuthenticate* functions to not conflict with callback names. + Make irc.error do nothing is no string is given as argument. + Call super().setValue() before defaultHttpHeaders. + Deduplicate setting Accept-Language HTTP header. + Web: Implement protocols.http.requestLanguage + Add supybot.protocols.http.requestLanguage + Fix getSpecific usage + Import MutableMapping and MutableSet from collections.abc. + setup.py: migrate shebang to Python 3 + setup.py: remove obsolete version_info conditionals + scripts: remove obsolete conditionals for Python 2 + scripts: migrate shebangs and version checks to Python 3 + Be less hostile to users in --allow-root help + Readd Limnoria name to default part & quit messages + SedRegex: skip testReDoSTimeout if multiprocessing is disabled OBS-URL: https://build.opensuse.org/request/show/773166 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-limnoria?expand=0&rev=30
2020-02-10 16:43:51 +00:00
%define srcver 2020-01-31
Name: python-limnoria
Accepting request 773166 from home:lrupp:branches:devel:languages:python - Update to version 2020-01-31: + RSS: If ids are missing, use <link> as id. + RSS: Show a meaningful error in case '@rss' is called with a non-URL/… + ChannelStats: Use the safe math evaluator. + core/Math: Move the math evaluator to src/utils/. + Math: Fix log/log10 return type. + Aka, Google, String: fix more DeprecationWarning in tests (#1328) + AutoMode, Channel, Nickometer: fix invalid escape sequence Deprecatio… + plugins: use r'' strings to fix DeprecationWarning in test cases (#1328) + Aka, Debug: cleanup imports + Use importlib instead of imp. + Replace failUnless/failIf with assertTrue/assertFalse. + Socket: Don't add instances twice in cls._instances. + Socket: use a proper lock instead of a boolean. + Add subcommand dispatching for CAP/FAIL/WARN/NOTE. + Rename doAuthenticate* functions to not conflict with callback names. + Make irc.error do nothing is no string is given as argument. + Call super().setValue() before defaultHttpHeaders. + Deduplicate setting Accept-Language HTTP header. + Web: Implement protocols.http.requestLanguage + Add supybot.protocols.http.requestLanguage + Fix getSpecific usage + Import MutableMapping and MutableSet from collections.abc. + setup.py: migrate shebang to Python 3 + setup.py: remove obsolete version_info conditionals + scripts: remove obsolete conditionals for Python 2 + scripts: migrate shebangs and version checks to Python 3 + Be less hostile to users in --allow-root help + Readd Limnoria name to default part & quit messages + SedRegex: skip testReDoSTimeout if multiprocessing is disabled OBS-URL: https://build.opensuse.org/request/show/773166 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-limnoria?expand=0&rev=30
2020-02-10 16:43:51 +00:00
Version: 2020.01.31
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 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-PySocks
Requires: python-SQLAlchemy
Requires: python-chardet
Requires: python-ecdsa
Requires: python-feedparser
Requires: python-python-dateutil
Requires: python-python-gnupg
Requires: python-pytz
Requires(post): update-alternatives
Requires(postun): update-alternatives
Provides: Supybot = %{version}
Obsoletes: Supybot < 1.0
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/
%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
%python_clone -a %{buildroot}%{_bindir}/supybot-reset-password
%python_clone -a %{buildroot}%{_bindir}/supybot-test
%python_clone -a %{buildroot}%{_bindir}/supybot-wizard
%check
%{python_expand export PYTHONDONTWRITEBYTECODE=1
export PYTHONPATH=%{buildroot}%{$python_sitelib}/
%python_exec test/test.py
}
%post
%{python_install_alternative supybot supybot-adduser supybot-botchk
supybot-plugin-create supybot-plugin-doc supybot-reset-password supybot-test supybot-wizard
supybot.1 supybot-adduser.1 supybot-botchk.1 supybot-plugin-create.1
supybot-plugin-doc.1 supybot-test.1 supybot-wizard.1
}
%postun
%{python_uninstall_alternative supybot}
%files %{python_files}
%doc README.md CONTRIBUTING.md
%license LICENSE.md
%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
%python_alternative %{_bindir}/supybot-reset-password
%python_alternative %{_bindir}/supybot-test
%python_alternative %{_bindir}/supybot-wizard
%{python_sitelib}/supybot/
%{python_sitelib}/limnoria-*.egg-info
%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
%changelog