Removed Python2 mentions from specs to support Python2 removal

This commit is contained in:
Nick Samson 2021-04-06 23:04:20 +00:00
Родитель 39dd487b1b
Коммит 5afd0761b3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: A6952119BA68B41D
2 изменённых файлов: 2 добавлений и 13 удалений

Просмотреть файл

@ -11,12 +11,12 @@ Distribution: Mariner
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3
BuildRequires: python-xml
BuildRequires: python3-xml
BuildRequires: libxslt
BuildRequires: docbook-style-xsl
BuildRequires: docbook-dtd-xml
Requires: python3
Requires: python-xml
Requires: python3-xml
Requires: libxslt
Requires: docbook-style-xsl
Requires: docbook-dtd-xml

Просмотреть файл

@ -22,7 +22,6 @@ BuildRequires: libdb-devel
BuildRequires: lua-devel
BuildRequires: nss-devel
BuildRequires: popt-devel
BuildRequires: python2-devel
BuildRequires: python3-devel
BuildRequires: xz-devel
BuildRequires: zstd-devel
@ -90,14 +89,6 @@ Requires: %{name} = %{version}-%{release}
%description lang
These are the additional language files of rpm.
%package -n python-rpm
Summary: Python 2 bindings for rpm.
Group: Development/Libraries
Requires: python2
Provides: %{name}-python = %{version}-%{release}
%description -n python-rpm
%package -n python3-rpm
Summary: Python 3 bindings for rpm.
Group: Development/Libraries
@ -135,7 +126,6 @@ sed -i 's/extra_link_args/library_dirs/g' python/setup.py.in
make %{?_smp_mflags}
pushd python
python2 setup.py build
python3 setup.py build
popd
@ -155,7 +145,6 @@ install -vm755 %{SOURCE1} %{buildroot}%{_libdir}/rpm/
install -vm755 %{SOURCE2} %{buildroot}%{_libdir}/rpm/
pushd python
python2 setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
python3 setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
popd