remove python2
This commit is contained in:
parent
2b1b28d320
commit
4de5426390
28
rpm.spec
28
rpm.spec
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user