diff --git a/bencode-1.0.tar.gz b/bencode-1.0.tar.gz deleted file mode 100644 index 39b2036..0000000 --- a/bencode-1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0301c2202233a3f274c940702bac7bd02d5d053b8bf9502b085156270e30be9b -size 2385 diff --git a/bencode.py-1.2.0.tar.gz b/bencode.py-1.2.0.tar.gz new file mode 100644 index 0000000..a0e09ed --- /dev/null +++ b/bencode.py-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65efa44fef2172cc54587bb04c7f703d1471f7443e07bf3da76f6f9090269018 +size 5488 diff --git a/python-bencode.changes b/python-bencode.changes index 2613357..12d1188 100644 --- a/python-bencode.changes +++ b/python-bencode.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue May 2 20:54:08 UTC 2017 - Greg.Freemyer@gmail.com + +- update to match bencode v1.2.0 + * See bencode v.2.0 for history. This package is a simple fork of the metadata decode logic. +- add buildrequires: python-pbr which is used to provide reasonable defaults python's setup tool +- convert to python singlespec + ------------------------------------------------------------------- Sat Aug 23 19:27:37 UTC 2014 - mardnh@gmx.de diff --git a/python-bencode.spec b/python-bencode.spec index 9df9de1..8784dad 100644 --- a/python-bencode.spec +++ b/python-bencode.spec @@ -1,7 +1,7 @@ # # spec file for package python-bencode # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -16,23 +16,24 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define oldpython python Name: python-bencode -Version: 1.0 +Version: 1.2.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://pypi.python.org/packages/source/b/bencode/bencode-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/b/bencode.py/bencode.py-1.2.0.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pbr} BuildRequires: fdupes -BuildRequires: python-devel -BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description This package simply re-packages the existing bencoding and bdecoding @@ -41,18 +42,18 @@ leight-weight package for re-using them without having the entire BitTorrent software as a dependency. %prep -%setup -q -n bencode-%{version} +%setup -q -n bencode.py-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%fdupes %{buildroot}/%{python_sitelib} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} -%files +%files %{python_files} %defattr(-,root,root,-) -%doc README.txt +%doc README.rst %{python_sitelib}/* %changelog