%global pypi_name wheel Name: python-%{pypi_name} Version: 0.29.0 Release: 1%{?dist} Summary: A built-package format for Python License: MIT URL: https://bitbucket.org/pypa/wheel Source0: https://files.pythonhosted.org/packages/source/%(n=%{pypi_name}; echo ${n:0:1})/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch %global _description \ A built-package format for Python.\ \ A wheel is a ZIP-format archive with a specially formatted filename and the\ .whl extension. It is designed to contain all the files for a PEP 376\ compatible install in a way that is very close to the on-disk format. %description %{_description} %package -n python2-%{pypi_name} Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-setuptools BuildRequires: python2-pytest BuildRequires: pyxdg BuildRequires: python-keyring BuildRequires: python-jsonschema %description -n python2-%{pypi_name} %{_description} Python 2 version. %package -n python3-%{pypi_name} Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pytest BuildRequires: python3-pyxdg BuildRequires: python3-keyring BuildRequires: python3-jsonschema %description -n python3-%{pypi_name} %{_description} Python 3 version. %prep %autosetup -n %{pypi_name}-%{version} # remove unneeded shebangs sed -ie '1d' %{pypi_name}/{egg2wheel,wininst2wheel}.py %build %py2_build %py3_build %install %py2_install mv %{buildroot}%{_bindir}/%{pypi_name}{,-%{python2_version}} ln -s %{pypi_name}-%{python2_version} %{buildroot}%{_bindir}/%{pypi_name}-2 %py3_install mv %{buildroot}%{_bindir}/%{pypi_name}{,-%{python3_version}} ln -s %{pypi_name}-%{python3_version} %{buildroot}%{_bindir}/%{pypi_name}-3 ln -s %{pypi_name}-2 %{buildroot}%{_bindir}/%{pypi_name} %check rm setup.cfg PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -v --ignore build PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build %files -n python2-%{pypi_name} %license LICENSE.txt %doc CHANGES.txt README.txt %{_bindir}/%{pypi_name} %{_bindir}/%{pypi_name}-2 %{_bindir}/%{pypi_name}-%{python2_version} %{python2_sitelib}/%{pypi_name}* %exclude %{python2_sitelib}/%{pypi_name}/test %files -n python3-%{pypi_name} %license LICENSE.txt %doc CHANGES.txt README.txt %{_bindir}/%{pypi_name}-3 %{_bindir}/%{pypi_name}-%{python3_version} %{python3_sitelib}/%{pypi_name}* %exclude %{python3_sitelib}/%{pypi_name}/test %changelog * Wed Aug 10 2016 Igor Gnatenko - 0.29.0-1 - Update to 0.29.0 - Cleanups and fixes * Tue Jul 19 2016 Fedora Release Engineering - 0.26.0-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.26.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Oct 13 2015 Robert Kuska - 0.26.0-1 - Update to 0.26.0 - Rebuilt for Python3.5 rebuild * Thu Jun 18 2015 Fedora Release Engineering - 0.24.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jan 13 2015 Slavek Kabrda - 0.24.0-3 - Make spec buildable in EPEL 6, too. - Remove additional sources added to upstream tarball. * Sat Jan 03 2015 Matej Cepl - 0.24.0-2 - Make python3 conditional (switched off for RHEL-7; fixes #1131111). * Mon Nov 10 2014 Slavek Kabrda - 0.24.0-1 - Update to 0.24.0 - Remove patches merged upstream * Sun Jun 08 2014 Fedora Release Engineering - 0.22.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Apr 25 2014 Matej Stuchlik - 0.22.0-3 - Another rebuild with python 3.4 * Fri Apr 18 2014 Matej Stuchlik - 0.22.0-2 - Rebuild with python 3.4 * Thu Nov 28 2013 Bohuslav Kabrda - 0.22.0-1 - Initial package.