diff --git a/pylzma-0.4.8.tar.gz b/pylzma-0.4.8.tar.gz deleted file mode 100644 index 47e0584..0000000 --- a/pylzma-0.4.8.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e6239cc4c134083ef6cfee54b1b9f5116dfc081474e093136b1b0e3226ac2532 -size 115234 diff --git a/python-pylzma.changes b/python-pylzma.changes index 4dd3a20..e4b5317 100644 --- a/python-pylzma.changes +++ b/python-pylzma.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +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 + ------------------------------------------------------------------- Wed Aug 19 21:59:43 UTC 2015 - nemysis@openSUSE.org diff --git a/python-pylzma.spec b/python-pylzma.spec index c9986f4..71e1db6 100644 --- a/python-pylzma.spec +++ b/python-pylzma.spec @@ -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 @@ that has been compressed or can be decompressed by the LZMA library. %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} -%if 0%{?suse_version} - %fdupes -s %{buildroot}%{_prefix} -%endif +%check +%python_exec setup.py test -%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 diff --git a/v0.4.9.tar.gz b/v0.4.9.tar.gz new file mode 100644 index 0000000..795592e --- /dev/null +++ b/v0.4.9.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebbc73c66b94da6cd7c644d585a35f8b2bc946429da7607b9421bf4d3aca1064 +size 4083321