2013-11-27 14:56:36 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pylzma
|
|
|
|
#
|
2015-06-08 09:22:57 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-11-27 14:56:36 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2015-06-08 09:22:57 +00:00
|
|
|
|
|
|
|
%define oname pylzma
|
|
|
|
%define module py7zlib
|
|
|
|
|
|
|
|
Name: python-pylzma
|
2015-08-21 09:23:31 +00:00
|
|
|
Version: 0.4.8
|
2015-06-08 09:22:57 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python bindings for the LZMA compression library
|
|
|
|
License: LGPL-2.1
|
|
|
|
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}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
2013-11-27 14:56:36 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
%description
|
2015-06-08 09:22:57 +00:00
|
|
|
PyLZMA provides a platform independent way to read and write data
|
|
|
|
that has been compressed or can be decompressed by the LZMA library.
|
2013-11-27 14:56:36 +00:00
|
|
|
|
|
|
|
%prep
|
2015-06-08 09:22:57 +00:00
|
|
|
%setup -q -n %{oname}-%{version}
|
|
|
|
|
|
|
|
# Remove Shebang
|
|
|
|
sed -i '1d' %{module}.py
|
2013-11-27 14:56:36 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
2015-06-08 09:22:57 +00:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
%fdupes -s %{buildroot}%{_prefix}
|
|
|
|
%endif
|
|
|
|
|
2013-11-27 14:56:36 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2015-06-08 09:22:57 +00:00
|
|
|
%doc doc/* LICENSE README.md
|
|
|
|
%{python_sitearch}/%{module}.py*
|
|
|
|
%{python_sitearch}/%{oname}.so
|
|
|
|
%{python_sitearch}/%{oname}-%{version}-py%{py_ver}.egg-info
|
2013-11-27 14:56:36 +00:00
|
|
|
|
|
|
|
%changelog
|