Hello community,

here is the log from the commit of package python-pyPEG2 for openSUSE:Factory 
checked in at 2017-05-03 15:58:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyPEG2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyPEG2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyPEG2"

Wed May  3 15:58:39 2017 rev:2 rq:492546 version:2.15.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyPEG2/python-pyPEG2.changes      
2016-04-30 23:30:00.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-pyPEG2.new/python-pyPEG2.changes 
2017-05-03 15:58:40.375666052 +0200
@@ -1,0 +2,6 @@
+Tue May  2 21:42:12 UTC 2017 - [email protected]
+
+- Update for the multipython build.
+- Use python-nose unconditionally.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pyPEG2.spec ++++++
--- /var/tmp/diff_new_pack.61y34i/_old  2017-05-03 15:58:42.127418752 +0200
+++ /var/tmp/diff_new_pack.61y34i/_new  2017-05-03 15:58:42.135417623 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyPEG2
 #
-# Copyright (c) 2016 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
@@ -13,27 +13,29 @@
 # published by the Open Source Initiative.
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define oldpython python
 %define _name   pyPEG2
 Name:           python-pyPEG2
 Version:        2.15.2
 Release:        0
-License:        GPL-2.0
 Summary:        PEG Parser-Interpreter framework for Python
-Url:            https://fdik.org/pyPEG2
+License:        GPL-2.0
 Group:          Development/Languages/Python
-Source:         
https://pypi.python.org/packages/source/p/%{_name}/%{_name}-%{version}.tar.gz
-BuildRequires:  python
-BuildRequires:  python-lxml
+Url:            https://fdik.org/pyPEG2
+Source:         
https://files.pythonhosted.org/packages/source/p/%{_name}/%{_name}-%{version}.tar.gz
+BuildRequires:  %{python_module lxml}
+BuildRequires:  %{python_module nose}
+BuildRequires:  python-rpm-macros
 Requires:       python-lxml
-%if 0%{?suse_version} > 1120 && !(0%{?suse_version} == 1315 && 
0%{?is_opensuse})
-BuildRequires:  python-nose
-%endif
-%if 0%{?suse_version} >= 1120
 BuildArch:      noarch
-%else
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%ifpython2
+# python-pyPEG2 was last used in openSUSE Leap 14.2.
+Provides:       %{oldpython}-pyPEG2 = %{version}
+Obsoletes:      %{oldpython}-pyPEG2 < %{version}
 %endif
 
 %description
@@ -41,25 +43,24 @@
 for Python. It is based on Parsing Expression Grammar, PEG.
 With pyPEG you can parse many formal languages in a very easy way.
 
+%python_subpackages
+
 %prep
 %setup -q -n %{_name}-%{version}
 
 %build
-python2 setup.py build
+%python_build
 
 %install
-python2 setup.py install \
-  --root=%{buildroot} --prefix=%{_prefix}
+%python_install
 
-%if 0%{?suse_version} > 1120 && !(0%{?suse_version} == 1315 && 
0%{?is_opensuse})
 %check
-nosetests-%{py_ver}
-%endif
+nosetests-%{python_version}
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
 %doc CHANGES.txt LICENSE.txt README.txt
 %{python_sitelib}/pypeg2/
-%{python_sitelib}/%{_name}-*
+%{python_sitelib}/%{_name}-%{version}-py%{python_version}.egg-info
 
 %changelog


Reply via email to