forked from pool/python-bencode
Accepting request 707398 from home:pgajdos
- version update to 2.0.0 * Support for bytes * File read/write functions: bread(fp), bwrite(data, fp) * Improved support for unicode strings - added sources https://github.com/fuzeman/bencode.py/issues/12 + BitTorrent-1.1.txt OBS-URL: https://build.opensuse.org/request/show/707398 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bencode?expand=0&rev=9
This commit is contained in:
committed by
Git OBS Bridge
parent
61d6abf2a6
commit
737433150b
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-bencode
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -19,17 +19,22 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define oldpython python
|
||||
Name: python-bencode
|
||||
Version: 1.2.0
|
||||
Version: 2.0.0
|
||||
Release: 0
|
||||
Summary: The BitTorrent bencode module as light-weight, standalone package
|
||||
License: BitTorrent-1.1
|
||||
Group: Development/Languages/Python
|
||||
Url: http://bittorrent.com/
|
||||
Source: https://files.pythonhosted.org/packages/source/b/bencode.py/bencode.py-1.2.0.tar.gz
|
||||
Url: https://github.com/fuzeman/bencode.py
|
||||
Source0: https://files.pythonhosted.org/packages/source/b/bencode.py/bencode.py-%{version}.tar.gz
|
||||
# https://github.com/fuzeman/bencode.py/issues/12
|
||||
Source1: https://raw.githubusercontent.com/spdx/license-list/master/BitTorrent-1.1.txt
|
||||
BuildRequires: %{python_module pbr}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
@@ -42,6 +47,7 @@ BitTorrent software as a dependency.
|
||||
|
||||
%prep
|
||||
%setup -q -n bencode.py-%{version}
|
||||
cp %{SOURCE1} .
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -50,8 +56,12 @@ BitTorrent software as a dependency.
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%license BitTorrent-1.1.txt
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user