]>
Commit | Line | Data |
---|---|---|
f271da5f JB |
1 | # TODO: |
2 | # - use more system libs: | |
3 | # - utf8cpp, stb_image, libdraco (see patches in Debian) | |
4 | # - pugixml, polyclipping, poly2tri, zip, opendllparser, open3dgc, rapidjson (see code/CMakeLists.txt, ASSIMP_HUNTER_ENABLED vs plain option) | |
5 | # - draco support? (-DASSIMP_ENABLE_DRACO) | |
d51c8986 | 6 | Summary: Open Asset Import Library |
1dcefa81 | 7 | Summary(pl.UTF-8): Asset Import - otwarta biblioteka do importu danych trójwymiarowych |
d51c8986 | 8 | Name: assimp |
bcc95a40 | 9 | Version: 5.2.5 |
f271da5f | 10 | Release: 1 |
1dcefa81 | 11 | License: BSD |
d51c8986 | 12 | Group: Libraries |
f271da5f | 13 | #Source0Download: https://github.com/assimp/assimp/releases |
a922cc5c | 14 | Source0: https://github.com/assimp/assimp/archive/v%{version}/%{name}-%{version}.tar.gz |
bcc95a40 | 15 | # Source0-md5: 0b5a5a2714f1126b9931cdb95f512c91 |
a922cc5c | 16 | URL: https://www.assimp.org/ |
f271da5f JB |
17 | BuildRequires: cmake >= 3.10 |
18 | BuildRequires: libstdc++-devel >= 6:4.7 | |
05a9717f ER |
19 | BuildRequires: minizip-devel |
20 | BuildRequires: pkgconfig | |
f271da5f JB |
21 | #BuildRequires: pugixml-devel |
22 | BuildRequires: rpmbuild(macros) >= 1.605 | |
05a9717f | 23 | BuildRequires: unzip |
1dcefa81 | 24 | BuildRequires: zlib-devel |
d51c8986 LM |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
23289b0a ER |
28 | Importer library to import assets from different common 3D file |
29 | formats such as Collada, Blend, Obj, X, 3DS, LWO, MD5, MD2, MD3, MDL, | |
30 | MS3D and a lot of other formats. The data is stored in an own | |
31 | in-memory data-format, which can be easily processed. | |
d51c8986 | 32 | |
1dcefa81 JB |
33 | %description -l pl.UTF-8 |
34 | Biblioteka importująca służąca do odczytu danych trójwymiarowych | |
35 | (assets) z różnych popularnych formatów plików, takich jak Collada, | |
36 | Blend, Obj, X, 3DS, LWO, MD5, MD2, MD3, MDL, MS3D i innych. Dane są | |
37 | przechowywane w pamięci, we własnym formacie, który można łatwo | |
38 | przetworzyć. | |
39 | ||
d51c8986 | 40 | %package devel |
1dcefa81 JB |
41 | Summary: Header files for assimp library |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki assimp | |
d51c8986 | 43 | Group: Development/Libraries |
23289b0a | 44 | Requires: %{name} = %{version}-%{release} |
f271da5f | 45 | Requires: libstdc++-devel >= 6:4.7 |
f0ba51c1 | 46 | Requires: zlib-devel |
d51c8986 LM |
47 | |
48 | %description devel | |
1dcefa81 JB |
49 | The header files needed for development of programs using the assimp |
50 | library. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe niezbędne do tworzenia programów wykorzystujących | |
54 | bibliotekę assimp. | |
d51c8986 LM |
55 | |
56 | %prep | |
57 | %setup -q | |
58 | ||
59 | %build | |
23289b0a | 60 | install -d build |
d51c8986 | 61 | cd build |
1dcefa81 | 62 | %cmake .. \ |
bcc95a40 JP |
63 | -DASSIMP_LIB_INSTALL_DIR:PATH=%{_lib} \ |
64 | -DASSIMP_BUILD_ASSIMP_TOOLS:BOOL=ON | |
1dcefa81 | 65 | |
d51c8986 LM |
66 | %{__make} |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
f0ba51c1 | 70 | |
23289b0a | 71 | %{__make} -C build install \ |
d51c8986 LM |
72 | DESTDIR=$RPM_BUILD_ROOT |
73 | ||
74 | %clean | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
23289b0a ER |
77 | %post -p /sbin/ldconfig |
78 | %postun -p /sbin/ldconfig | |
d51c8986 LM |
79 | |
80 | %files | |
81 | %defattr(644,root,root,755) | |
1dcefa81 | 82 | %doc CHANGES CREDITS LICENSE Readme.md |
23289b0a | 83 | %attr(755,root,root) %{_libdir}/libassimp.so.*.*.* |
a922cc5c | 84 | %attr(755,root,root) %ghost %{_libdir}/libassimp.so.5 |
d51c8986 LM |
85 | |
86 | %files devel | |
87 | %defattr(644,root,root,755) | |
88 | %attr(755,root,root) %{_bindir}/assimp | |
89 | %attr(755,root,root) %{_libdir}/libassimp.so | |
f271da5f | 90 | %{_libdir}/cmake/assimp-5.2 |
d51c8986 LM |
91 | %{_includedir}/assimp |
92 | %{_pkgconfigdir}/assimp.pc |