1 Summary: Open Asset Import Library
2 Summary(pl.UTF-8): Asset Import - otwarta biblioteka do importu danych trójwymiarowych
8 Source0: https://github.com/assimp/assimp/archive/v%{version}/%{name}-%{version}.tar.gz
9 # Source0-md5: eb7b7385a5c3194ab46d7f869d7ac6cf
10 Patch0: %{name}-irrxml.patch
11 Patch1: %{name}-pc.patch
12 URL: https://www.assimp.org/
13 BuildRequires: cmake >= 3.0
14 BuildRequires: irrxml-devel
15 BuildRequires: libstdc++-devel
16 BuildRequires: minizip-devel
17 BuildRequires: pkgconfig
18 BuildRequires: rpmbuild(macros) >= 1.213
20 BuildRequires: zlib-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Importer library to import assets from different common 3D file
25 formats such as Collada, Blend, Obj, X, 3DS, LWO, MD5, MD2, MD3, MDL,
26 MS3D and a lot of other formats. The data is stored in an own
27 in-memory data-format, which can be easily processed.
29 %description -l pl.UTF-8
30 Biblioteka importująca służąca do odczytu danych trójwymiarowych
31 (assets) z różnych popularnych formatów plików, takich jak Collada,
32 Blend, Obj, X, 3DS, LWO, MD5, MD2, MD3, MDL, MS3D i innych. Dane są
33 przechowywane w pamięci, we własnym formacie, który można łatwo
37 Summary: Header files for assimp library
38 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki assimp
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
41 Requires: libstdc++-devel
45 The header files needed for development of programs using the assimp
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe niezbędne do tworzenia programów wykorzystujących
61 -DASSIMP_LIB_INSTALL_DIR:PATH=%{_lib} \
67 rm -rf $RPM_BUILD_ROOT
69 %{__make} -C build install \
70 DESTDIR=$RPM_BUILD_ROOT
73 rm -rf $RPM_BUILD_ROOT
75 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
79 %defattr(644,root,root,755)
80 %doc CHANGES CREDITS LICENSE Readme.md
81 %attr(755,root,root) %{_libdir}/libassimp.so.*.*.*
82 %attr(755,root,root) %ghost %{_libdir}/libassimp.so.5
85 %defattr(644,root,root,755)
86 %attr(755,root,root) %{_bindir}/assimp
87 %attr(755,root,root) %{_libdir}/libassimp.so
88 %{_libdir}/cmake/assimp-5.0
90 %{_pkgconfigdir}/assimp.pc