15
0

Accepting request 492754 from home:gregfreemyer:Tools-for-forensic-boot-cd

Update to python singlespec

OBS-URL: https://build.opensuse.org/request/show/492754
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bencode?expand=0&rev=4
This commit is contained in:
Greg Freemyer
2017-05-03 21:59:27 +00:00
committed by Git OBS Bridge
parent b2bc836a1c
commit 213a21c806
2 changed files with 12 additions and 11 deletions

View File

@@ -16,6 +16,8 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-bencode
Version: 1.2.0
Release: 0
@@ -24,16 +26,14 @@ 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
BuildRequires: python-rpm-macros
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module pbr}
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-pbr
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
@@ -45,13 +45,13 @@ BitTorrent software as a dependency.
%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.rst
%{python_sitelib}/*