!35 remove python2
From: @liquor1 Reviewed-by: @overweight Signed-off-by: @overweight
This commit is contained in:
commit
62a0dcee4d
28
rpm.spec
28
rpm.spec
@ -1,6 +1,6 @@
|
||||
Name: rpm
|
||||
Version: 4.15.1
|
||||
Release: 17
|
||||
Release: 18
|
||||
Summary: RPM Package Manager
|
||||
License: GPLv2+
|
||||
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
|
||||
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}
|
||||
Summary: Python3 bindings for RPM user
|
||||
BuildRequires: python3-devel
|
||||
@ -141,7 +128,6 @@ done;
|
||||
%make_build
|
||||
|
||||
pushd python
|
||||
%{__python2} setup.py build
|
||||
%{__python3} setup.py build
|
||||
popd
|
||||
|
||||
@ -149,7 +135,6 @@ popd
|
||||
%make_install
|
||||
|
||||
pushd python
|
||||
%{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||
popd
|
||||
|
||||
@ -265,11 +250,6 @@ make check || (cat tests/rpmtests.log; exit 0)
|
||||
%{_rpmconfigdir}/mkinstalldirs
|
||||
%{_rpmconfigdir}/fileattrs/*
|
||||
|
||||
%files -n python2-%{name}
|
||||
%defattr(-,root,root)
|
||||
%{python2_sitearch}/%{name}/
|
||||
%{python2_sitearch}/%{name}-%{version}*.egg-info
|
||||
|
||||
%files -n python3-%{name}
|
||||
%defattr(-,root,root)
|
||||
%{python3_sitearch}/%{name}/
|
||||
@ -290,6 +270,12 @@ make check || (cat tests/rpmtests.log; exit 0)
|
||||
%{_mandir}/man1/gendiff.1*
|
||||
|
||||
%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
|
||||
- Type:enhancement
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user