!24 remove python2

From: @jlwwlsqc
Reviewed-by: @hanxinke
Signed-off-by: @hanxinke
This commit is contained in:
openeuler-ci-bot 2020-11-04 16:53:39 +08:00 committed by Gitee
commit 19e515fb09

View File

@ -1,13 +1,13 @@
Name: brotli Name: brotli
Version: 1.0.7 Version: 1.0.7
Release: 3 Release: 4
Summary: Lossless compression algorithm Summary: Lossless compression algorithm
License: MIT License: MIT
URL: https://github.com/google/brotli URL: https://github.com/google/brotli
Source0: https://github.com/google/brotli/archive/v%{version}.tar.gz Source0: https://github.com/google/brotli/archive/v%{version}.tar.gz
BuildRequires: python2-devel python3-devel gcc-c++ gcc cmake BuildRequires: python3-devel gcc-c++ gcc cmake
Patch6000: Verbose-CLI-start-pulling-Shared-Brotli.patch Patch6000: Verbose-CLI-start-pulling-Shared-Brotli.patch
Patch6001: Ensure-decompression-consumes-all-input.patch Patch6001: Ensure-decompression-consumes-all-input.patch
@ -27,14 +27,6 @@ coding and 2nd order context modeling, with a compression ratio comparable
to the best currently available general-purpose compression methods. to the best currently available general-purpose compression methods.
It is similar in speed with deflate but offers more dense compression. It is similar in speed with deflate but offers more dense compression.
%package -n python2-%{name}
Summary: Lossless compression algorithm (python 2)
Requires: python2
%{?python_provide:%python_provide python2-%{name}}
%description -n python2-%{name}
This package installs a Python 2 module.
%package -n python3-%{name} %package -n python3-%{name}
Requires: python3 Requires: python3
Summary: Lossless compression algorithm (python 3) Summary: Lossless compression algorithm (python 3)
@ -67,7 +59,6 @@ pushd build
%make_build %make_build
popd popd
%py2_build
%py3_build %py3_build
%install %install
@ -76,7 +67,6 @@ pushd build
%__rm "%{buildroot}%{_libdir}/"*.a %__rm "%{buildroot}%{_libdir}/"*.a
popd popd
%py2_install
%py3_install %py3_install
%{__install} -dm755 "%{buildroot}%{_mandir}/man3" %{__install} -dm755 "%{buildroot}%{_mandir}/man3"
@ -97,10 +87,6 @@ popd
%{_bindir}/brotli %{_bindir}/brotli
%{_libdir}/*.so.* %{_libdir}/*.so.*
%files -n python2-%{name}
%license LICENSE
%{python2_sitearch}/*
%files -n python3-%{name} %files -n python3-%{name}
%license LICENSE %license LICENSE
%{python3_sitearch}/* %{python3_sitearch}/*
@ -114,6 +100,12 @@ popd
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Wed Nov 4 2020 wangjie<wangjie294@huawei.com> -1.0.7-4
- Type:NA
- ID:NA
- SUG:NA
- DESC:remove python2
* Mon Oct 19 2020 wangjie<wangjie294@huawei.com> -1.0.7-3 * Mon Oct 19 2020 wangjie<wangjie294@huawei.com> -1.0.7-3
- Type:CVE - Type:CVE
- CVE:CVE-2020-8927 - CVE:CVE-2020-8927