2014-08-15 21:08:48 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-rarfile
|
|
|
|
#
|
2017-02-06 08:07:18 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-08-15 21:08:48 +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/
|
|
|
|
#
|
|
|
|
|
2016-04-26 14:22:10 +00:00
|
|
|
|
2017-03-31 06:46:39 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2014-08-15 21:08:48 +00:00
|
|
|
Name: python-rarfile
|
2017-02-06 08:07:18 +00:00
|
|
|
Version: 3.0
|
2014-08-15 21:08:48 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: RAR Archive Reader for Python
|
2016-04-26 14:22:10 +00:00
|
|
|
License: ISC
|
2014-08-15 21:08:48 +00:00
|
|
|
Group: Development/Languages/Python
|
2016-04-26 14:22:10 +00:00
|
|
|
Url: https://rarfile.readthedocs.org/
|
2017-02-06 08:07:18 +00:00
|
|
|
Source0: https://pypi.io/packages/source/r/rarfile/rarfile-%{version}.tar.gz
|
2017-03-31 06:46:39 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python3-Sphinx >= 1.3
|
2016-09-14 12:39:10 +00:00
|
|
|
Requires: bsdtar
|
|
|
|
Recommends: unrar
|
2014-08-15 21:08:48 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2017-03-31 06:46:39 +00:00
|
|
|
%python_subpackages
|
2014-08-15 21:08:48 +00:00
|
|
|
|
|
|
|
%description
|
2017-03-31 06:46:39 +00:00
|
|
|
This is a Python module for RAR archive reading. It supports both RAR
|
|
|
|
2.x and 3.x archives, multi volume archives, Unicode filenames,
|
|
|
|
password-protected archives, archive and file comments. The archive
|
|
|
|
parsing and non-compressed files are handled in pure Python code, for
|
|
|
|
compressed files, the "unrar" utility is run.
|
2014-08-15 21:08:48 +00:00
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: RAR Archive Reader for Python (Documentation)
|
|
|
|
Group: Documentation/HTML
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Python module for RAR archive reading.
|
|
|
|
|
|
|
|
This package contains technical documentation.
|
|
|
|
|
|
|
|
%prep
|
2017-03-31 06:46:39 +00:00
|
|
|
%setup -q -n rarfile-%{version}
|
2014-08-15 21:08:48 +00:00
|
|
|
|
|
|
|
%build
|
2017-03-31 06:46:39 +00:00
|
|
|
%python_build
|
|
|
|
make %{?_smp_mflags} -C doc html
|
|
|
|
rm doc/_build/html/.buildinfo
|
|
|
|
sed -i 's/\r$//' doc/_build/html/objects.inv
|
2014-08-15 21:08:48 +00:00
|
|
|
|
|
|
|
%install
|
2017-03-31 06:46:39 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
2014-08-15 21:08:48 +00:00
|
|
|
|
2017-03-31 06:46:39 +00:00
|
|
|
%files %{python_files}
|
2014-08-15 21:08:48 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
2017-03-31 06:46:39 +00:00
|
|
|
%pycache_only %{python_sitelib}/__pycache__/rarfile.*.py*
|
|
|
|
%{python_sitelib}/rarfile.py*
|
|
|
|
%{python_sitelib}/rarfile-%{version}-py%{python_version}.egg-info
|
2014-08-15 21:08:48 +00:00
|
|
|
|
2017-03-31 06:46:39 +00:00
|
|
|
%files %{python_files doc}
|
2014-08-15 21:08:48 +00:00
|
|
|
%defattr(-,root,root,-)
|
2017-03-31 06:46:39 +00:00
|
|
|
%doc LICENSE doc/_build/html/
|
2014-08-15 21:08:48 +00:00
|
|
|
|
|
|
|
%changelog
|