2018-08-28 08:22:17 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-irc
|
|
|
|
|
#
|
2024-01-06 20:44:23 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2018-08-28 08:22:17 +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-01-18 12:28:25 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-28 08:22:17 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2019-01-18 12:28:25 +00:00
|
|
|
%define modname irc
|
2024-01-06 20:44:23 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-08-28 08:22:17 +00:00
|
|
|
Name: python-irc
|
2024-04-06 19:33:48 +00:00
|
|
|
Version: 20.4.0
|
2018-08-28 08:22:17 +00:00
|
|
|
Release: 0
|
2019-01-18 12:28:25 +00:00
|
|
|
Summary: A set of Python modules for IRC support
|
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
|
URL: https://github.com/jaraco/irc
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/i/irc/%{modname}-%{version}.tar.gz
|
2019-04-05 11:26:05 +00:00
|
|
|
BuildRequires: %{python_module importlib-metadata}
|
2018-08-28 08:22:17 +00:00
|
|
|
BuildRequires: %{python_module jaraco.collections}
|
2020-03-15 09:53:11 +00:00
|
|
|
BuildRequires: %{python_module jaraco.functools >= 1.20}
|
2018-08-28 08:22:17 +00:00
|
|
|
BuildRequires: %{python_module jaraco.logging}
|
2020-03-15 09:53:11 +00:00
|
|
|
BuildRequires: %{python_module jaraco.stream}
|
2018-08-28 08:22:17 +00:00
|
|
|
BuildRequires: %{python_module jaraco.text}
|
2019-01-18 12:28:25 +00:00
|
|
|
BuildRequires: %{python_module more-itertools}
|
2024-01-06 20:44:23 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2019-02-28 09:00:11 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-08-28 08:22:17 +00:00
|
|
|
BuildRequires: %{python_module pytz}
|
|
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2019-02-28 09:00:11 +00:00
|
|
|
BuildRequires: %{python_module tempora >= 1.6}
|
2024-01-06 20:44:23 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-08-28 08:22:17 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-04-05 11:26:05 +00:00
|
|
|
Requires: python-importlib-metadata
|
2019-02-28 09:00:11 +00:00
|
|
|
Requires: python-jaraco.collections
|
|
|
|
|
Requires: python-jaraco.functools >= 1.20
|
|
|
|
|
Requires: python-jaraco.logging
|
|
|
|
|
Requires: python-jaraco.stream
|
|
|
|
|
Requires: python-jaraco.text
|
|
|
|
|
Requires: python-more-itertools
|
|
|
|
|
Requires: python-pytz
|
|
|
|
|
Requires: python-tempora >= 1.6
|
2019-04-05 11:26:05 +00:00
|
|
|
Provides: python-irclib = %{version}
|
|
|
|
|
Obsoletes: %{name}-doc
|
|
|
|
|
Obsoletes: python-irclib < %{version}
|
|
|
|
|
BuildArch: noarch
|
2018-08-28 08:22:17 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This library is intended to encapsulate the IRC protocol at a quite
|
2019-01-18 12:28:25 +00:00
|
|
|
low level. It provides an event-driven IRC client framework. It has
|
|
|
|
|
a fairly thorough support for the basic IRC protocol, CTCP and DCC
|
|
|
|
|
connections.
|
2018-08-28 08:22:17 +00:00
|
|
|
|
|
|
|
|
%prep
|
2019-01-18 12:28:25 +00:00
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
sed -i -e '1s!/env python!/python!' scripts/testbot.py
|
2020-03-15 09:53:11 +00:00
|
|
|
rm pytest.ini
|
2018-08-28 08:22:17 +00:00
|
|
|
|
|
|
|
|
%build
|
2024-01-06 20:44:23 +00:00
|
|
|
%pyproject_wheel
|
2018-08-28 08:22:17 +00:00
|
|
|
|
|
|
|
|
%install
|
2024-01-06 20:44:23 +00:00
|
|
|
%pyproject_install
|
2019-01-18 12:28:25 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2018-08-28 08:22:17 +00:00
|
|
|
|
|
|
|
|
%check
|
2019-04-30 13:20:55 +00:00
|
|
|
export PYTHONDONTWRITEBYTECODE=1
|
2020-03-15 09:53:11 +00:00
|
|
|
# test_privmsg_sends_msg https://github.com/jaraco/irc/issues/165
|
|
|
|
|
%pytest -k 'not test_privmsg_sends_msg'
|
2018-08-28 08:22:17 +00:00
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-08-28 08:23:16 +00:00
|
|
|
%license LICENSE
|
2024-01-06 20:44:23 +00:00
|
|
|
%doc NEWS.rst README.rst
|
2019-01-18 12:28:25 +00:00
|
|
|
%doc scripts/
|
2024-01-06 20:44:23 +00:00
|
|
|
%{python_sitelib}/irc
|
|
|
|
|
%{python_sitelib}/irc-%{version}.dist-info
|
2018-08-28 08:22:17 +00:00
|
|
|
|
|
|
|
|
%changelog
|