Hello community, here is the log from the commit of package python-pylzma for openSUSE:Factory checked in at 2018-08-02 14:57:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pylzma (Old) and /work/SRC/openSUSE:Factory/.python-pylzma.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-pylzma" Thu Aug 2 14:57:12 2018 rev:3 rq:625449 version:0.4.9 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pylzma/python-pylzma.changes 2015-09-30 05:49:47.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pylzma.new/python-pylzma.changes 2018-08-02 14:57:13.472184810 +0200 @@ -1,0 +2,13 @@ +Thu Jul 26 15:32:10 UTC 2018 - tchvatal@suse.com + +- Move urls to github, pypi tarball does not contain tests, upstream + fixed it for future releases + +------------------------------------------------------------------- +Thu Jul 26 15:29:17 UTC 2018 - tchvatal@suse.com + +- Switch to singlespec +- Update to 0.4.9: + * support python3 + +------------------------------------------------------------------- Old: ---- pylzma-0.4.8.tar.gz New: ---- v0.4.9.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pylzma.spec ++++++ --- /var/tmp/diff_new_pack.VjR1Fh/_old 2018-08-02 14:57:16.220189425 +0200 +++ /var/tmp/diff_new_pack.VjR1Fh/_new 2018-08-02 14:57:16.228189438 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pylzma # -# 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,25 +17,20 @@ %define oname pylzma -%define module py7zlib - +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pylzma -Version: 0.4.8 +Version: 0.4.9 Release: 0 Summary: Python bindings for the LZMA compression library -License: LGPL-2.1 +License: LGPL-2.1-only Group: Development/Languages/Python -Url: http://www.joachim-bauch.de/projects/pylzma/ -Source0: https://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz -%if 0%{?suse_version} +URL: https://github.com/fancycode/pylzma +Source0: https://github.com/fancycode/pylzma/archive/v%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -%endif -BuildRequires: python-devel -BuildRequires: python-setuptools -%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 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python-rpm-macros +%python_subpackages %description PyLZMA provides a platform independent way to read and write data @@ -45,23 +40,22 @@ %setup -q -n %{oname}-%{version} # Remove Shebang -sed -i '1d' %{module}.py +sed -i '1d' py7zlib.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_exec setup.py test -%if 0%{?suse_version} - %fdupes -s %{buildroot}%{_prefix} -%endif - -%files -%defattr(-,root,root) -%doc doc/* LICENSE README.md -%{python_sitearch}/%{module}.py* -%{python_sitearch}/%{oname}.so -%{python_sitearch}/%{oname}-%{version}-py%{py_ver}.egg-info +%files %{python_files} +%license LICENSE +%doc README.md +%{python_sitearch}/* +%{python_sitearch}/%{oname}* %changelog