|
|
2e315e2 |
# Note that the function of bootstrap is that it disables the test suite and whl
|
|
|
2e315e2 |
# bcond_with bootstrap = tests enabled, package with whl created
|
|
|
e881d27 |
%bcond_with bootstrap
|
|
Igor Gnatenko |
98bd0f3 |
|
|
|
62eec5b |
%global pypi_name wheel
|
|
|
2e315e2 |
%global python_wheelname %{pypi_name}-%{version}-py2.py3-none-any.whl
|
|
|
2e315e2 |
%global python_wheeldir %{_datadir}/python-wheels
|
|
|
62eec5b |
|
|
|
62eec5b |
Name: python-%{pypi_name}
|
|
|
1e3c165 |
Version: 0.33.6
|
|
|
c3e5def |
Release: 2%{?dist}
|
|
|
14a14e2 |
Epoch: 1
|
|
|
14a14e2 |
Summary: Built-package format for Python
|
|
|
62eec5b |
|
|
|
62eec5b |
License: MIT
|
|
|
4afa238 |
URL: https://github.com/pypa/wheel
|
|
|
4afa238 |
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
|
|
62eec5b |
BuildArch: noarch
|
|
|
3f2c609 |
|
|
|
25a4dc3 |
%if %{without bootstrap}
|
|
|
03fc6b4 |
# several tests compile extensions
|
|
|
03fc6b4 |
# those tests are skipped if gcc is not found
|
|
|
03fc6b4 |
BuildRequires: gcc
|
|
|
03fc6b4 |
%endif
|
|
|
03fc6b4 |
|
|
|
03fc6b4 |
%{?python_enable_dependency_generator}
|
|
|
5ac60a9 |
|
|
Igor Gnatenko |
0a308dc |
%global _description \
|
|
Igor Gnatenko |
0a308dc |
A built-package format for Python.\
|
|
Igor Gnatenko |
0a308dc |
\
|
|
Igor Gnatenko |
0a308dc |
A wheel is a ZIP-format archive with a specially formatted filename and the\
|
|
Igor Gnatenko |
0a308dc |
.whl extension. It is designed to contain all the files for a PEP 376\
|
|
Igor Gnatenko |
0a308dc |
compatible install in a way that is very close to the on-disk format.
|
|
|
62eec5b |
|
|
Igor Gnatenko |
0a308dc |
%description %{_description}
|
|
Igor Gnatenko |
0a308dc |
|
|
|
3f2c609 |
|
|
Igor Gnatenko |
0a308dc |
%package -n python3-%{pypi_name}
|
|
Igor Gnatenko |
0a308dc |
Summary: %{summary}
|
|
|
62eec5b |
BuildRequires: python3-devel
|
|
|
624c912 |
# python3 bootstrap: this is rebuilt before the final build of python3, which
|
|
|
624c912 |
# adds the dependency on python3-rpm-generators, so we require it manually
|
|
|
624c912 |
BuildRequires: python3-rpm-generators
|
|
|
62eec5b |
BuildRequires: python3-setuptools
|
|
|
2e315e2 |
%if %{without bootstrap}
|
|
Robert Kuska |
bbc3044 |
BuildRequires: python3-pytest
|
|
Igor Gnatenko |
98bd0f3 |
%endif
|
|
|
c1dfde2 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
8accaa3 |
Conflicts: python-%{pypi_name} < %{version}-%{release}
|
|
|
c1dfde2 |
|
|
Igor Gnatenko |
0a308dc |
%description -n python3-%{pypi_name} %{_description}
|
|
|
62eec5b |
|
|
Igor Gnatenko |
0a308dc |
Python 3 version.
|
|
|
2e315e2 |
|
|
|
2e315e2 |
|
|
|
2e315e2 |
%if %{without bootstrap}
|
|
|
2e315e2 |
%package wheel
|
|
|
2e315e2 |
Summary: The Python wheel module packaged as a wheel
|
|
|
2e315e2 |
|
|
|
2e315e2 |
%description wheel
|
|
|
2e315e2 |
A Python wheel of wheel to use with virtualenv.
|
|
|
61ba858 |
%endif
|
|
|
61ba858 |
|
|
|
62eec5b |
|
|
|
62eec5b |
%prep
|
|
|
4afa238 |
%autosetup -n %{pypi_name}-%{version} -p1
|
|
|
03fc6b4 |
|
|
|
03fc6b4 |
# Empty files make rpmlint sad
|
|
|
03fc6b4 |
test -s wheel/cli/install.py || echo "# empty" > wheel/cli/install.py
|
|
|
62eec5b |
|
|
|
61ba858 |
|
|
|
62eec5b |
%build
|
|
Igor Gnatenko |
0a308dc |
%py3_build
|
|
|
2e315e2 |
|
|
|
2e315e2 |
%if %{without bootstrap}
|
|
|
2e315e2 |
%py3_build_wheel
|
|
|
61ba858 |
%endif
|
|
|
61ba858 |
|
|
|
62eec5b |
|
|
|
62eec5b |
%install
|
|
|
8accaa3 |
%py3_install
|
|
|
8accaa3 |
mv %{buildroot}%{_bindir}/%{pypi_name}{,-%{python3_version}}
|
|
|
8accaa3 |
ln -s %{pypi_name}-%{python3_version} %{buildroot}%{_bindir}/%{pypi_name}-3
|
|
|
8accaa3 |
ln -s %{pypi_name}-3 %{buildroot}%{_bindir}/%{pypi_name}
|
|
|
8accaa3 |
|
|
|
2e315e2 |
%if %{without bootstrap}
|
|
|
2e315e2 |
mkdir -p %{buildroot}%{python_wheeldir}
|
|
|
2e315e2 |
install -p dist/%{python_wheelname} -t %{buildroot}%{python_wheeldir}
|
|
|
2e315e2 |
|
|
|
2e315e2 |
|
|
|
62eec5b |
%check
|
|
|
62eec5b |
rm setup.cfg
|
|
Igor Gnatenko |
0a308dc |
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build
|
|
Igor Gnatenko |
98bd0f3 |
%endif
|
|
Igor Gnatenko |
0a308dc |
|
|
|
62eec5b |
%files -n python3-%{pypi_name}
|
|
Igor Gnatenko |
0a308dc |
%license LICENSE.txt
|
|
|
03fc6b4 |
%doc README.rst
|
|
|
8accaa3 |
%{_bindir}/%{pypi_name}
|
|
Igor Gnatenko |
0a308dc |
%{_bindir}/%{pypi_name}-3
|
|
Igor Gnatenko |
0a308dc |
%{_bindir}/%{pypi_name}-%{python3_version}
|
|
|
62eec5b |
%{python3_sitelib}/%{pypi_name}*
|
|
|
2e315e2 |
|
|
|
2e315e2 |
%if %{without bootstrap}
|
|
|
2e315e2 |
%files wheel
|
|
|
2e315e2 |
%license LICENSE.txt
|
|
|
2e315e2 |
# we own the dir for simplicity
|
|
|
2e315e2 |
%dir %{python_wheeldir}/
|
|
|
2e315e2 |
%{python_wheeldir}/%{python_wheelname}
|
|
|
61ba858 |
%endif
|
|
|
62eec5b |
|
|
|
62eec5b |
%changelog
|
|
|
c3e5def |
* Mon Sep 09 2019 Miro Hrončok <mhroncok@redhat.com> - 1:0.33.6-2
|
|
|
c3e5def |
- Drop python2-wheel
|
|
|
c3e5def |
|
|
|
1e3c165 |
* Tue Aug 27 2019 Miro Hrončok <mhroncok@redhat.com> - 1:0.33.6-1
|
|
|
1e3c165 |
- Update to 0.33.6 (#1708194)
|
|
|
1e3c165 |
- Don't add the m ABI flag to wheel names on Python 3.8
|
|
|
1e3c165 |
|
|
|
f8c77ac |
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 1:0.33.1-5
|
|
|
f8c77ac |
- Rebuilt for Python 3.8
|
|
|
f8c77ac |
|
|
|
44fe2c1 |
* Wed Aug 14 2019 Miro Hrončok <mhroncok@redhat.com> - 1:0.33.1-4
|
|
|
44fe2c1 |
- Bootstrap for Python 3.8
|
|
|
44fe2c1 |
|
|
|
3925596 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.33.1-3
|
|
|
3925596 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
3925596 |
|
|
|
8accaa3 |
* Tue Jul 16 2019 Miro Hrončok <mhroncok@redhat.com> - 1:0.33.1-2
|
|
|
8accaa3 |
- Make /usr/bin/wheel Python 3
|
|
|
8accaa3 |
|
|
|
efeec04 |
* Mon Feb 25 2019 Charalampos Stratakis <cstratak@redhat.com> - 1:0.33.1-1
|
|
|
efeec04 |
- Update to 0.33.1
|
|
|
efeec04 |
|
|
|
a360422 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.32.0-2
|
|
|
a360422 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
a360422 |
|
|
|
03fc6b4 |
* Sun Sep 30 2018 Miro Hrončok <mhroncok@redhat.com> - 1:0.32.0-1
|
|
|
03fc6b4 |
- Update to 0.32.0
|
|
|
03fc6b4 |
|
|
|
2e315e2 |
* Wed Aug 15 2018 Miro Hrončok <mhroncok@redhat.com> - 1:0.31.1-3
|
|
|
2e315e2 |
- Create python-wheel-wheel package with the wheel of wheel
|
|
|
2e315e2 |
|
|
|
3e16f93 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.31.1-2
|
|
|
3e16f93 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
3e16f93 |
|
|
|
e57bb8f |
* Sat Jul 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1:0.31.1-1
|
|
|
e57bb8f |
- Update to 0.31.1
|
|
|
e57bb8f |
|
|
|
42020c5 |
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1:0.30.0-3
|
|
|
42020c5 |
- Rebuilt for Python 3.7
|
|
|
42020c5 |
|
|
|
82d9f92 |
* Wed Jun 13 2018 Miro Hrončok <mhroncok@redhat.com> - 1:0.30.0-2
|
|
|
82d9f92 |
- Bootstrap for Python 3.7
|
|
|
82d9f92 |
|
|
|
14a14e2 |
* Fri Feb 23 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1:0.30.0-1
|
|
|
14a14e2 |
- Update to 0.30.0
|
|
|
14a14e2 |
|
|
|
b9d3435 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.0a0-9
|
|
|
b9d3435 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b9d3435 |
|
|
|
61ba858 |
* Tue Aug 29 2017 Tomas Orsava <torsava@redhat.com> - 0.30.0a0-8
|
|
|
61ba858 |
- Switch macros to bcond's and make Python 2 optional to facilitate building
|
|
|
61ba858 |
the Python 2 and Python 3 modules
|
|
|
61ba858 |
|
|
|
2889c61 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.0a0-7
|
|
|
2889c61 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
2889c61 |
|
|
|
3548a1c |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.30.0a0-6
|
|
|
3548a1c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
3548a1c |
|
|
|
e881d27 |
* Tue Jan 03 2017 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-5
|
|
|
e881d27 |
- Enable tests
|
|
|
e881d27 |
|
|
|
73e4c27 |
* Fri Dec 09 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-4
|
|
|
73e4c27 |
- Rebuild for Python 3.6 without tests
|
|
|
73e4c27 |
|
|
Igor Gnatenko |
98bd0f3 |
* Tue Dec 06 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.30.0a0-3
|
|
Igor Gnatenko |
98bd0f3 |
- Add bootstrap method
|
|
Igor Gnatenko |
98bd0f3 |
|
|
|
c1dfde2 |
* Mon Sep 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-2
|
|
|
c1dfde2 |
- Use the python_provide macro
|
|
|
c1dfde2 |
|
|
|
5ac60a9 |
* Mon Sep 19 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.30.0a0-1
|
|
|
5ac60a9 |
- Update to 0.30.0a0
|
|
|
5ac60a9 |
- Added patch to remove keyrings.alt dependency
|
|
|
5ac60a9 |
|
|
Igor Gnatenko |
0a308dc |
* Wed Aug 10 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.29.0-1
|
|
Igor Gnatenko |
0a308dc |
- Update to 0.29.0
|
|
Igor Gnatenko |
0a308dc |
- Cleanups and fixes
|
|
Igor Gnatenko |
0a308dc |
|
|
|
aa4ca48 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.26.0-3
|
|
|
aa4ca48 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
aa4ca48 |
|
|
|
67655ba |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-2
|
|
|
67655ba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
67655ba |
|
|
Robert Kuska |
af625c5 |
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 0.26.0-1
|
|
Robert Kuska |
af625c5 |
- Update to 0.26.0
|
|
Robert Kuska |
af625c5 |
- Rebuilt for Python3.5 rebuild
|
|
Robert Kuska |
af625c5 |
|
|
|
119df6d |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24.0-4
|
|
|
119df6d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
119df6d |
|
|
|
42d184f |
* Tue Jan 13 2015 Slavek Kabrda <bkabrda@redhat.com> - 0.24.0-3
|
|
|
42d184f |
- Make spec buildable in EPEL 6, too.
|
|
|
42d184f |
- Remove additional sources added to upstream tarball.
|
|
|
42d184f |
|
|
|
3f2c609 |
* Sat Jan 03 2015 Matej Cepl <mcepl@redhat.com> - 0.24.0-2
|
|
|
3f2c609 |
- Make python3 conditional (switched off for RHEL-7; fixes #1131111).
|
|
|
3f2c609 |
|
|
|
1b1515b |
* Mon Nov 10 2014 Slavek Kabrda <bkabrda@redhat.com> - 0.24.0-1
|
|
|
1b1515b |
- Update to 0.24.0
|
|
|
1b1515b |
- Remove patches merged upstream
|
|
|
1b1515b |
|
|
|
303a711 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22.0-4
|
|
|
303a711 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
303a711 |
|
|
Matej Stuchlik |
ea820c3 |
* Fri Apr 25 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.22.0-3
|
|
Matej Stuchlik |
ea820c3 |
- Another rebuild with python 3.4
|
|
Matej Stuchlik |
ea820c3 |
|
|
Matej Stuchlik |
514c1db |
* Fri Apr 18 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.22.0-2
|
|
Matej Stuchlik |
514c1db |
- Rebuild with python 3.4
|
|
Matej Stuchlik |
514c1db |
|
|
|
62eec5b |
* Thu Nov 28 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.22.0-1
|
|
|
62eec5b |
- Initial package.
|