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:
committed by
Git OBS Bridge
parent
61726dd6b1
commit
b8ac3c046c
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e6239cc4c134083ef6cfee54b1b9f5116dfc081474e093136b1b0e3226ac2532
|
|
||||||
size 115234
|
|
@@ -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
|
Wed Aug 19 21:59:43 UTC 2015 - nemysis@openSUSE.org
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pylzma
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,25 +17,20 @@
|
|||||||
|
|
||||||
|
|
||||||
%define oname pylzma
|
%define oname pylzma
|
||||||
%define module py7zlib
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
|
||||||
Name: python-pylzma
|
Name: python-pylzma
|
||||||
Version: 0.4.8
|
Version: 0.4.9
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python bindings for the LZMA compression library
|
Summary: Python bindings for the LZMA compression library
|
||||||
License: LGPL-2.1
|
License: LGPL-2.1-only
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: http://www.joachim-bauch.de/projects/pylzma/
|
URL: https://github.com/fancycode/pylzma
|
||||||
Source0: https://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
|
Source0: https://github.com/fancycode/pylzma/archive/v%{version}.tar.gz
|
||||||
%if 0%{?suse_version}
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
%endif
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python-devel
|
%python_subpackages
|
||||||
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
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PyLZMA provides a platform independent way to read and write data
|
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}
|
%setup -q -n %{oname}-%{version}
|
||||||
|
|
||||||
# Remove Shebang
|
# Remove Shebang
|
||||||
sed -i '1d' %{module}.py
|
sed -i '1d' py7zlib.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%if 0%{?suse_version}
|
%check
|
||||||
%fdupes -s %{buildroot}%{_prefix}
|
%python_exec setup.py test
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%license LICENSE
|
||||||
%doc doc/* LICENSE README.md
|
%doc README.md
|
||||||
%{python_sitearch}/%{module}.py*
|
%{python_sitearch}/*
|
||||||
%{python_sitearch}/%{oname}.so
|
%{python_sitearch}/%{oname}*
|
||||||
%{python_sitearch}/%{oname}-%{version}-py%{py_ver}.egg-info
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
3
v0.4.9.tar.gz
Normal file
3
v0.4.9.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ebbc73c66b94da6cd7c644d585a35f8b2bc946429da7607b9421bf4d3aca1064
|
||||||
|
size 4083321
|
Reference in New Issue
Block a user