Update Python 2 dependency declarations to new packaging standards

This commit is contained in:
Iryna Shcherbina 2018-02-21 02:47:25 +01:00
parent 1dfc702d37
commit e8bc8cb9b5

View File

@ -13,7 +13,7 @@
Name: pyelftools
Version: 0.22
Release: 0.15.git%{commitdate}.%{shortcommit}%{?dist}
Release: 0.16.git%{commitdate}.%{shortcommit}%{?dist}
Summary: Pure-Python library for parsing and analyzing ELF files
License: Public Domain
@ -27,8 +27,8 @@ Source0: %{url}/archive/%{commit}/%{name}-%{version}.git%{commitdate}.%{shortcom
Patch0: pyelftools-0.22-construct.patch
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-construct
BuildRequires: python2-setuptools
BuildRequires: python2-construct
%if 0%{?fedora} || 0%{?rhel} >= 8
BuildRequires: python3-devel
@ -45,7 +45,7 @@ and DWARF debugging information.
%package -n python2-%{name}
Summary: %{summary}
Requires: python-construct
Requires: python2-construct
%{?python_provide:%python_provide python2-%{name}}
# Remove before F30
Provides: %{name} = %{version}-%{release}
@ -138,6 +138,10 @@ mv %{buildroot}/usr/bin/readelf.py %{buildroot}/usr/bin/py3readelf
%changelog
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.22-0.16.git20130619.a1d9681
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-0.15.git20130619.a1d9681
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild