]> git.pld-linux.org Git - packages/assimp.git/blob - assimp.spec
- updated to 5.2.1
[packages/assimp.git] / assimp.spec
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)
6 Summary:        Open Asset Import Library
7 Summary(pl.UTF-8):      Asset Import - otwarta biblioteka do importu danych trójwymiarowych
8 Name:           assimp
9 Version:        5.2.1
10 Release:        1
11 License:        BSD
12 Group:          Libraries
13 #Source0Download: https://github.com/assimp/assimp/releases
14 Source0:        https://github.com/assimp/assimp/archive/v%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5:  6726425e307b3356a5f121abe436f4f6
16 Patch0:         %{name}-system-minizip.patch
17 URL:            https://www.assimp.org/
18 BuildRequires:  cmake >= 3.10
19 BuildRequires:  libstdc++-devel >= 6:4.7
20 BuildRequires:  minizip-devel
21 BuildRequires:  pkgconfig
22 #BuildRequires: pugixml-devel
23 BuildRequires:  rpmbuild(macros) >= 1.605
24 BuildRequires:  unzip
25 BuildRequires:  zlib-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Importer library to import assets from different common 3D file
30 formats such as Collada, Blend, Obj, X, 3DS, LWO, MD5, MD2, MD3, MDL,
31 MS3D and a lot of other formats. The data is stored in an own
32 in-memory data-format, which can be easily processed.
33
34 %description -l pl.UTF-8
35 Biblioteka importująca służąca do odczytu danych trójwymiarowych
36 (assets) z różnych popularnych formatów plików, takich jak Collada,
37 Blend, Obj, X, 3DS, LWO, MD5, MD2, MD3, MDL, MS3D i innych. Dane są
38 przechowywane w pamięci, we własnym formacie, który można łatwo
39 przetworzyć.
40
41 %package devel
42 Summary:        Header files for assimp library
43 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki assimp
44 Group:          Development/Libraries
45 Requires:       %{name} = %{version}-%{release}
46 Requires:       libstdc++-devel >= 6:4.7
47 Requires:       zlib-devel
48
49 %description devel
50 The header files needed for development of programs using the assimp
51 library.
52
53 %description devel -l pl.UTF-8
54 Pliki nagłówkowe niezbędne do tworzenia programów wykorzystujących
55 bibliotekę assimp.
56
57 %prep
58 %setup -q
59 %patch0 -p1
60
61 %build
62 install -d build
63 cd build
64 %cmake .. \
65         -DASSIMP_LIB_INSTALL_DIR:PATH=%{_lib}
66
67 %{__make}
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71
72 %{__make} -C build install \
73         DESTDIR=$RPM_BUILD_ROOT
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post   -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
80
81 %files
82 %defattr(644,root,root,755)
83 %doc CHANGES CREDITS LICENSE Readme.md
84 %attr(755,root,root) %{_libdir}/libassimp.so.*.*.*
85 %attr(755,root,root) %ghost %{_libdir}/libassimp.so.5
86
87 %files devel
88 %defattr(644,root,root,755)
89 %attr(755,root,root) %{_bindir}/assimp
90 %attr(755,root,root) %{_libdir}/libassimp.so
91 %{_libdir}/cmake/assimp-5.2
92 %{_includedir}/assimp
93 %{_pkgconfigdir}/assimp.pc
This page took 0.109152 seconds and 4 git commands to generate.