]>
Commit | Line | Data |
---|---|---|
d51c8986 LM |
1 | Summary: Open Asset Import Library |
2 | Name: assimp | |
3 | Version: 3.1.1 | |
23289b0a | 4 | Release: 1 |
d51c8986 LM |
5 | License: distributable |
6 | Group: Libraries | |
23289b0a | 7 | Source0: http://downloads.sourceforge.net/assimp/%{name}-%{version}_no_test_models.zip |
d51c8986 LM |
8 | # Source0-md5: ccd4788204509da58a3a53c7aeda7a8b |
9 | URL: http://sourceforge.net/projects/assimp/ | |
05a9717f ER |
10 | BuildRequires: cmake |
11 | BuildRequires: libstdc++-devel | |
12 | BuildRequires: minizip-devel | |
13 | BuildRequires: pkgconfig | |
d51c8986 | 14 | BuildRequires: rpmbuild(macros) >= 1.213 |
05a9717f ER |
15 | BuildRequires: unzip |
16 | BuildRequires: zziplib-devel | |
d51c8986 LM |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
23289b0a ER |
20 | Importer library to import assets from different common 3D file |
21 | formats such as Collada, Blend, Obj, X, 3DS, LWO, MD5, MD2, MD3, MDL, | |
22 | MS3D and a lot of other formats. The data is stored in an own | |
23 | in-memory data-format, which can be easily processed. | |
d51c8986 LM |
24 | |
25 | %package devel | |
26 | Summary: Header files for assimp | |
27 | Group: Development/Libraries | |
23289b0a | 28 | Requires: %{name} = %{version}-%{release} |
d51c8986 LM |
29 | |
30 | %description devel | |
31 | The header files are only needed for development of programs using the | |
32 | assimplibrary. | |
33 | ||
34 | %prep | |
35 | %setup -q | |
36 | ||
37 | %build | |
23289b0a | 38 | install -d build |
d51c8986 LM |
39 | cd build |
40 | %cmake \ | |
41 | CMAKE_HOME_DIR=/usr \ | |
42 | .. | |
43 | %{__make} | |
44 | ||
45 | %install | |
46 | rm -rf $RPM_BUILD_ROOT | |
23289b0a | 47 | %{__make} -C build install \ |
d51c8986 LM |
48 | DESTDIR=$RPM_BUILD_ROOT |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
23289b0a ER |
53 | %post -p /sbin/ldconfig |
54 | %postun -p /sbin/ldconfig | |
d51c8986 LM |
55 | |
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc CHANGES CREDITS LICENSE README Readme.md | |
23289b0a | 59 | %attr(755,root,root) %{_libdir}/libassimp.so.*.*.* |
d51c8986 LM |
60 | %attr(755,root,root) %ghost %{_libdir}/libassimp.so.3 |
61 | ||
62 | %files devel | |
63 | %defattr(644,root,root,755) | |
64 | %attr(755,root,root) %{_bindir}/assimp | |
65 | %attr(755,root,root) %{_libdir}/libassimp.so | |
66 | %{_libdir}/cmake/assimp-3.1 | |
67 | %{_includedir}/assimp | |
68 | %{_pkgconfigdir}/assimp.pc |