From 6988c4bc8e7a856e273ad081b0a525627bdda1448d253420d4eed42c0943e05e Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Tue, 16 Sep 2014 21:28:12 +0000 Subject: [PATCH 1/4] Accepting request 249626 from home:gregfreemyer:Tools-for-forensic-boot-cd python-bencode is a light-weight python library to parse bittorrent metadata files. It is currently in "security" but seems a better fit for d:l:p. OBS-URL: https://build.opensuse.org/request/show/249626 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bencode?expand=0&rev=1 From d91f97debb3cc60ac95cacbbe24d971d1f4b96595ffc77b09ee0a2af4fffa078 Mon Sep 17 00:00:00 2001 From: Greg Freemyer Date: Tue, 2 May 2017 22:45:21 +0000 Subject: [PATCH 2/4] Accepting request 492534 from home:gregfreemyer:Tools-for-forensic-boot-cd Upgrade to v1.2.0. This still needs to have the singlespec logic added. OBS-URL: https://build.opensuse.org/request/show/492534 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bencode?expand=0&rev=2 --- bencode-1.0.tar.gz | 3 --- bencode.py-1.2.0.tar.gz | 3 +++ python-bencode.changes | 7 +++++++ python-bencode.spec | 11 ++++++----- 4 files changed, 16 insertions(+), 8 deletions(-) delete mode 100644 bencode-1.0.tar.gz create mode 100644 bencode.py-1.2.0.tar.gz 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..895d8c6 100644 --- a/python-bencode.changes +++ b/python-bencode.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +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 + ------------------------------------------------------------------- Sat Aug 23 19:27:37 UTC 2014 - mardnh@gmx.de diff --git a/python-bencode.spec b/python-bencode.spec index 9df9de1..333bbc5 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 @@ -17,15 +17,16 @@ 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://pypi.python.org/packages/59/fb/aa4ad360601acdb6f669b4d2260562d919945ae541ab716d685dcb42b9f0/bencode.py-1.2.0.tar.gz BuildRequires: fdupes BuildRequires: python-devel +BuildRequires: python-pbr BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 @@ -41,7 +42,7 @@ 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 @@ -52,7 +53,7 @@ python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root,-) -%doc README.txt +%doc README.rst %{python_sitelib}/* %changelog From b2bc836a1c9c4f22873a7bee89bf25e71ad4f0425bf92d77868e0848effe410f Mon Sep 17 00:00:00 2001 From: Greg Freemyer Date: Tue, 2 May 2017 23:35:32 +0000 Subject: [PATCH 3/4] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bencode?expand=0&rev=3 --- python-bencode.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-bencode.spec b/python-bencode.spec index 333bbc5..d500ca1 100644 --- a/python-bencode.spec +++ b/python-bencode.spec @@ -23,7 +23,7 @@ Summary: The BitTorrent bencode module as light-weight, standalone packag License: BitTorrent-1.1 Group: Development/Languages/Python Url: http://bittorrent.com/ -Source: https://pypi.python.org/packages/59/fb/aa4ad360601acdb6f669b4d2260562d919945ae541ab716d685dcb42b9f0/bencode.py-1.2.0.tar.gz +Source: https://files.pythonhosted.org/packages/source/b/bencode.py/bencode.py-1.2.0.tar.gz BuildRequires: fdupes BuildRequires: python-devel BuildRequires: python-pbr From 213a21c806683341b153dd846a36ab243659a20de60201fd35795be2fd7a3192 Mon Sep 17 00:00:00 2001 From: Greg Freemyer Date: Wed, 3 May 2017 21:59:27 +0000 Subject: [PATCH 4/4] 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 --- python-bencode.changes | 1 + python-bencode.spec | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/python-bencode.changes b/python-bencode.changes index 895d8c6..12d1188 100644 --- a/python-bencode.changes +++ b/python-bencode.changes @@ -4,6 +4,7 @@ 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 d500ca1..8784dad 100644 --- a/python-bencode.spec +++ b/python-bencode.spec @@ -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}/*