15
0

Accepting request 494483 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/494483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-bencode?expand=0&rev=3
This commit is contained in:
2017-05-16 12:43:33 +00:00
committed by Git OBS Bridge
4 changed files with 27 additions and 18 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0301c2202233a3f274c940702bac7bd02d5d053b8bf9502b085156270e30be9b
size 2385

3
bencode.py-1.2.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:65efa44fef2172cc54587bb04c7f703d1471f7443e07bf3da76f6f9090269018
size 5488

View File

@@ -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

View File

@@ -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