File python-gzipstream.spec of Package python-gzipstream.2353
#
# spec file for package python-gzipstream
#
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#
%if ! (0%{?fedora} || 0%{?rhel} > 5)
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%endif
Summary: Streaming zlib (gzip) support for python
License: GPL-2.0
Group: Development/Libraries
Name: python-gzipstream
Version: 2.5.0.1
Release: 0
Url: https://fedorahosted.org/spacewalk/wiki/Projects/python-gzipstream
Source0: python-gzipstream-git-0.227e02a.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if ! (0%{?suse_version} && 0%{?suse_version} <= 1110)
BuildArch: noarch
%endif
BuildRequires: python-devel
%description
A streaming gzip handler.
gzipstream.GzipStream extends the functionality of the gzip.GzipFile class
to allow the processing of streaming data.
%prep
%setup -q -n python-gzipstream-git-0.227e02a
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --prefix %{_usr}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{python_sitelib}/*
%doc html
%doc LICENSE
%changelog