!35 remove python2

From: @liquor1
Reviewed-by: @overweight
Signed-off-by: @overweight
This commit is contained in:
openeuler-ci-bot 2020-10-30 09:19:14 +08:00 committed by Gitee
commit 62a0dcee4d

View File

@ -1,6 +1,6 @@
Name: rpm Name: rpm
Version: 4.15.1 Version: 4.15.1
Release: 17 Release: 18
Summary: RPM Package Manager Summary: RPM Package Manager
License: GPLv2+ License: GPLv2+
URL: http://www.rpm.org/ URL: http://www.rpm.org/
@ -60,19 +60,6 @@ Requires: gdb-headless ncurses perl make git chrpath
This package provides scripts and executable programs that used to This package provides scripts and executable programs that used to
build rpm packages. build rpm packages.
%package -n python2-%{name}
Summary: Python2 bindings for RPM user
BuildRequires: python2-devel
%{?python_provide:%python_provide python2-%{name}}
Requires: %{name} = %{version}-%{release}
Provides: %{name}-python = %{version}-%{release}
Obsoletes: %{name}-python < %{version}-%{release}
%description -n python2-%{name}
This package contains a module that allow applications
written with Python2 to use the interface
supplied by RPM.
%package -n python3-%{name} %package -n python3-%{name}
Summary: Python3 bindings for RPM user Summary: Python3 bindings for RPM user
BuildRequires: python3-devel BuildRequires: python3-devel
@ -141,7 +128,6 @@ done;
%make_build %make_build
pushd python pushd python
%{__python2} setup.py build
%{__python3} setup.py build %{__python3} setup.py build
popd popd
@ -149,7 +135,6 @@ popd
%make_install %make_install
pushd python pushd python
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT %{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
popd popd
@ -265,11 +250,6 @@ make check || (cat tests/rpmtests.log; exit 0)
%{_rpmconfigdir}/mkinstalldirs %{_rpmconfigdir}/mkinstalldirs
%{_rpmconfigdir}/fileattrs/* %{_rpmconfigdir}/fileattrs/*
%files -n python2-%{name}
%defattr(-,root,root)
%{python2_sitearch}/%{name}/
%{python2_sitearch}/%{name}-%{version}*.egg-info
%files -n python3-%{name} %files -n python3-%{name}
%defattr(-,root,root) %defattr(-,root,root)
%{python3_sitearch}/%{name}/ %{python3_sitearch}/%{name}/
@ -290,6 +270,12 @@ make check || (cat tests/rpmtests.log; exit 0)
%{_mandir}/man1/gendiff.1* %{_mandir}/man1/gendiff.1*
%changelog %changelog
* Thu Oct 29 2020 Liquor <lirui130@huawei.com> - 4.15.1-18
- Type:requirement
- ID:NA
- SUG:NA
- DESC:remove python2
* Tue Jul 14 2020 Roberto Sassu <roberto.sassu@huawei.com> - 4.15.1-17 * Tue Jul 14 2020 Roberto Sassu <roberto.sassu@huawei.com> - 4.15.1-17
- Type:enhancement - Type:enhancement
- ID:NA - ID:NA