2017-01-03 15:14:38 +00:00
|
|
|
%bcond_with bootstrap
|
2016-12-06 13:05:01 +00:00
|
|
|
|
2013-12-03 09:16:56 +00:00
|
|
|
%global pypi_name wheel
|
|
|
|
|
|
|
|
Name: python-%{pypi_name}
|
2016-09-19 09:18:21 +00:00
|
|
|
Version: 0.30.0a0
|
2017-07-27 12:16:26 +00:00
|
|
|
Release: 7%{?dist}
|
2013-12-03 09:16:56 +00:00
|
|
|
Summary: A built-package format for Python
|
|
|
|
|
|
|
|
License: MIT
|
2015-01-14 06:49:44 +00:00
|
|
|
URL: https://bitbucket.org/pypa/wheel
|
2016-08-10 07:18:34 +00:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/%(n=%{pypi_name}; echo ${n:0:1})/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
2013-12-03 09:16:56 +00:00
|
|
|
BuildArch: noarch
|
2015-01-05 12:39:59 +00:00
|
|
|
|
2016-09-19 09:18:21 +00:00
|
|
|
# Latest version of wheel requires the package keyrings.alt in order for the tests to pass,
|
|
|
|
# however it can't be packaged for Fedora as of yet since the code is not licensed,
|
|
|
|
# and as a result wheel fails to build from source.
|
|
|
|
# Review request of keyrings.alt: https://bugzilla.redhat.com/show_bug.cgi?id=1365794
|
|
|
|
# Until the license issue is resolved upstream, this patch is added to revert
|
|
|
|
# the commit from wheel, that introduced this dependency.
|
|
|
|
# https://bitbucket.org/pypa/wheel/commits/06841295888fdb430abe12aae29da92107e7360a
|
|
|
|
Patch0: remove-keyrings.alt-dependency.patch
|
|
|
|
|
2016-08-10 07:18:34 +00:00
|
|
|
%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.
|
2013-12-03 09:16:56 +00:00
|
|
|
|
2016-08-10 07:18:34 +00:00
|
|
|
%description %{_description}
|
|
|
|
|
|
|
|
%package -n python2-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-setuptools
|
2016-12-06 13:05:01 +00:00
|
|
|
%if ! %{with bootstrap}
|
2016-08-10 07:18:34 +00:00
|
|
|
BuildRequires: python2-pytest
|
|
|
|
BuildRequires: pyxdg
|
2013-12-03 09:16:56 +00:00
|
|
|
BuildRequires: python-keyring
|
2016-08-10 07:18:34 +00:00
|
|
|
BuildRequires: python-jsonschema
|
2016-12-06 13:05:01 +00:00
|
|
|
%endif
|
2016-09-19 15:44:00 +00:00
|
|
|
%{?python_provide:%python_provide python2-%{pypi_name}}
|
|
|
|
|
2016-08-10 07:18:34 +00:00
|
|
|
%description -n python2-%{pypi_name} %{_description}
|
|
|
|
|
|
|
|
Python 2 version.
|
2015-01-05 12:39:59 +00:00
|
|
|
|
2016-08-10 07:18:34 +00:00
|
|
|
%package -n python3-%{pypi_name}
|
|
|
|
Summary: %{summary}
|
2013-12-03 09:16:56 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2016-12-06 13:05:01 +00:00
|
|
|
%if ! %{with bootstrap}
|
2015-01-19 13:41:53 +00:00
|
|
|
BuildRequires: python3-pytest
|
2016-08-10 07:18:34 +00:00
|
|
|
BuildRequires: python3-pyxdg
|
2015-01-19 13:41:53 +00:00
|
|
|
BuildRequires: python3-keyring
|
|
|
|
BuildRequires: python3-jsonschema
|
2016-12-06 13:05:01 +00:00
|
|
|
%endif
|
2016-09-19 15:44:00 +00:00
|
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
|
|
2016-08-10 07:18:34 +00:00
|
|
|
%description -n python3-%{pypi_name} %{_description}
|
2013-12-03 09:16:56 +00:00
|
|
|
|
2016-08-10 07:18:34 +00:00
|
|
|
Python 3 version.
|
2013-12-03 09:16:56 +00:00
|
|
|
|
|
|
|
%prep
|
2016-09-19 09:18:21 +00:00
|
|
|
%setup -q -n %{pypi_name}-%{version}
|
2013-12-03 09:16:56 +00:00
|
|
|
# remove unneeded shebangs
|
|
|
|
sed -ie '1d' %{pypi_name}/{egg2wheel,wininst2wheel}.py
|
2016-09-19 09:18:21 +00:00
|
|
|
%patch0 -p1
|
2013-12-03 09:16:56 +00:00
|
|
|
|
|
|
|
%build
|
2016-08-10 07:18:34 +00:00
|
|
|
%py2_build
|
|
|
|
%py3_build
|
2013-12-03 09:16:56 +00:00
|
|
|
|
|
|
|
%install
|
2016-08-10 07:18:34 +00:00
|
|
|
%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
|
2013-12-03 09:16:56 +00:00
|
|
|
|
2016-08-10 07:18:34 +00:00
|
|
|
ln -s %{pypi_name}-2 %{buildroot}%{_bindir}/%{pypi_name}
|
2013-12-03 09:16:56 +00:00
|
|
|
|
2016-12-06 13:05:01 +00:00
|
|
|
%if ! %{with bootstrap}
|
2013-12-03 09:16:56 +00:00
|
|
|
%check
|
|
|
|
rm setup.cfg
|
2016-08-10 07:18:34 +00:00
|
|
|
PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -v --ignore build
|
|
|
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
|
2016-12-06 13:05:01 +00:00
|
|
|
%endif
|
2016-08-10 07:18:34 +00:00
|
|
|
|
|
|
|
%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
|
2013-12-03 09:16:56 +00:00
|
|
|
|
|
|
|
%files -n python3-%{pypi_name}
|
2016-08-10 07:18:34 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc CHANGES.txt README.txt
|
|
|
|
%{_bindir}/%{pypi_name}-3
|
|
|
|
%{_bindir}/%{pypi_name}-%{python3_version}
|
2013-12-03 09:16:56 +00:00
|
|
|
%{python3_sitelib}/%{pypi_name}*
|
|
|
|
%exclude %{python3_sitelib}/%{pypi_name}/test
|
|
|
|
|
|
|
|
%changelog
|
2017-07-27 12:16:26 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.0a0-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-11 10:54:56 +00:00
|
|
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.0a0-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-03 15:14:38 +00:00
|
|
|
* Tue Jan 03 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-5
|
|
|
|
- Enable tests
|
|
|
|
|
2016-12-10 13:03:34 +00:00
|
|
|
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-4
|
|
|
|
- Rebuild for Python 3.6 without tests
|
|
|
|
|
2016-12-06 13:05:01 +00:00
|
|
|
* Tue Dec 06 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.30.0a0-3
|
|
|
|
- Add bootstrap method
|
|
|
|
|
2016-09-19 15:44:00 +00:00
|
|
|
* Mon Sep 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-2
|
|
|
|
- Use the python_provide macro
|
|
|
|
|
2016-09-19 09:18:21 +00:00
|
|
|
* Mon Sep 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-1
|
|
|
|
- Update to 0.30.0a0
|
|
|
|
- Added patch to remove keyrings.alt dependency
|
|
|
|
|
2016-08-10 07:18:34 +00:00
|
|
|
* Wed Aug 10 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.29.0-1
|
|
|
|
- Update to 0.29.0
|
|
|
|
- Cleanups and fixes
|
|
|
|
|
2016-07-19 12:10:25 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26.0-3
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-02-04 21:22:09 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-10-13 16:15:10 +00:00
|
|
|
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 0.26.0-1
|
|
|
|
- Update to 0.26.0
|
|
|
|
- Rebuilt for Python3.5 rebuild
|
|
|
|
|
2015-06-18 21:19:09 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-01-13 16:51:55 +00:00
|
|
|
* Tue Jan 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 0.24.0-3
|
|
|
|
- Make spec buildable in EPEL 6, too.
|
|
|
|
- Remove additional sources added to upstream tarball.
|
|
|
|
|
2015-01-05 12:39:59 +00:00
|
|
|
* Sat Jan 03 2015 Matej Cepl <mcepl@redhat.com> - 0.24.0-2
|
|
|
|
- Make python3 conditional (switched off for RHEL-7; fixes #1131111).
|
|
|
|
|
2014-11-10 11:34:30 +00:00
|
|
|
* Mon Nov 10 2014 Slavek Kabrda <bkabrda@redhat.com> - 0.24.0-1
|
|
|
|
- Update to 0.24.0
|
|
|
|
- Remove patches merged upstream
|
|
|
|
|
2014-06-08 00:15:04 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22.0-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-25 09:09:42 +00:00
|
|
|
* Fri Apr 25 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.22.0-3
|
|
|
|
- Another rebuild with python 3.4
|
|
|
|
|
2014-04-18 10:36:08 +00:00
|
|
|
* Fri Apr 18 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.22.0-2
|
|
|
|
- Rebuild with python 3.4
|
|
|
|
|
2013-12-03 09:16:56 +00:00
|
|
|
* Thu Nov 28 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.22.0-1
|
|
|
|
- Initial package.
|