]>
Commit | Line | Data |
---|---|---|
d51c8986 | 1 | Summary: Open Asset Import Library |
1dcefa81 | 2 | Summary(pl.UTF-8): Asset Import - otwarta biblioteka do importu danych trójwymiarowych |
d51c8986 | 3 | Name: assimp |
a922cc5c | 4 | Version: 5.0.1 |
f0ba51c1 | 5 | Release: 2 |
1dcefa81 | 6 | License: BSD |
d51c8986 | 7 | Group: Libraries |
a922cc5c JP |
8 | Source0: https://github.com/assimp/assimp/archive/v%{version}/%{name}-%{version}.tar.gz |
9 | # Source0-md5: eb7b7385a5c3194ab46d7f869d7ac6cf | |
f0ba51c1 JB |
10 | Patch0: %{name}-irrxml.patch |
11 | Patch1: %{name}-pc.patch | |
a922cc5c | 12 | URL: https://www.assimp.org/ |
f0ba51c1 JB |
13 | BuildRequires: cmake >= 3.0 |
14 | BuildRequires: irrxml-devel | |
05a9717f ER |
15 | BuildRequires: libstdc++-devel |
16 | BuildRequires: minizip-devel | |
17 | BuildRequires: pkgconfig | |
d51c8986 | 18 | BuildRequires: rpmbuild(macros) >= 1.213 |
05a9717f | 19 | BuildRequires: unzip |
1dcefa81 | 20 | BuildRequires: zlib-devel |
d51c8986 LM |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
23289b0a ER |
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. | |
d51c8986 | 28 | |
1dcefa81 JB |
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 | |
34 | przetworzyć. | |
35 | ||
d51c8986 | 36 | %package devel |
1dcefa81 JB |
37 | Summary: Header files for assimp library |
38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki assimp | |
d51c8986 | 39 | Group: Development/Libraries |
23289b0a | 40 | Requires: %{name} = %{version}-%{release} |
f0ba51c1 JB |
41 | Requires: libstdc++-devel |
42 | Requires: zlib-devel | |
d51c8986 LM |
43 | |
44 | %description devel | |
1dcefa81 JB |
45 | The header files needed for development of programs using the assimp |
46 | library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe niezbędne do tworzenia programów wykorzystujących | |
50 | bibliotekę assimp. | |
d51c8986 LM |
51 | |
52 | %prep | |
53 | %setup -q | |
f0ba51c1 JB |
54 | %patch0 -p1 |
55 | %patch1 -p1 | |
d51c8986 LM |
56 | |
57 | %build | |
23289b0a | 58 | install -d build |
d51c8986 | 59 | cd build |
1dcefa81 | 60 | %cmake .. \ |
f0ba51c1 JB |
61 | -DASSIMP_LIB_INSTALL_DIR:PATH=%{_lib} \ |
62 | -DSYSTEM_IRRXML=ON | |
1dcefa81 | 63 | |
d51c8986 LM |
64 | %{__make} |
65 | ||
66 | %install | |
67 | rm -rf $RPM_BUILD_ROOT | |
f0ba51c1 | 68 | |
23289b0a | 69 | %{__make} -C build install \ |
d51c8986 LM |
70 | DESTDIR=$RPM_BUILD_ROOT |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
23289b0a ER |
75 | %post -p /sbin/ldconfig |
76 | %postun -p /sbin/ldconfig | |
d51c8986 LM |
77 | |
78 | %files | |
79 | %defattr(644,root,root,755) | |
1dcefa81 | 80 | %doc CHANGES CREDITS LICENSE Readme.md |
23289b0a | 81 | %attr(755,root,root) %{_libdir}/libassimp.so.*.*.* |
a922cc5c | 82 | %attr(755,root,root) %ghost %{_libdir}/libassimp.so.5 |
d51c8986 LM |
83 | |
84 | %files devel | |
85 | %defattr(644,root,root,755) | |
86 | %attr(755,root,root) %{_bindir}/assimp | |
87 | %attr(755,root,root) %{_libdir}/libassimp.so | |
a922cc5c | 88 | %{_libdir}/cmake/assimp-5.0 |
d51c8986 LM |
89 | %{_includedir}/assimp |
90 | %{_pkgconfigdir}/assimp.pc |