Hello community,

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

Package is "python-pep8"

Wed Apr 19 18:04:13 2017 rev:33 rq:483176 version:1.7.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pep8/python-pep8.changes  2016-08-22 
13:59:04.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-pep8.new/python-pep8.changes     
2017-04-19 18:04:14.721691586 +0200
@@ -1,0 +2,6 @@
+Fri Mar 24 14:40:39 UTC 2017 - jmate...@suse.com
+
+- update for singlespec
+- delete shebang from pep8.py
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pep8.spec ++++++
--- /var/tmp/diff_new_pack.s9HRpn/_old  2017-04-19 18:04:15.629563163 +0200
+++ /var/tmp/diff_new_pack.s9HRpn/_new  2017-04-19 18:04:15.633562598 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pep8
 #
-# 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
@@ -16,26 +16,25 @@
 #
 
 
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pep8
 Version:        1.7.0
 Release:        0
-Url:            https://github.com/pycqa/pep8
 Summary:        Python style guide checker
 License:        MIT
 Group:          Development/Languages/Python
-Source:         
http://pypi.python.org/packages/source/p/pep8/pep8-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+Url:            https://github.com/pycqa/pep8
+Source:         
https://files.pythonhosted.org/packages/source/p/pep8/pep8-%{version}.tar.gz
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
+BuildRequires:  python-rpm-macros
 Requires:       python-setuptools
 Requires(post): update-alternatives
-Requires(preun): update-alternatives
-%if 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from 
distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%else
+Requires(postun): update-alternatives
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
-%endif
+%python_subpackages
 
 %description
 Pep8 is a tool to check your Python code against some of the style
@@ -43,38 +42,31 @@
 
 %prep
 %setup -q -n pep8-%{version}
+sed -ri '1s/^#!.*//' pep8.py
 
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_clone -a %{buildroot}%{_bindir}/pep8
 
-# Prepare for update-alternatives usage
-mkdir -p %{buildroot}%{_sysconfdir}/alternatives
-mv %{buildroot}%{_bindir}/pep8 %{buildroot}%{_bindir}/pep8-%{py_ver}
-ln -s -f %{_sysconfdir}/alternatives/pep8 %{buildroot}%{_bindir}/pep8
+%fdupes %{buildroot}%{_prefix}
 
-%fdupes %{buildroot}%{python_sitelib}
+%check
+%python_exec setup.py test
 
 %post
-%_sbindir/update-alternatives \
-   --install %{_bindir}/pep8 pep8 %{_bindir}/pep8-%{py_ver} 30
-
-%preun
-if [ $1 -eq 0 ] ; then
-    %_sbindir/update-alternatives --remove pep8 %{_bindir}/pep8-%{py_ver}
-fi
+%python_install_alternative pep8
 
-%check
-python setup.py test
+%postun
+%python_uninstall_alternative pep8
 
-%files
+%files %{python_files}
 %defattr(-,root,root)
 %doc CHANGES.txt README.rst
-%{_bindir}/pep8
-%{_bindir}/pep8-%{py_ver}
-%ghost %{_sysconfdir}/alternatives/pep8
+%python_alternative %{_bindir}/pep8
+%pycache_only %{python_sitelib}/__pycache__/*
 %{python_sitelib}/pep8.py*
 %{python_sitelib}/pep8-%{version}-py*.egg-info
 


Reply via email to