2014-08-24 19:45:43 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-bencode
|
|
|
|
#
|
2023-03-06 21:13:40 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2014-08-24 19:45:43 +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.
|
|
|
|
|
2018-12-04 13:16:16 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-08-24 19:45:43 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-05-03 21:59:27 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define oldpython python
|
2014-08-24 19:45:43 +00:00
|
|
|
Name: python-bencode
|
2023-03-06 21:13:40 +00:00
|
|
|
Version: 4.0.0
|
2014-08-24 19:45:43 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: The BitTorrent bencode module as light-weight, standalone package
|
|
|
|
License: BitTorrent-1.1
|
2019-10-14 11:43:01 +00:00
|
|
|
URL: https://github.com/fuzeman/bencode.py
|
2019-06-04 08:00:37 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/b/bencode.py/bencode.py-%{version}.tar.gz
|
2017-05-03 21:59:27 +00:00
|
|
|
BuildRequires: %{python_module pbr}
|
2018-12-04 13:16:16 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2014-08-24 19:45:43 +00:00
|
|
|
BuildRequires: fdupes
|
2018-12-04 13:16:16 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-10-14 11:43:01 +00:00
|
|
|
BuildArch: noarch
|
2019-06-04 08:00:37 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
# /SECTION
|
2017-05-03 21:59:27 +00:00
|
|
|
%python_subpackages
|
2014-08-24 19:45:43 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package simply re-packages the existing bencoding and bdecoding
|
|
|
|
implemention from the 'official' BitTorrent client as a separate,
|
|
|
|
leight-weight package for re-using them without having the entire
|
|
|
|
BitTorrent software as a dependency.
|
|
|
|
|
|
|
|
%prep
|
2017-05-02 22:45:21 +00:00
|
|
|
%setup -q -n bencode.py-%{version}
|
2014-08-24 19:45:43 +00:00
|
|
|
|
|
|
|
%build
|
2017-05-03 21:59:27 +00:00
|
|
|
%python_build
|
2014-08-24 19:45:43 +00:00
|
|
|
|
|
|
|
%install
|
2017-05-03 21:59:27 +00:00
|
|
|
%python_install
|
2019-10-14 11:43:01 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2014-08-24 19:45:43 +00:00
|
|
|
|
2019-06-04 08:00:37 +00:00
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
2017-05-03 21:59:27 +00:00
|
|
|
%files %{python_files}
|
2019-06-10 08:15:20 +00:00
|
|
|
%license LICENSE
|
2017-05-02 22:45:21 +00:00
|
|
|
%doc README.rst
|
2014-08-24 19:45:43 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|