%global srcname rarfile %global sum A RAR archive reader for Python Name: python-%{srcname} Version: 3.0 Release: 1%{?dist} Summary: %{sum} License: ISC URL: https://github.com/markokr/rarfile Source0: https://github.com/markokr/rarfile/archive/%{srcname}_3_0.tar.gz Buildarch: noarch BuildRequires: python2-devel BuildRequires: python3-devel %description This is Python module for RAR archive reading. The interface is made as zipfile like as possible. %package -n python2-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} This is Python module for RAR archive reading. The interface is made as zipfile like as possible. %package -n python3-%{srcname} Summary: %{sum} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} This is Python module for RAR archive reading. The interface is made as zipfile like as possible. %prep %autosetup -n %{srcname}-%{srcname}_3_0 %build %py2_build %py3_build %install %py2_install %py3_install %files -n python2-%{srcname} %doc README.rst %license LICENSE %{python2_sitelib}/%{srcname}.py* %{python2_sitelib}/%{srcname}*.egg-info %files -n python3-%{srcname} %doc README.rst %license LICENSE %{python3_sitelib}/%{srcname}.py* %{python3_sitelib}/%{srcname}*.egg-info %{python3_sitelib}/__pycache__/%{srcname}* %changelog * Wed Dec 28 2016 Fabian Affolter - 3.0-1 - Update to new upstream version 3.0 (rhbz#1408888) * Mon Dec 19 2016 Miro HronĨok - 2.8-3 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 2.8-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Tue Jun 07 2016 Fabian Affolter - 2.8-1 - Update to new upstream version 2.8 * Thu Feb 04 2016 Fedora Release Engineering - 2.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Nov 14 2015 Fabian Affolter - 2.7-4 - Cleanup * Tue Nov 10 2015 Fedora Release Engineering - 2.7-3 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 2.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Mar 15 2015 Fabian Affolter - 2.7-1 - Initial package