]> git.pld-linux.org Git - SPECS.git/blob - assimp.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / assimp.spec
1 Summary:        Open Asset Import Library
2 Summary(pl.UTF-8):      Asset Import - otwarta biblioteka do importu danych trójwymiarowych
3 Name:           assimp
4 Version:        5.0.1
5 Release:        2
6 License:        BSD
7 Group:          Libraries
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
19 BuildRequires:  unzip
20 BuildRequires:  zlib-devel
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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.
28
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
36 %package devel
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
42 Requires:       zlib-devel
43
44 %description devel
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.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55 %patch1 -p1
56
57 %build
58 install -d build
59 cd build
60 %cmake .. \
61         -DASSIMP_LIB_INSTALL_DIR:PATH=%{_lib} \
62         -DSYSTEM_IRRXML=ON
63
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68
69 %{__make} -C build install \
70         DESTDIR=$RPM_BUILD_ROOT
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %post   -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %files
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
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
88 %{_libdir}/cmake/assimp-5.0
89 %{_includedir}/assimp
90 %{_pkgconfigdir}/assimp.pc
This page took 0.69896 seconds and 3 git commands to generate.