]> git.pld-linux.org Git - packages/assimp.git/blob - assimp.spec
update BR
[packages/assimp.git] / assimp.spec
1 Summary:        Open Asset Import Library
2 Name:           assimp
3 Version:        3.1.1
4 Release:        0.1
5 License:        distributable
6 Group:          Libraries
7 Source0:        http://netix.dl.sourceforge.net/project/%{name}/%{name}-3.1/%{name}-%{version}_no_test_models.zip
8 # Source0-md5:  ccd4788204509da58a3a53c7aeda7a8b
9 URL:            http://sourceforge.net/projects/assimp/
10 BuildRequires:  cmake
11 BuildRequires:  libstdc++-devel
12 BuildRequires:  minizip-devel
13 BuildRequires:  pkgconfig
14 BuildRequires:  rpmbuild(macros) >= 1.213
15 BuildRequires:  unzip
16 BuildRequires:  zziplib-devel
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Importer library to import assets from different common 3D file formats
21 such as Collada, Blend, Obj, X, 3DS, LWO, MD5, MD2, MD3, MDL, MS3D
22 and a lot of other formats. The data is stored in an own in-memory
23 data-format, which can be easily processed.
24
25 %package devel
26 Summary:        Header files for assimp
27 Group:          Development/Libraries
28 Requires:       %{name} = %{epoch}:%{version}-%{release}
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
38 mkdir build
39 cd build
40 %cmake \
41         CMAKE_HOME_DIR=/usr \
42         ..
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 cd build
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %post   -p /sbin/ldconfig
55 %postun -p /sbin/ldconfig
56
57 %files
58 %defattr(644,root,root,755)
59 %doc CHANGES CREDITS LICENSE README Readme.md
60 %attr(755,root,root) %{_libdir}/libassimp.so.3.1.*
61 %attr(755,root,root) %ghost %{_libdir}/libassimp.so.3
62
63 %files devel
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_bindir}/assimp
66 %attr(755,root,root) %{_libdir}/libassimp.so
67 %{_libdir}/cmake/assimp-3.1
68 %{_includedir}/assimp
69 %{_pkgconfigdir}/assimp.pc
70
This page took 0.044535 seconds and 3 git commands to generate.