]>
Commit | Line | Data |
---|---|---|
823b21b4 | 1 | Summary: Bullet - vollision detection and rigid body dynamics library |
2 | Summary(pl.UTF-8): Bullet - biblioteka wykrywania kolizji oraz dynamiki ciała sztywnego | |
9eac1d3f | 3 | Name: bullet |
823b21b4 | 4 | Version: 2.77 |
821650f7 | 5 | Release: 1 |
f582dc50 | 6 | License: Zlib |
9eac1d3f | 7 | Group: Applications |
821650f7 | 8 | Source0: http://bullet.googlecode.com/files/%{name}-%{version}.tgz |
823b21b4 | 9 | # Source0-md5: 2f5074a1a29b618c672f1da4748e374b |
19acd31c | 10 | Patch0: %{name}-lib_suffix.patch |
f582dc50 | 11 | URL: http://www.bulletphysics.com/Bullet/wordpress/ |
f561f371 | 12 | BuildRequires: OpenGL-glut-devel |
823b21b4 | 13 | BuildRequires: cmake |
14 | BuildRequires: rpmbuild(macros) >= 1.600 | |
9eac1d3f | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
823b21b4 | 17 | # better fix by proper linking |
18 | %define skip_post_check_so libBulletMultiThreaded.so.* | |
19 | ||
9eac1d3f | 20 | %description |
823b21b4 | 21 | Bullet is a collision detection and rigid nody dynamics library. |
9eac1d3f | 22 | |
23 | %description -l pl.UTF-8 | |
823b21b4 | 24 | Bullet to biblioteka wykrywania kolizji oraz dynamiki ciała sztywnego |
9eac1d3f | 25 | |
9eac1d3f | 26 | %package devel |
823b21b4 | 27 | Summary: Header files for bullet library |
28 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki bullet | |
9eac1d3f | 29 | Group: Development/Libraries |
7ff7c67f | 30 | Requires: %{name} = %{version}-%{release} |
9eac1d3f | 31 | |
32 | %description devel | |
823b21b4 | 33 | Header files for bullet library. |
9eac1d3f | 34 | |
35 | %description devel -l pl.UTF-8 | |
823b21b4 | 36 | Pliki nagłówkowe biblioteki bullet. |
9eac1d3f | 37 | |
38 | %prep | |
39 | %setup -q | |
6835e057 | 40 | %undos src/MiniCL/CMakeLists.txt |
19acd31c | 41 | %patch0 -p1 |
9eac1d3f | 42 | |
43 | %build | |
823b21b4 | 44 | mkdir build |
45 | cd build | |
46 | %cmake \ | |
47 | -DBUILD_DEMOS=OFF \ | |
48 | -DBUILD_EXTRAS=ON \ | |
49 | -DINCLUDE_INSTALL_DIR=%{_includedir}/%{name} \ | |
50 | .. | |
51 | ||
9eac1d3f | 52 | %{__make} |
53 | ||
9eac1d3f | 54 | %install |
55 | rm -rf $RPM_BUILD_ROOT | |
7ff7c67f | 56 | |
823b21b4 | 57 | %{__make} -C build install \ |
9eac1d3f | 58 | DESTDIR=$RPM_BUILD_ROOT |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
9eac1d3f | 63 | %post -p /sbin/ldconfig |
64 | %postun -p /sbin/ldconfig | |
9eac1d3f | 65 | |
9eac1d3f | 66 | %files |
67 | %defattr(644,root,root,755) | |
7ff7c67f | 68 | %doc AUTHORS ChangeLog NEWS README |
823b21b4 | 69 | %attr(755,root,root) %{_libdir}/libBulletCollision.so.*.* |
70 | %attr(755,root,root) %{_libdir}/libBulletDynamics.so.*.* | |
71 | %attr(755,root,root) %{_libdir}/libBulletMultiThreaded.so.*.* | |
72 | %attr(755,root,root) %{_libdir}/libBulletSoftBody.so.*.* | |
73 | %attr(755,root,root) %{_libdir}/libBulletSoftBodySolvers_CPU.so.*.* | |
74 | %attr(755,root,root) %{_libdir}/libLinearMath.so.*.* | |
75 | %attr(755,root,root) %{_libdir}/libMiniCL.so.*.* | |
7ff7c67f | 76 | |
77 | %files devel | |
66093014 | 78 | %defattr(644,root,root,755) |
823b21b4 | 79 | %doc Bullet_User_Manual.pdf |
80 | %attr(755,root,root) %{_libdir}/libBulletCollision.so | |
81 | %attr(755,root,root) %{_libdir}/libBulletDynamics.so | |
82 | %attr(755,root,root) %{_libdir}/libBulletMultiThreaded.so | |
83 | %attr(755,root,root) %{_libdir}/libBulletSoftBody.so | |
84 | %attr(755,root,root) %{_libdir}/libBulletSoftBodySolvers_CPU.so | |
85 | %attr(755,root,root) %{_libdir}/libLinearMath.so | |
86 | %attr(755,root,root) %{_libdir}/libMiniCL.so | |
87 | %{_includedir}/%{name} | |
7ff7c67f | 88 | %{_pkgconfigdir}/%{name}.pc |