!8 disable python2

From: @jackie_wu123
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-11-02 11:58:57 +08:00 committed by Gitee
commit 2abbe95495

View File

@ -1,13 +1,12 @@
Name: afflib Name: afflib
Version: 3.7.18 Version: 3.7.18
Release: 3 Release: 4
Summary: Library to support the Advanced Forensic Format Summary: Library to support the Advanced Forensic Format
License: BSD with advertising License: BSD with advertising
URL: https://github.com/sshock/AFFLIBv3 URL: https://github.com/sshock/AFFLIBv3
Source0: %{url}/archive/v%{version}.tar.gz Source0: %{url}/archive/v%{version}.tar.gz
BuildRequires: gcc-c++ libtool curl-devel expat-devel ncurses-devel BuildRequires: gcc-c++ libtool curl-devel expat-devel ncurses-devel
BuildRequires: libtermcap-devel openssl-devel python2-devel zlib-devel BuildRequires: libtermcap-devel openssl-devel zlib-devel
BuildRequires: python2 python2-devel python2-setuptools
BuildRequires: python3 python3-devel python3-setuptools BuildRequires: python3 python3-devel python3-setuptools
Provides: bundled(lzma) = 443 Provides: bundled(lzma) = 443
@ -30,16 +29,6 @@ Requires: openssl-devel pkgconfig
The %{name}-devel package contains libraries for developing The %{name}-devel package contains libraries for developing
applications that use %{name}. applications that use %{name}.
%package -n python2-pyaff
Summary: The python2 binding for the AFFLIB
Provides: python-pyaff(aarch-64) = 3.7.18-2
Provides: python-pyaff = 3.7.18-2
Obsoletes: python-pyaff < 3.7.18-2
%description -n python2-pyaff
Python2 bindings currently support a read-only file-like interface to AFFLIB and
basic metadata accessor functions. These bindings are not currently complete.
%package -n python3-pyaff %package -n python3-pyaff
Summary: The python3 binding for the AFFLIB Summary: The python3 binding for the AFFLIB
Provides: python-pyaff(aarch-64) = 3.7.18-3 Provides: python-pyaff(aarch-64) = 3.7.18-3
@ -64,14 +53,12 @@ sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%make_build %make_build
cd pyaff cd pyaff
%global py_setup_args build_ext --include-dirs %{_builddir}/AFFLIBv3-%{version}/include --library-dirs %{_builddir}/AFFLIBv3-%{version}/lib/.libs %global py_setup_args build_ext --include-dirs %{_builddir}/AFFLIBv3-%{version}/include --library-dirs %{_builddir}/AFFLIBv3-%{version}/lib/.libs
%py2_build
%py3_build %py3_build
%install %install
%make_install %make_install
%delete_la %delete_la
cd pyaff cd pyaff
%py2_install
%py3_install %py3_install
%post %post
@ -86,7 +73,6 @@ cd pyaff
%files -n afftools %files -n afftools
%{_bindir}/aff* %{_bindir}/aff*
%{python2_sitearch}/*
%{_mandir}/man1/aff*.1.* %{_mandir}/man1/aff*.1.*
%files devel %files devel
@ -95,17 +81,15 @@ cd pyaff
%{_libdir}/*.so %{_libdir}/*.so
%{_libdir}/pkgconfig/afflib.pc %{_libdir}/pkgconfig/afflib.pc
%files -n python2-pyaff
%doc pyaff/README COPYING
%{python2_sitearch}/PyAFF*
%{python2_sitearch}/pyaff*
%files -n python3-pyaff %files -n python3-pyaff
%doc pyaff/README COPYING %doc pyaff/README COPYING
%{python3_sitearch}/PyAFF* %{python3_sitearch}/PyAFF*
%{python3_sitearch}/pyaff* %{python3_sitearch}/pyaff*
%changelog %changelog
* Wed Oct 21 2020 wutao <wutao61@huawei.com> - 3.7.18-4
- delete python2 modules
* Mon Jun 1 2020 wangyue <wangyue92@huawei.com> - 3.7.18-3 * Mon Jun 1 2020 wangyue <wangyue92@huawei.com> - 3.7.18-3
- Upgrade package - Upgrade package