switch to new method of generating dependencies
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
1f7d95a4f2
commit
086034111e
@ -1,5 +1,7 @@
|
|||||||
%global srcname hypothesis
|
%global srcname hypothesis
|
||||||
|
|
||||||
|
%?python_enable_dependency_generator
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 3.44.17
|
Version: 3.44.17
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
@ -27,18 +29,15 @@ flow.
|
|||||||
|
|
||||||
%package -n python2-%{srcname}
|
%package -n python2-%{srcname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
BuildRequires: python2-devel
|
|
||||||
BuildRequires: python2-attrs
|
|
||||||
BuildRequires: python2-coverage
|
|
||||||
BuildRequires: python2-enum34
|
|
||||||
%{?python_provide:%python_provide python2-%{srcname}}
|
%{?python_provide:%python_provide python2-%{srcname}}
|
||||||
Requires: python2-attrs
|
BuildRequires: python2-devel
|
||||||
Requires: python2-coverage
|
BuildRequires: python2-setuptools
|
||||||
Requires: python2-enum34
|
BuildRequires: python2dist(attrs)
|
||||||
%if ! (0%{?rhel} && 0%{?rhel} <= 7)
|
BuildRequires: python2dist(coverage)
|
||||||
Suggests: python2-numpy
|
BuildRequires: python2dist(enum34)
|
||||||
Suggests: python2-pytz
|
Suggests: python%{python2_version}dist(pytz)
|
||||||
%endif
|
Suggests: python%{python2_version}dist(numpy) >= 1.9.0
|
||||||
|
Suggests: python%{python2_version}dist(pytest) >= 2.8.0
|
||||||
|
|
||||||
%description -n python2-%{srcname} %{_description}
|
%description -n python2-%{srcname} %{_description}
|
||||||
|
|
||||||
@ -46,18 +45,15 @@ Python 2 version.
|
|||||||
|
|
||||||
%package -n python3-%{srcname}
|
%package -n python3-%{srcname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
|
%{?python_provide:%python_provide python3-%{srcname}}
|
||||||
|
Obsoletes: platform-python-%{srcname} < %{version}-%{release}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
BuildRequires: python3-attrs
|
BuildRequires: python3dist(attrs)
|
||||||
BuildRequires: python3-coverage
|
BuildRequires: python3dist(coverage)
|
||||||
%{?python_provide:%python_provide python3-%{srcname}}
|
Suggests: python%{python3_version}dist(pytz)
|
||||||
Requires: python3-attrs
|
Suggests: python%{python3_version}dist(numpy) >= 1.9.0
|
||||||
Requires: python3-coverage
|
Suggests: python%{python3_version}dist(pytest) >= 2.8.0
|
||||||
%if ! (0%{?rhel} && 0%{?rhel} <= 7)
|
|
||||||
Suggests: python3-numpy
|
|
||||||
Suggests: python3-pytz
|
|
||||||
%endif
|
|
||||||
Obsoletes: platform-python-%{srcname} < %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python3-%{srcname} %{_description}
|
%description -n python3-%{srcname} %{_description}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user