3 %bcond_without doc # Sphinx documentation
4 %bcond_without tests # unit tests
5 %bcond_without python2 # CPython 2.x module
6 %bcond_without python3 # CPython 3.x module
9 Summary: A built-package format for Python
10 Summary(pl.UTF-8): Format zbudowanych pakietów dla Pythona
11 Name: python-%{module}
15 Group: Libraries/Python
16 #Source0Download: https://pypi.python.org/simple/wheel/
17 Source0: https://pypi.python.org/packages/source/w/wheel/%{module}-%{version}.tar.gz
18 # Source0-md5: f490f1399e5903706cb1d4fbed9ecb28
19 URL: https://bitbucket.org/pypa/wheel
21 BuildRequires: python-devel >= 1:2.7
22 BuildRequires: python-setuptools >= 1:40.9.0
24 BuildRequires: python-keyring
25 BuildRequires: python-pytest >= 3.0.0
26 BuildRequires: python-pytest-cov
30 BuildRequires: python3-devel >= 1:3.5
31 BuildRequires: python3-setuptools >= 1:40.9.0
33 BuildRequires: python3-keyring
34 BuildRequires: python3-pytest >= 3.0.0
35 BuildRequires: python3-pytest-cov
39 BuildRequires: sphinx-pdg
41 BuildRequires: rpm-pythonprov
42 BuildRequires: rpmbuild(macros) >= 1.714
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 A built-package format for Python.
49 A wheel is a ZIP-format archive with a specially formatted filename
50 and the .whl extension. It is designed to contain all the files for a
51 PEP 376 compatible install in a way that is very close to the on-disk
54 %description -l pl.UTF-8
55 Format zbudowanych pakietów dla Pythona.
57 "wheel" to archiwum w formacie ZIP ze specjalnie sformatowaną nazwą
58 pliku oraz rozszerzeniem ".whl". Jest zaprojektowane, aby zawierało
59 wszystkie pliki instalacji zgodnej z PEP 376 w sposób bardzo zbliżony
62 %package -n python3-%{module}
63 Summary: A built-package format for Python
64 Summary(pl.UTF-8): Format zbudowanych pakietów dla Pythona
65 Group: Libraries/Python
66 # /usr/bin/wheel migration
67 Conflicts: python-wheel < 0.37.1
69 %description -n python3-%{module}
70 A built-package format for Python.
72 A wheel is a ZIP-format archive with a specially formatted filename
73 and the .whl extension. It is designed to contain all the files for a
74 PEP 376 compatible install in a way that is very close to the on-disk
77 %description -n python3-%{module} -l pl.UTF-8
78 Format zbudowanych pakietów dla Pythona.
80 "wheel" to archiwum w formacie ZIP ze specjalnie sformatowaną nazwą
81 pliku oraz rozszerzeniem ".whl". Jest zaprojektowane, aby zawierało
82 wszystkie pliki instalacji zgodnej z PEP 376 w sposób bardzo zbliżony
86 Summary: API documentation for Python wheel module
87 Summary(pl.UTF-8): Dokumentacja API modułu Pythona wheel
91 API documentation for Python wheel module.
93 %description apidocs -l pl.UTF-8
94 Dokumentacja API modułu Pythona wheel.
97 %setup -q -n %{module}-%{version}
104 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
105 PYTEST_PLUGINS="pytest_cov.plugin" \
106 PYTHONPATH=$(pwd)/src \
107 %{__python} -m pytest tests -k 'not test_macosx_libfile'
115 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
116 PYTEST_PLUGINS="pytest_cov.plugin" \
117 PYTHONPATH=$(pwd)/src \
118 %{__python3} -m pytest tests -k 'not test_macosx_libfile'
123 %{__make} -C docs html
127 rm -rf $RPM_BUILD_ROOT
132 %{__mv} $RPM_BUILD_ROOT%{_bindir}/wheel{,-2}
140 %{__mv} $RPM_BUILD_ROOT%{_bindir}/wheel{,-3}
141 ln -sf wheel-3 $RPM_BUILD_ROOT%{_bindir}/wheel
145 rm -rf $RPM_BUILD_ROOT
149 %defattr(644,root,root,755)
150 %doc LICENSE.txt README.rst
151 %attr(755,root,root) %{_bindir}/wheel-2
152 %{py_sitescriptdir}/wheel
153 %{py_sitescriptdir}/wheel-%{version}-py*.egg-info
157 %files -n python3-%{module}
158 %defattr(644,root,root,755)
159 %doc LICENSE.txt README.rst
160 %attr(755,root,root) %{_bindir}/wheel
161 %attr(755,root,root) %{_bindir}/wheel-3
162 %{py3_sitescriptdir}/wheel
163 %{py3_sitescriptdir}/wheel-%{version}-py*.egg-info
168 %defattr(644,root,root,755)
169 %doc docs/_build/html/{_static,reference,*.html,*.js}