forked from pool/python-irc
Accepting request 631131 from home:dheidler
- Update to version 16.4 OBS-URL: https://build.opensuse.org/request/show/631131 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-irc?expand=0&rev=1
This commit is contained in:
109
python-irc.spec
Normal file
109
python-irc.spec
Normal file
@@ -0,0 +1,109 @@
|
||||
#
|
||||
# spec file for package python-irc
|
||||
#
|
||||
# Copyright (c) 2017 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/
|
||||
#
|
||||
|
||||
|
||||
%define _name irc
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-irc
|
||||
Version: 16.4
|
||||
Release: 0
|
||||
Summary: IRC (Internet Relay Chat) protocol client library for Python
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/jaraco/irc
|
||||
Source: https://files.pythonhosted.org/packages/source/i/%{_name}/%{_name}-%{version}.tar.gz
|
||||
BuildRequires: %{python_module jaraco.collections}
|
||||
BuildRequires: %{python_module jaraco.functools}
|
||||
BuildRequires: %{python_module jaraco.itertools}
|
||||
BuildRequires: %{python_module jaraco.logging}
|
||||
BuildRequires: %{python_module jaraco.stream}
|
||||
BuildRequires: %{python_module jaraco.text}
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
# SECTION documentation requirements
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildRequires: python3-jaraco.packaging
|
||||
BuildRequires: python3-rst.linker
|
||||
# /SECTION
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pytest-flake8}
|
||||
BuildRequires: %{python_module tempora}
|
||||
BuildRequires: python2-backports.functools_lru_cache
|
||||
BuildRequires: python2-backports.unittest_mock
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-jaraco.collections
|
||||
Requires: python-jaraco.functools
|
||||
Requires: python-jaraco.itertools
|
||||
Requires: python-jaraco.logging
|
||||
Requires: python-jaraco.stream
|
||||
Requires: python-jaraco.text
|
||||
Requires: python-pytz
|
||||
Requires: python-six
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This library is intended to encapsulate the IRC protocol at a quite
|
||||
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.
|
||||
|
||||
%package -n %{name}-doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Documentation/HTML
|
||||
Requires: %{name} = %{version}
|
||||
Provides: %{python_module irc-doc = %{version}}
|
||||
|
||||
%description -n %{name}-doc
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{_name}-%{version}
|
||||
rm -rf irc.egg-info
|
||||
dos2unix docs/irc.rst docs/irc.tests.rst
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%{_python_use_flavor python3}
|
||||
%__python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%{python_expand rm ./build/lib/irc/tests/test_client.py
|
||||
$python %{_bindir}/py.test build/lib/irc
|
||||
}
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%{python_sitelib}/*
|
||||
%doc README.rst
|
||||
%doc LICENSE
|
||||
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root,-)
|
||||
%doc build/sphinx/html
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user