Hello community,

here is the log from the commit of package python-pyliblzma for 
openSUSE:Factory checked in at 2018-08-02 14:57:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyliblzma (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyliblzma.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyliblzma"

Thu Aug  2 14:57:08 2018 rev:4 rq:625445 version:0.5.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyliblzma/python-pyliblzma.changes        
2016-01-01 19:50:24.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-pyliblzma.new/python-pyliblzma.changes   
2018-08-02 14:57:11.276181124 +0200
@@ -1,0 +2,9 @@
+Thu Jul 26 12:29:57 UTC 2018 - [email protected]
+
+- Cleanup spec file with spec-cleaner
+- Use python singlespec
+- Drop useless removal of shebang
+- Reduce duplicities
+- Drop doc subpackage
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pyliblzma.spec ++++++
--- /var/tmp/diff_new_pack.wnTDWg/_old  2018-08-02 14:57:12.492183165 +0200
+++ /var/tmp/diff_new_pack.wnTDWg/_new  2018-08-02 14:57:12.496183172 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pyliblzma
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 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
@@ -17,70 +17,46 @@
 
 
 %define oname   pyliblzma
-%define module  liblzma
-
+%define skip_python3 1
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-pyliblzma
 Version:        0.5.3
 Release:        0
 Summary:        Python bindings for liblzma
-License:        LGPL-3.0
+License:        LGPL-3.0-only
 Group:          Development/Libraries/Python
-Url:            https://launchpad.net/pyliblzma
+URL:            https://launchpad.net/pyliblzma
 Source:         
https://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.bz2
-BuildRequires:  gcc
-BuildRequires:  glibc-devel
-BuildRequires:  make
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  fdupes
 BuildRequires:  pkgconfig
-BuildRequires:  python-devel
-BuildRequires:  python-setuptools
-BuildRequires:  xz-devel
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitearch: %global python_sitearch %(python -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
-%endif
-
-%package -n %{name}-doc
-Summary:        Documentation for the python-pyliblzma
-Group:          Documentation
-%if 0%{?suse_version} && 0%{?suse_version} > 1110
-BuildArch:      noarch
-%endif
+BuildRequires:  python-rpm-macros
+BuildRequires:  pkgconfig(liblzma)
+Obsoletes:      %{name}-doc
+%python_subpackages
 
 %description
 PylibLZMA provides a python interface for the liblzma library
 to read and write data that has been compressed or can be
 decompressed by Lasse Collin's xz / lzma utils.
 
-%description -n %{name}-doc
-PylibLZMA provides a python interface for the liblzma library
-to read and write data that has been compressed or can be
-decompressed by Lasse Collin's xz / lzma utils.
-
-Documentation for the %{name}.
-
 %prep
 %setup -q -n %{oname}-%{version}
 
-# Remove Shebang
-sed -i '1d' %{module}.py
-
 %build
-python setup.py build
+%python_build
 
 %install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %check
-python setup.py test
+%python_exec setup.py test
 
-%files
-%defattr(-,root,root,-)
-%{python_sitearch}/%{module}.py*
-%{python_sitearch}/lzma.so
-%{python_sitearch}/%{oname}-%{version}-py%{py_ver}.egg-info
-
-%files -n %{name}-doc
-%defattr(-,root,root,-)
-%doc COPYING ChangeLog NEWS README THANKS
+%files %{python_files}
+%license COPYING
+%doc ChangeLog NEWS README THANKS
+%{python_sitearch}/*
 
 %changelog


Reply via email to