!10 remove python2 subpackage

From: @caodongxia
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-10-30 16:22:55 +08:00 committed by Gitee
commit 6becbc9879

View File

@ -1,6 +1,6 @@
Name: assimp
Version: 3.3.1
Release: 19
Release: 20
Summary: Library to load and process various 3D model formats into applications.
License: BSD and MIT
URL: http://assimp.sourceforge.net
@ -15,7 +15,7 @@ Patch0007: 0001-Enable-doxygen-been-properly-used-from-cmake-build-a.patch
Patch0008: 0001-Apply-mechanism-to-decide-use-for-IrrXML-external-or.patch
BuildRequires: gcc-c++ boost-devel cmake dos2unix irrlicht-devel irrXML-devel
BuildRequires: doxygen poly2tri-devel gtest-devel pkgconfig(zzip-zlib-config)
BuildRequires: pkgconfig(zlib) pkgconfig(minizip) pkgconfig(python2) python2-rpm-macros
BuildRequires: pkgconfig(zlib) pkgconfig(minizip)
BuildRequires: pkgconfig(ILUT) pkgconfig(python3) python3-rpm-macros
Provides: bundled(polyclipping) = 4.8.8 bundled(openddl-parser)
@ -33,16 +33,6 @@ Requires: assimp = %{version}-%{release}
This package provides the header files and libraries
for assimp. Developers use it to develop programs.
%package -n python2-assimp
Summary: Python2 bindings for assimp
BuildArch: noarch
Requires: assimp = %{version}-%{release} python2
Provides: assimp-python = %{version}-%{release}
Obsoletes: assimp-python < 3.1.1
%description -n python2-assimp
This package provides the PyAssimp python bindings
%package -n python3-assimp
Summary: Python3 bindings for assimp
BuildArch: noarch
@ -82,8 +72,6 @@ iconv -f iso8859-1 -t utf-8 CREDITS > CREDITS.conv && mv -f CREDITS.conv CREDITS
%install
%make_install -C build
install -d %{buildroot}%{python2_sitelib}/pyassimp/
install -m 0644 port/PyAssimp/pyassimp/*.py %{buildroot}%{python2_sitelib}/pyassimp/
install -d %{buildroot}%{python3_sitelib}/pyassimp/
install -m 0644 port/PyAssimp/pyassimp/*.py %{buildroot}%{python3_sitelib}/pyassimp/
@ -107,15 +95,14 @@ install -m 0644 port/PyAssimp/pyassimp/*.py %{buildroot}%{python3_sitelib}/pyass
%files help
%{_docdir}/*
%files -n python2-assimp
%doc port/PyAssimp/README.md
%{python2_sitelib}/pyassimp
%files -n python3-assimp
%doc port/PyAssimp/README.md
%{python3_sitelib}/pyassimp
%changelog
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 3.3.1-20
- Remove Subpackage python2-assimp
* Wed Sep 9 2020 Ge Wang <wangge20@huawei.com> - 3.3.1-19
- Modify Source0 Url