Move %python_provide after BuildArch
Also add %python_provide macro for python3 subpackage.
This commit is contained in:
parent
60745ef379
commit
e1eb14b2d8
@ -36,17 +36,18 @@ BuildRequires: python3-setuptools
|
|||||||
BuildRequires: python3-construct
|
BuildRequires: python3-construct
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Pure-Python library for parsing and analyzing ELF files
|
Pure-Python library for parsing and analyzing ELF files
|
||||||
and DWARF debugging information.
|
and DWARF debugging information.
|
||||||
|
|
||||||
|
|
||||||
%package -n python2-%{name}
|
%package -n python2-%{name}
|
||||||
%{?python_provide:%python_provide python2-%{name}}
|
Summary: %{summary}
|
||||||
Summary: Pure-Python library for parsing and analyzing ELF files
|
|
||||||
|
|
||||||
BuildArch: noarch
|
|
||||||
Requires: python-construct
|
Requires: python-construct
|
||||||
|
%{?python_provide:%python_provide python2-%{name}}
|
||||||
|
# Remove before F30
|
||||||
Provides: %{name} = %{version}-%{release}
|
Provides: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description -n python2-%{name}
|
%description -n python2-%{name}
|
||||||
@ -56,10 +57,9 @@ and DWARF debugging information.
|
|||||||
|
|
||||||
%if 0%{?fedora} || 0%{?rhel} >= 8
|
%if 0%{?fedora} || 0%{?rhel} >= 8
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Summary: Pure-Python library for parsing and analyzing ELF files
|
Summary: %{summary}
|
||||||
|
|
||||||
BuildArch: noarch
|
|
||||||
Requires: python3-construct
|
Requires: python3-construct
|
||||||
|
%{?python_provide:%python_provide python3-%{name}}
|
||||||
|
|
||||||
%description -n python3-%{name}
|
%description -n python3-%{name}
|
||||||
Pure-Python library for parsing and analyzing ELF files
|
Pure-Python library for parsing and analyzing ELF files
|
||||||
|
Loading…
Reference in New Issue
Block a user