%global modname crank %if 0%{?rhel} && 0%{?rhel} <= 7 %global with_python3 0 %else %global with_python3 1 %endif Name: python-crank Version: 0.8.1 Release: 2%{?dist} Summary: Generalization of dispatch mechanism for use across frameworks Group: Development/Libraries License: MIT URL: https://pypi.io/project/crank Source0: https://pypi.io/packages/source/c/%{modname}/%{modname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python2-setuptools %if 0%{?with_python3} BuildRequires: python3-devel BuildRequires: python3-setuptools %endif Provides: python2-crank %description Generalization of dispatch mechanism for use across frameworks. %if 0%{?with_python3} %package -n python3-%{modname} Summary: Generalization of dispatch mechanism for use across python3 web frameworks Group: Development/Libraries %description -n python3-%{modname} Generalization of dispatch mechanism for use across web frameworks. This package provides the python3 version of this module %endif %prep %setup -q -n %{modname}-%{version} # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info %if 0%{?with_python3} rm -rf %{py3dir} cp -a . %{py3dir} %endif # with_python3 %build %{__python2} setup.py build %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py build popd %endif # with_python3 %install %{__python2} setup.py install --skip-build --root=%{buildroot} %if 0%{?with_python3} pushd %{py3dir} %{__python3} setup.py install --skip-build --root=%{buildroot} popd %endif # with_python3 # The current upstream tarball doesn't contain the tests #%check #%{__python} setup.py test #%if 0%{?with_python3} #pushd %{py3dir} #%{__python3} setup.py test #popd #%endif # with_python3 %files %doc README.rst %{python2_sitelib}/%{modname}/ %{python2_sitelib}/%{modname}-%{version}* %if 0%{?with_python3} %files -n python3-%{modname} %{python3_sitelib}/%{modname}/ %{python3_sitelib}/%{modname}-%{version}* %endif %changelog * Thu Jul 27 2017 Fedora Release Engineering - 0.8.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Mar 21 2017 Ralph Bean - 0.8.1-1 - new version * Sat Feb 11 2017 Fedora Release Engineering - 0.8.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro HronĨok - 0.8.0-3 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.8.0-2 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Mon Mar 07 2016 Ralph Bean - 0.8.0-1 - new version * Thu Feb 04 2016 Fedora Release Engineering - 0.7.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Dec 6 2015 Toshio Kuratomi - - 0.7.3-2 - Python3 subpackage * Tue Oct 13 2015 Ralph Bean - 0.7.3-1 - new version * Wed Sep 16 2015 Ralph Bean - 0.7.2-1 - new version * Thu Jun 18 2015 Fedora Release Engineering - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Aug 20 2014 Ralph Bean - 0.7.1-1 - Latest upstream. * Sat Jun 07 2014 Fedora Release Engineering - 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Feb 12 2014 Ralph Bean - 0.7.0-1 - Latest upstream. * Sun Aug 04 2013 Fedora Release Engineering - 0.6.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Apr 03 2013 Luke Macken 0.6.4-1 - Initial package for Fedora