Drop useless EL conditions
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
0b49e2d051
commit
265f28e677
@ -3,12 +3,6 @@
|
|||||||
|
|
||||||
%global _docdir_fmt %{name}
|
%global _docdir_fmt %{name}
|
||||||
|
|
||||||
%if 0%{?rhel} >= 8
|
|
||||||
%bcond_with pytests
|
|
||||||
%else
|
|
||||||
%bcond_without pytests
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 3.0.0
|
Version: 3.0.0
|
||||||
Release: 11%{?dist}
|
Release: 11%{?dist}
|
||||||
@ -30,9 +24,7 @@ Conflicts: python3-uri-templates
|
|||||||
%{?python_provide:%python_provide python3-%{altname}}
|
%{?python_provide:%python_provide python3-%{altname}}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
%if %{with pytests}
|
|
||||||
BuildRequires: python3-pytest
|
BuildRequires: python3-pytest
|
||||||
%endif
|
|
||||||
|
|
||||||
%description -n python3-%{modname}
|
%description -n python3-%{modname}
|
||||||
%{summary}.
|
%{summary}.
|
||||||
@ -48,11 +40,8 @@ Python 3 version.
|
|||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
%if %{with pytests}
|
|
||||||
%check
|
%check
|
||||||
#py.test-%{python3_version} -v
|
|
||||||
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python3-%{modname}
|
%files -n python3-%{modname}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user