14
0
forked from pool/python-pylzma

- Move urls to github, pypi tarball does not contain tests, upstream

fixed it for future releases

- Switch to singlespec
- Update to 0.4.9:
  * support python3

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylzma?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2018-07-26 15:41:48 +00:00
committed by Git OBS Bridge
parent 61726dd6b1
commit b8ac3c046c
4 changed files with 37 additions and 30 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e6239cc4c134083ef6cfee54b1b9f5116dfc081474e093136b1b0e3226ac2532
size 115234

View File

@@ -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

View File

@@ -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

3
v0.4.9.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ebbc73c66b94da6cd7c644d585a35f8b2bc946429da7607b9421bf4d3aca1064
size 4083321