Move %python_provide after BuildArch

Also add %python_provide macro for python3 subpackage.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-08-19 17:31:42 -04:00
parent 60745ef379
commit e1eb14b2d8

View File

@ -36,17 +36,18 @@ BuildRequires: python3-setuptools
BuildRequires: python3-construct
%endif
BuildArch: noarch
%description
Pure-Python library for parsing and analyzing ELF files
and DWARF debugging information.
%package -n python2-%{name}
%{?python_provide:%python_provide python2-%{name}}
Summary: Pure-Python library for parsing and analyzing ELF files
BuildArch: noarch
Summary: %{summary}
Requires: python-construct
%{?python_provide:%python_provide python2-%{name}}
# Remove before F30
Provides: %{name} = %{version}-%{release}
%description -n python2-%{name}
@ -56,10 +57,9 @@ and DWARF debugging information.
%if 0%{?fedora} || 0%{?rhel} >= 8
%package -n python3-%{name}
Summary: Pure-Python library for parsing and analyzing ELF files
BuildArch: noarch
Summary: %{summary}
Requires: python3-construct
%{?python_provide:%python_provide python3-%{name}}
%description -n python3-%{name}
Pure-Python library for parsing and analyzing ELF files