spec: replace hardcoded python3
Signed-off-by: Frédéric Pierret (fepitre) <frederic.pierret@qubes-os.org>
This commit is contained in:
parent
65c84c4ca3
commit
e44857e313
@ -18,7 +18,7 @@ BuildArch: noarch
|
|||||||
%if %{with doc}
|
%if %{with doc}
|
||||||
# Manpage
|
# Manpage
|
||||||
BuildRequires: %{_bindir}/sphinx-build
|
BuildRequires: %{_bindir}/sphinx-build
|
||||||
BuildRequires: python3-sphinx_rtd_theme
|
BuildRequires: python%{python3_pkgversion}-sphinx_rtd_theme
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global _description \
|
%global _description \
|
||||||
@ -30,12 +30,12 @@ flow.
|
|||||||
|
|
||||||
%description %{_description}
|
%description %{_description}
|
||||||
|
|
||||||
%package -n python3-%{srcname}
|
%package -n python%{python3_pkgversion}-%{srcname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
%{?python_provide:%python_provide python3-%{srcname}}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
||||||
Obsoletes: platform-python-%{srcname} < %{version}-%{release}
|
Obsoletes: platform-python-%{srcname} < %{version}-%{release}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||||
BuildRequires: python3dist(attrs) >= 19.2.0
|
BuildRequires: python3dist(attrs) >= 19.2.0
|
||||||
BuildRequires: python3dist(coverage)
|
BuildRequires: python3dist(coverage)
|
||||||
BuildRequires: python3dist(sortedcontainers)
|
BuildRequires: python3dist(sortedcontainers)
|
||||||
@ -56,7 +56,7 @@ Suggests: python%{python3_version}dist(pytz) >= 2014.1
|
|||||||
Suggests: python%{python3_version}dist(numpy) >= 1.9.0
|
Suggests: python%{python3_version}dist(numpy) >= 1.9.0
|
||||||
Suggests: python%{python3_version}dist(pytest) >= 3.0
|
Suggests: python%{python3_version}dist(pytest) >= 3.0
|
||||||
|
|
||||||
%description -n python3-%{srcname} %{_description}
|
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
|
||||||
|
|
||||||
Python 3 version.
|
Python 3 version.
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man
|
|||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v -n auto -k "not test_healthcheck_traceback_is_hidden"
|
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-3 -v -n auto -k "not test_healthcheck_traceback_is_hidden"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files -n python3-%{srcname}
|
%files -n python%{python3_pkgversion}-%{srcname}
|
||||||
%license ../LICENSE.txt
|
%license ../LICENSE.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python3_sitelib}/hypothesis-*.egg-info
|
%{python3_sitelib}/hypothesis-*.egg-info
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user