assimp/assimp.spec

124 lines
3.4 KiB
RPMSpec
Raw Normal View History

2020-02-14 15:50:00 +08:00
Name: assimp
2023-10-23 17:48:32 +08:00
Version: 5.3.1
2024-07-22 10:13:35 +08:00
Release: 3
2020-02-14 15:50:00 +08:00
Summary: Library to load and process various 3D model formats into applications.
License: BSD and MIT and LGPL-2.1 and LGPL-2.0 and GPL-2.0 and LGPL-3.0 and GPL-3.0
URL: http://www.assimp.org/
2023-10-23 17:48:32 +08:00
#wget https://github.com/assimp/assimp/archive/v%{version}.tar.gz
#tar xf v%{version}.tar.gz
#cd assimp-%{version}
#rm -rf test/models-nonbsd
#cd ..
#tar czf assimp-%{version}-free.tar.xz assimp-%{version}
Source0: assimp-%{version}-free.tar.xz
2024-07-22 10:13:35 +08:00
Patch01: CVE-2024-40724-Fix-out-of-bound-access-5651.patch
2020-02-14 15:50:00 +08:00
BuildRequires: gcc-c++ boost-devel cmake dos2unix irrlicht-devel irrXML-devel
2023-03-01 23:22:45 +08:00
BuildRequires: doxygen poly2tri-devel gtest-devel pkgconfig(zziplib)
2022-06-15 11:00:05 +08:00
BuildRequires: pkgconfig(zlib) pkgconfig(minizip) gmock-devel make
2020-12-25 16:07:35 +08:00
BuildRequires: pkgconfig(python3) python3-rpm-macros
2020-02-14 15:50:00 +08:00
Provides: bundled(polyclipping) = 4.8.8 bundled(openddl-parser)
%description
Assimp is a library to load and process geometric scenes from various data formats.
Assimp aims to provide a full asset conversion pipeline for use in game
engines and real-time rendering systems of any kind, but is not limited
to this purpose.
%package devel
Summary: Headers and libraries for assimp
Requires: assimp = %{version}-%{release}
%description devel
This package provides the header files and libraries
for assimp. Developers use it to develop programs.
%package -n python3-assimp
Summary: Python3 bindings for assimp
BuildArch: noarch
Requires: assimp = %{version}-%{release} python3
Provides: assimp-python3 = %{version}-%{release}
Obsoletes: assimp-python3 < 3.1.1
%description -n python3-assimp
This package provides the PyAssimp3 python bindings
%package help
Summary: Assimp help doc
BuildArch: noarch
Provides: assimp-doc = %{version}-%{release}
Obsoletes: assimp-doc < %{version}-%{release}
%description help
Assimp help doc.
%prep
%autosetup -n assimp-%{version} -p1
%build
2024-03-28 09:43:57 +08:00
%cmake -DASSIMP_BUILD_ASSIMP_TOOLS=TRUE \
-DASSIMP_BUILD_ZLIB=OFF
2023-10-23 17:48:32 +08:00
2022-06-15 11:00:05 +08:00
%make_build
2020-02-14 15:50:00 +08:00
%install
2022-06-15 11:00:05 +08:00
%make_install
2020-02-14 15:50:00 +08:00
install -d %{buildroot}%{python3_sitelib}/pyassimp/
install -m 0644 port/PyAssimp/pyassimp/*.py %{buildroot}%{python3_sitelib}/pyassimp/
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
%files
2022-06-15 11:00:05 +08:00
%doc CREDITS LICENSE
2020-02-14 15:50:00 +08:00
%{_libdir}/*.so.*
2024-03-28 09:43:57 +08:00
%{_bindir}/assimp
2020-02-14 15:50:00 +08:00
%files devel
%{_includedir}/assimp
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/*
%files help
%{_docdir}/*
%files -n python3-assimp
%doc port/PyAssimp/README.md
%{python3_sitelib}/pyassimp
%changelog
2024-07-22 10:13:35 +08:00
* Mon Jul 22 2024 yinyongkang <yinyongkang@kylinos.cn> - 5.3.1-3
- fix CVE-2024-40724
2024-03-28 09:43:57 +08:00
* Thu Mar 28 2024 Ge Wang <wang__ge@126.com> - 5.3.1-2
- Add executable binary file assimp
2023-10-23 17:48:32 +08:00
* Wed Oct 18 2023 chenyaqiang <chengyaqiang@huawei.com> - 5.3.1-1
- update to 5.3.1
2023-03-01 23:22:45 +08:00
* Sat Feb 04 2023 wenchaofan <349464272@qq.com> - 5.2.5-1
- Update to 5.2.5 version
2022-06-15 11:00:05 +08:00
* Wed Jun 15 2022 wulei <wulei80@h-partners.com> - 5.2.4-1
- Upgrade to 5.2.4
* Mon Jan 4 2021 Ge Wang <wangge20@huawei.com> - 3.3.1-22
- Modify homepage url and license infomation
2020-12-25 16:07:35 +08:00
* Fri Dec 25 2020 wangxiao <wangxiao65@huawei.com> - 3.3.1-21
- Remove unnessary BuildRequire DevIL
2020-10-30 14:49:32 +08:00
* Wed Oct 21 2020 chengzihan <chengzihan2@huawei.com> - 3.3.1-20
- Remove Subpackage python2-assimp
2020-09-11 15:13:20 +08:00
* Wed Sep 9 2020 Ge Wang <wangge20@huawei.com> - 3.3.1-19
- Modify Source0 Url
2020-03-23 03:02:42 -04:00
* Fri Feb 14 2020 likexin <likexin4@huawei.com> - 3.3.1-18
2020-02-14 15:50:00 +08:00
- Package init