diff --git a/python-wheel.spec b/python-wheel.spec index 151ed45..2e0f794 100644 --- a/python-wheel.spec +++ b/python-wheel.spec @@ -1,8 +1,10 @@ +%bcond_with bootstrap + %global pypi_name wheel Name: python-%{pypi_name} Version: 0.30.0a0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A built-package format for Python License: MIT @@ -32,11 +34,12 @@ compatible install in a way that is very close to the on-disk format. Summary: %{summary} BuildRequires: python2-devel BuildRequires: python2-setuptools +%if ! %{with bootstrap} BuildRequires: python2-pytest BuildRequires: pyxdg BuildRequires: python-keyring BuildRequires: python-jsonschema - +%endif %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} %{_description} @@ -47,11 +50,12 @@ Python 2 version. Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-setuptools +%if ! %{with bootstrap} BuildRequires: python3-pytest BuildRequires: python3-pyxdg BuildRequires: python3-keyring BuildRequires: python3-jsonschema - +%endif %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{_description} @@ -78,10 +82,12 @@ ln -s %{pypi_name}-%{python3_version} %{buildroot}%{_bindir}/%{pypi_name}-3 ln -s %{pypi_name}-2 %{buildroot}%{_bindir}/%{pypi_name} +%if ! %{with bootstrap} %check rm setup.cfg PYTHONPATH=%{buildroot}%{python2_sitelib} py.test-2 -v --ignore build PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build +%endif %files -n python2-%{pypi_name} %license LICENSE.txt @@ -101,6 +107,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --ignore build %exclude %{python3_sitelib}/%{pypi_name}/test %changelog +* Tue Dec 06 2016 Igor Gnatenko - 0.30.0a0-3 +- Add bootstrap method + * Mon Sep 19 2016 Charalampos Stratakis - 0.30.0a0-2 - Use the python_provide macro