Hello community,

here is the log from the commit of package python-pyasn1 for openSUSE:Factory 
checked in at 2017-04-19 17:56:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyasn1 (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyasn1.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyasn1"

Wed Apr 19 17:56:58 2017 rev:25 rq:480631 version:0.2.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyasn1/python-pyasn1.changes      
2017-03-09 01:44:25.528411189 +0100
+++ /work/SRC/openSUSE:Factory/.python-pyasn1.new/python-pyasn1.changes 
2017-04-19 17:57:01.275004896 +0200
@@ -1,0 +2,5 @@
+Thu Mar 16 13:42:52 UTC 2017 - tbecht...@suse.com
+
+- Switch to singlespec approach
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pyasn1.spec ++++++
--- /var/tmp/diff_new_pack.CEgM7J/_old  2017-04-19 17:57:03.454696525 +0200
+++ /var/tmp/diff_new_pack.CEgM7J/_new  2017-04-19 17:57:03.454696525 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyasn1
 #
-# Copyright (c) 2015 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,6 +16,7 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pyasn1
 Version:        0.2.3
 Release:        0
@@ -24,17 +25,15 @@
 Group:          Development/Languages/Python
 Url:            https://github.com/etingof/pyasn1
 Source:         
https://pypi.io/packages/source/p/pyasn1/pyasn1-%{version}.tar.gz
-BuildRequires:  python-devel
-BuildRequires:  python-pytest
-BuildRequires:  python-setuptools
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  python-rpm-macros
 Provides:       python-asn1 = %{version}
 Obsoletes:      python-asn1 < 0.1.2
 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 is an implementation of ASN.1 types and codecs in Python programming
@@ -46,15 +45,15 @@
 %setup -q -n pyasn1-%{version}
 
 %build
-python setup.py build
-
-%check
-python setup.py test
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+
+%check
+%python_exec setup.py test
 
-%files
+%files %python_files
 %defattr(-,root,root,-)
 %doc CHANGES.rst LICENSE.rst README.md THANKS.txt TODO.rst doc
 %{python_sitelib}/*


Reply via email to