Hello community,

here is the log from the commit of package python-usb for openSUSE:Factory 
checked in at 2017-08-31 21:03:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-usb (Old)
 and      /work/SRC/openSUSE:Factory/.python-usb.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-usb"

Thu Aug 31 21:03:43 2017 rev:13 rq:519811 version:1.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-usb/python-usb.changes    2016-10-04 
15:58:55.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-usb.new/python-usb.changes       
2017-08-31 21:03:50.389232993 +0200
@@ -1,0 +2,6 @@
+Wed Aug 30 23:52:59 UTC 2017 - [email protected]
+
+- singlespec auto-conversion
+- Use pypi source URL.
+
+-------------------------------------------------------------------

Old:
----
  1.0.0.tar.gz

New:
----
  PyUSB-1.0.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-usb.spec ++++++
--- /var/tmp/diff_new_pack.gcQ2Ps/_old  2017-08-31 21:03:52.224975068 +0200
+++ /var/tmp/diff_new_pack.gcQ2Ps/_new  2017-08-31 21:03:52.276967762 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-usb
 #
-# Copyright (c) 2016 SUSE LINUX 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,8 +16,7 @@
 #
 
 
-%define versuffix %nil
-
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-usb
 Version:        1.0.0
 Release:        0
@@ -25,31 +24,31 @@
 License:        BSD-3-Clause
 Group:          Development/Languages/Python
 Url:            https://github.com/walac/pyusb
-Source:         
https://github.com/walac/pyusb/archive/%{version}%{versuffix}.tar.gz
+Source:         
https://files.pythonhosted.org/packages/source/p/pyusb/PyUSB-%{version}.tar.gz
+BuildRequires:  %{python_module devel}
 BuildRequires:  dos2unix
-BuildRequires:  python-devel
+BuildRequires:  python-rpm-macros
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} > 1110
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 Aims to provide easy USB access to the Python language.
 
 %prep
-%setup -q -n pyusb-%{version}%{versuffix}
+%setup -q -n pyusb-%{version}
 # Convert dos format files to unix format
 find .  -name "*.rst" -exec dos2unix {} \;
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
-%{python_sitelib}/*
 %doc ACKNOWLEDGEMENTS LICENSE README.rst docs/*
+%{python_sitelib}/*
 
 %changelog


Reply via email to