]>
Commit | Line | Data |
---|---|---|
28ce3210 | 1 | # |
09966290 JB |
2 | # Conditional build: |
3 | %bcond_with opencl_amd # AMD OpenCL | |
4 | %bcond_with opencl_intel # Intel OpenCL (64-bit) | |
5 | %bcond_with opencl_nvidia # NVidia OpenCL | |
28ce3210 | 6 | # |
0bcc430a | 7 | Summary: Bullet - collision detection and rigid body dynamics library |
823b21b4 | 8 | Summary(pl.UTF-8): Bullet - biblioteka wykrywania kolizji oraz dynamiki ciała sztywnego |
9eac1d3f | 9 | Name: bullet |
09966290 | 10 | Version: 2.82 |
99836618 | 11 | Release: 1 |
09966290 JB |
12 | License: Zlib (BSD-like) |
13 | Group: Libraries | |
14 | #Source0Download: https://code.google.com/p/bullet/downloads/list | |
15 | Source0: http://bullet.googlecode.com/files/%{name}-%{version}-r2704.tgz | |
16 | # Source0-md5: 70b3c8d202dee91a0854b4cbc88173e8 | |
19b08433 | 17 | Patch0: %{name}-link.patch |
19ed2e3f | 18 | URL: http://bulletphysics.org/wordpress/ |
09966290 JB |
19 | BuildRequires: OpenCL-devel |
20 | BuildRequires: OpenGL-GLU-devel | |
f561f371 | 21 | BuildRequires: OpenGL-glut-devel |
09966290 | 22 | BuildRequires: cmake >= 2.4.3 |
823b21b4 | 23 | BuildRequires: rpmbuild(macros) >= 1.600 |
19b08433 | 24 | BuildRequires: unzip |
9eac1d3f | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
823b21b4 | 28 | Bullet is a collision detection and rigid nody dynamics library. |
9eac1d3f | 29 | |
30 | %description -l pl.UTF-8 | |
09966290 | 31 | Bullet to biblioteka wykrywania kolizji oraz dynamiki ciała sztywnego. |
9eac1d3f | 32 | |
9eac1d3f | 33 | %package devel |
09966290 JB |
34 | Summary: Header files for bullet libraries |
35 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek bullet | |
9eac1d3f | 36 | Group: Development/Libraries |
7ff7c67f | 37 | Requires: %{name} = %{version}-%{release} |
09966290 JB |
38 | Requires: OpenCL-devel |
39 | Requires: OpenGL-GLU-devel | |
40 | Requires: OpenGL-glut-devel | |
9eac1d3f | 41 | |
42 | %description devel | |
09966290 | 43 | Header files for bullet libraries. |
9eac1d3f | 44 | |
45 | %description devel -l pl.UTF-8 | |
09966290 | 46 | Pliki nagłówkowe bibliotek bullet. |
9eac1d3f | 47 | |
48 | %prep | |
09966290 | 49 | %setup -q -n %{name}-%{version}-r2704 |
10c00b96 | 50 | %patch0 -p1 |
9eac1d3f | 51 | |
52 | %build | |
09966290 JB |
53 | install -d pkgbuild |
54 | cd pkgbuild | |
55 | %cmake .. \ | |
56 | %{!?with_opencl_amd:-DAMD_OPENCL_BASE_DIR:BOOL=OFF} \ | |
caa8a29a JB |
57 | %{!?with_opencl_intel:-DINTEL_OPENCL_ICD_CFG:BOOL=OFF} \ |
58 | %{!?with_opencl_nvidia:-DNVIDIA_OPENCL_ICD_CFG:BOOL=OFF} \ | |
823b21b4 | 59 | -DBUILD_DEMOS=OFF \ |
60 | -DBUILD_EXTRAS=ON \ | |
09966290 | 61 | -DBUILD_MULTITHREADING=ON \ |
823b21b4 | 62 | -DINCLUDE_INSTALL_DIR=%{_includedir}/%{name} \ |
823b21b4 | 63 | |
9eac1d3f | 64 | %{__make} |
65 | ||
9eac1d3f | 66 | %install |
67 | rm -rf $RPM_BUILD_ROOT | |
7ff7c67f | 68 | |
09966290 | 69 | %{__make} -C pkgbuild install \ |
9eac1d3f | 70 | DESTDIR=$RPM_BUILD_ROOT |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
9eac1d3f | 75 | %post -p /sbin/ldconfig |
76 | %postun -p /sbin/ldconfig | |
9eac1d3f | 77 | |
9eac1d3f | 78 | %files |
79 | %defattr(644,root,root,755) | |
09966290 | 80 | %doc AUTHORS COPYING ChangeLog NEWS README |
823b21b4 | 81 | %attr(755,root,root) %{_libdir}/libBulletCollision.so.*.* |
82 | %attr(755,root,root) %{_libdir}/libBulletDynamics.so.*.* | |
83 | %attr(755,root,root) %{_libdir}/libBulletMultiThreaded.so.*.* | |
84 | %attr(755,root,root) %{_libdir}/libBulletSoftBody.so.*.* | |
10c00b96 | 85 | %attr(755,root,root) %{_libdir}/libBulletSoftBodySolvers_OpenCL_Mini.so.*.* |
09966290 JB |
86 | %{?with_opencl_amd:%attr(755,root,root) %{_libdir}/libBulletSoftBodySolvers_OpenCL_AMD.so.*.*} |
87 | %{?with_opencl_intel:%attr(755,root,root) %{_libdir}/libBulletSoftBodySolvers_OpenCL_Intel.so.*.*} | |
88 | %{?with_opencl_nvidia:%attr(755,root,root) %{_libdir}/libBulletSoftBodySolvers_OpenCL_NVidia.so.*.*} | |
823b21b4 | 89 | %attr(755,root,root) %{_libdir}/libLinearMath.so.*.* |
90 | %attr(755,root,root) %{_libdir}/libMiniCL.so.*.* | |
7ff7c67f | 91 | |
92 | %files devel | |
66093014 | 93 | %defattr(644,root,root,755) |
823b21b4 | 94 | %doc Bullet_User_Manual.pdf |
95 | %attr(755,root,root) %{_libdir}/libBulletCollision.so | |
96 | %attr(755,root,root) %{_libdir}/libBulletDynamics.so | |
97 | %attr(755,root,root) %{_libdir}/libBulletMultiThreaded.so | |
98 | %attr(755,root,root) %{_libdir}/libBulletSoftBody.so | |
10c00b96 | 99 | %attr(755,root,root) %{_libdir}/libBulletSoftBodySolvers_OpenCL_Mini.so |
09966290 JB |
100 | %{?with_opencl_amd:%attr(755,root,root) %{_libdir}/libBulletSoftBodySolvers_OpenCL_AMD.so} |
101 | %{?with_opencl_intel:%attr(755,root,root) %{_libdir}/libBulletSoftBodySolvers_OpenCL_Intel.so} | |
102 | %{?with_opencl_nvidia:%attr(755,root,root) %{_libdir}/libBulletSoftBodySolvers_OpenCL_NVidia.so} | |
823b21b4 | 103 | %attr(755,root,root) %{_libdir}/libLinearMath.so |
104 | %attr(755,root,root) %{_libdir}/libMiniCL.so | |
09966290 JB |
105 | %{_includedir}/bullet |
106 | %{_libdir}/cmake/bullet | |
107 | %{_pkgconfigdir}/bullet.pc |