move BuildRequires under subpackages
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
This commit is contained in:
parent
c058aa5106
commit
74d1f684f1
@ -6,7 +6,6 @@
|
||||
%global with_python3 1
|
||||
%endif
|
||||
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 1.0.0
|
||||
Release: 7%{?dist}
|
||||
@ -17,14 +16,6 @@ URL: https://github.com/nir0s/distro
|
||||
Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python2-devel
|
||||
|
||||
%if 0%{with_python3}
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-devel
|
||||
%endif
|
||||
|
||||
%global _description \
|
||||
The distro (for: Linux Distribution) package provides information about the\
|
||||
Linux distribution it runs on, such as a reliable machine-readable ID, or\
|
||||
@ -44,7 +35,12 @@ for more information.
|
||||
%package -n python2-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python2-%{pypi_name}}
|
||||
|
||||
BuildRequires: python2-devel
|
||||
%if 0%{?rhel} && 0%{?rhel} <= 7
|
||||
BuildRequires: python-setuptools
|
||||
%else
|
||||
BuildRequires: python2-setuptools
|
||||
%endif
|
||||
Requires: /usr/bin/lsb_release
|
||||
|
||||
%description -n python2-%{pypi_name} %{_description}
|
||||
@ -55,7 +51,8 @@ Python 2 version.
|
||||
%package -n python3-%{pypi_name}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-%{pypi_name}}
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
Requires: /usr/bin/lsb_release
|
||||
|
||||
%description -n python3-%{pypi_name} %{_description}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user