From 59adeb14992ecb7b43432f97b59e23d94717ac6284d48c704aed4126058b00be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 8 Mar 2019 13:12:04 +0000 Subject: [PATCH] - Update to 1.2.0: * various changes for pip * add makefile OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-discid?expand=0&rev=11 --- discid-1.1.1.tar.gz | 3 --- discid-1.2.0.tar.gz | 3 +++ python-discid.changes | 7 +++++++ python-discid.spec | 29 +++++++++++++---------------- 4 files changed, 23 insertions(+), 19 deletions(-) delete mode 100644 discid-1.1.1.tar.gz create mode 100644 discid-1.2.0.tar.gz diff --git a/discid-1.1.1.tar.gz b/discid-1.1.1.tar.gz deleted file mode 100644 index 4bb69f3..0000000 --- a/discid-1.1.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:78a3bf6c8377fdbe3d85e914a209ff97aa43e35605779639847b510ced31f7b9 -size 30982 diff --git a/discid-1.2.0.tar.gz b/discid-1.2.0.tar.gz new file mode 100644 index 0000000..a9f1e09 --- /dev/null +++ b/discid-1.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd9630bc53f5566df92819641040226e290b2047573f2c74a6e92b8eed9e86b9 +size 30777 diff --git a/python-discid.changes b/python-discid.changes index dd5937c..812ada9 100644 --- a/python-discid.changes +++ b/python-discid.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Mar 8 13:06:39 UTC 2019 - Tomáš Chvátal + +- Update to 1.2.0: + * various changes for pip + * add makefile + ------------------------------------------------------------------- Thu Dec 7 11:17:42 UTC 2017 - dimstar@opensuse.org diff --git a/python-discid.spec b/python-discid.spec index 4d3e6b5..2529da6 100644 --- a/python-discid.spec +++ b/python-discid.spec @@ -1,7 +1,7 @@ # # spec file for package python-discid # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2013 Johannes Dewender # # All modifications and additions to the file contributed by third parties @@ -13,30 +13,28 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -# Test requires CD device -%bcond_with test %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-discid -Version: 1.1.1 +Version: 1.2.0 Release: 0 Summary: Python binding of Libdiscid -License: LGPL-3.0+ +License: LGPL-3.0-or-later Group: Development/Libraries/Python -Url: https://python-discid.readthedocs.org/ +URL: https://github.com/JonnyJD/python-discid Source: https://files.pythonhosted.org/packages/source/d/discid/discid-%{version}.tar.gz -BuildRequires: %{python_module devel >= 2.6} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: pkgconfig -BuildRequires: pkgconfig(libdiscid) >= 0.2.2 BuildRequires: python-rpm-macros +BuildRequires: pkgconfig(libdiscid) >= 0.2.2 # no automatic requires since libdiscid is not linked Requires: %(rpm -qf $(readlink -qne %{_libdir}/libdiscid.so) --qf '%%{NAME} >= %%{VERSION}') BuildArch: noarch - %python_subpackages %description @@ -56,7 +54,7 @@ pythonic API and uses objects and exceptions. %prep %setup -q -n discid-%{version} -sed -i "s|^#!/usr/bin/env python$|#!%{__python3}|" examples.py +sed -i "s|^#!%{_bindir}/env python$|#!python3|" examples.py %build %python_build @@ -65,14 +63,13 @@ sed -i "s|^#!/usr/bin/env python$|#!%{__python3}|" examples.py %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%python_exec test_discid.py -%endif +# skip tests that require /dev/sr0 +%python_expand py.test-%{$python_bin_suffix} -v -k "not (test_read_simple or test_read_put or test_read_features)" %files %{python_files} -%defattr(-,root,root) -%doc COPYING COPYING.LESSER CHANGES.rst README.rst examples.py +%license COPYING COPYING.LESSER +%doc CHANGES.rst README.rst %{python_sitelib}/discid/ %{python_sitelib}/discid-%{version}-py*.egg-info