Advertisement
Guest User

bullet.spec 2.86.1 for fedora 26

a guest
Aug 19th, 2017
582
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.98 KB | None | 0 0
  1. %global _docdir_fmt %{name}
  2.  
  3. Name: bullet
  4. Version: 2.86.1
  5. Release: 3%{?dist}
  6. Summary: 3D Collision Detection and Rigid Body Dynamics Library
  7. Group: Development/Libraries
  8. License: zlib and MIT and BSD and Boost
  9. URL: http://www.bulletphysics.com
  10.  
  11. Source0: %{name}3-%{version}-free.tar.xz
  12. # bullet contains non-free code that we cannot ship. Therefore we use
  13. # this script to remove the non-free code before shipping it.
  14. # Download the upstream tarball and invoke this script while in the
  15. # tarball's directory:
  16. # ./generate-tarball.sh 2.82-r2704
  17. Source1: generate-tarball.sh
  18.  
  19. BuildRequires: cmake
  20. BuildRequires: dos2unix
  21. BuildRequires: doxygen
  22. BuildRequires: freeglut-devel
  23. BuildRequires: libICE-devel
  24.  
  25. %define _prefix /usr/local
  26. %define _libdir %_prefix/lib
  27.  
  28. %description
  29. Bullet is a 3D Collision Detection and Rigid Body Dynamics Library for games
  30. and animation.
  31.  
  32.  
  33. %package devel
  34. Summary: Development files for %{name}
  35. Group: Development/Libraries
  36. Requires: %{name}%{?_isa} = %{version}-%{release}
  37. Requires: cmake
  38. %description devel
  39. Development headers and libraries for %{name}.
  40.  
  41. %package devel-doc
  42. Summary: Documentation for developing programs that will use %{name}-devel
  43. Group: Development/Libraries
  44. License: zlib and LGPLv2+
  45. Requires: %{name}-extras%{?_isa} = %{version}-%{release}
  46.  
  47. %description devel-doc
  48. Documentation (PDF) for developing programs that will use %{name}-devel.
  49.  
  50. %prep
  51. %setup -q -n %{name}3-%{version}
  52. #rm -rf examples
  53. dos2unix README.md
  54. sed -i 's|-I@CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@|-I@INCLUDE_INSTALL_DIR@|' bullet.pc.cmake
  55. chmod -x src/BulletDynamics/ConstraintSolver/btSliderConstraint.h
  56. chmod -x src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp
  57.  
  58.  
  59. %build
  60. rm -f CMakeCache.txt
  61. rm -rf build_rpm
  62. mkdir build_rpm
  63. pushd build_rpm
  64. cmake -DBUILD_PYBULLET=OFF -DBUILD_SHARED_LIBS=ON -DINSTALL_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_CPU_DEMOS=OFF ..
  65. make %{?_smp_mflags} -j4
  66.  
  67. popd
  68. doxygen Doxyfile
  69.  
  70. %install
  71. rm -rf $RPM_BUILD_ROOT
  72. pushd build_rpm
  73. make install DESTDIR=$RPM_BUILD_ROOT
  74. popd
  75.  
  76. # Create symlinks for .so.X
  77. #not entirely sure if this step is really needed. seems to be done in make install already
  78.  
  79. pushd $RPM_BUILD_ROOT%{_libdir}
  80.  
  81. for f in lib*.so*
  82. do
  83. ln -sf $f ${f%\.so*}.so
  84. done
  85. popd
  86.  
  87.  
  88. %clean
  89. rm -rf $RPM_BUILD_ROOT
  90. echo "We're all done! Look in ./x86_64 for your fresh RPMs!"
  91.  
  92. %post -p /sbin/ldconfig
  93.  
  94. %postun -p /sbin/ldconfig
  95.  
  96.  
  97. %files
  98. %license LICENSE.txt
  99. %doc README.md AUTHORS.txt VERSION
  100. %{_libdir}/libBullet3Collision.so.*
  101. %{_libdir}/libBullet3Common.so.*
  102. %{_libdir}/libBullet3Dynamics.so.*
  103. %{_libdir}/libBullet3Geometry.so.*
  104. %{_libdir}/libBullet3OpenCL_clew.so.*
  105. %{_libdir}/libBulletCollision.so.*
  106. %{_libdir}/libBulletDynamics.so.*
  107. %{_libdir}/libBulletSoftBody.so.*
  108. %{_libdir}/libLinearMath.so.*
  109. %{_libdir}/libBullet2FileLoader.so.*
  110. %{_libdir}/libBulletInverseDynamics.so.*
  111.  
  112.  
  113.  
  114. %files devel
  115. %dir %{_includedir}/%{name}
  116. %{_includedir}/%{name}/*.h
  117. %{_includedir}/%{name}/Bullet3Collision
  118. %{_includedir}/%{name}/Bullet3Common
  119. %{_includedir}/%{name}/Bullet3Dynamics
  120. %{_includedir}/%{name}/Bullet3Geometry
  121. %{_includedir}/%{name}/Bullet3OpenCL
  122. %{_includedir}/%{name}/BulletCollision
  123. %{_includedir}/%{name}/BulletDynamics
  124. %{_includedir}/%{name}/BulletSoftBody
  125. %{_includedir}/%{name}/LinearMath
  126. %{_includedir}/%{name}/Bullet2FileLoader
  127. %{_includedir}/%{name}/BulletInverseDynamics
  128. %{_libdir}/libBullet3Collision.so
  129. %{_libdir}/libBullet3Common.so
  130. %{_libdir}/libBullet3Dynamics.so
  131. %{_libdir}/libBullet3Geometry.so
  132. %{_libdir}/libBullet3OpenCL_clew.so
  133. %{_libdir}/libBulletCollision.so
  134. %{_libdir}/libBulletDynamics.so
  135. %{_libdir}/libBulletSoftBody.so
  136. %{_libdir}/libLinearMath.so
  137. %{_libdir}/libBulletInverseDynamics.so
  138. %{_libdir}/libBullet2FileLoader.so
  139. %{_libdir}/pkgconfig/bullet.pc
  140. %{_libdir}/cmake/%{name}
  141.  
  142. %files devel-doc
  143. %doc docs/Bullet_User_Manual.pdf
  144. %doc docs/BulletQuickstart.pdf
  145. %doc docs/GPU_rigidbody_using_OpenCL.pdf
  146. #%doc html
  147.  
  148. %changelog
  149. * Sat Aug 19 2017 asdf asdf <asdf@asdf.com> - 2.86.1-1
  150. - rebuilt myself
  151.  
  152. * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.83-3
  153. - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
  154.  
  155. * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.83-2
  156. - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
  157.  
  158. * Mon Jan 04 2016 Rich Mattes <richmattes@gmail.com> - 2.83-1
  159. - Update to release 2.83
  160.  
  161. * Sat Oct 03 2015 François Cami <fcami@fedoraproject.org> - 2.82-7
  162. - Move Bullet_User_Manual.pdf to a separate devel-doc package.
  163.  
  164. * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.82-6
  165. - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
  166.  
  167. * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.82-5
  168. - Rebuilt for GCC 5 C++11 ABI change
  169.  
  170. * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.82-4
  171. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  172.  
  173. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.82-3
  174. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  175.  
  176. * Fri May 16 2014 Rich Mattes <richmattes@gmail.com> - 2.82-2
  177. - Install all of the bullet extras (rhbz#1097452)
  178. - Spec file cleanup
  179.  
  180. * Sun Feb 09 2014 Rich Mattes <richmattes@gmail.com> - 2.82-1
  181. - Update to version 2.82
  182.  
  183. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.81-3
  184. - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
  185.  
  186. * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.81-2
  187. - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
  188.  
  189. * Sat Oct 13 2012 Rich Mattes <richmattes@gmail.com> - 2.81-1
  190. - Update to version 2.81
  191.  
  192. * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.80-2
  193. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  194.  
  195. * Fri May 25 2012 Rich Mattes <richmattes@gmail.com> - 2.80-1
  196. - Update to version 2.80
  197.  
  198. * Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.79-2
  199. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  200.  
  201. * Sun Dec 18 2011 Rich Mattes <richmattes@gmail.com> - 2.79-1
  202. - Update to version 2.79
  203.  
  204. * Wed May 11 2011 Rich Mattes <richmattes@gmail.com> - 2.78-1
  205. - Update to version 2.78
  206. - Remove upstreamed patches
  207.  
  208. * Sat Feb 19 2011 Rich Mattes <richmattes@gmail.com> - 2.77-4
  209. - Fix gcc 4.6 build error
  210.  
  211. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.77-4
  212. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  213.  
  214. * Wed Oct 20 2010 Dan Horák <dan[at]danny.cz> - 2.77-3
  215. - add extras subpackage with additional libs
  216. - install headers into /usr/include/bullet
  217.  
  218. * Wed Sep 29 2010 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.77-2
  219. - Added LibSuffix patch
  220.  
  221. * Wed Sep 29 2010 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.77-1
  222. - Updatet to version 2.77
  223. - Droped all patches because they are all in upstream
  224.  
  225. * Sat Aug 21 2010 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.75-4
  226. - Hope fix (#599495)
  227.  
  228. * Sat Aug 21 2010 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.75-3
  229. - Hope fix (#619885)
  230.  
  231. * Tue Mar 09 2010 Rex Dieter <rdieter@fedoraproject.org> - 2.75-2
  232. - pkgconfig file not installed (#549051)
  233.  
  234. * Sat Oct 03 2009 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.75-1
  235. - Updatet to new upstream version 2.75
  236. - Updatet the patch file to work agian
  237.  
  238. * Thu Jun 25 2009 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.74-1
  239. - Updatet to version 2.74
  240. - Updatet the patch file to work agian
  241.  
  242. * Sun Feb 22 2009 Bruno Mahé <bruno at gnoll.org> - 2.73-5
  243. - Shortened the description
  244. - Fix directory ownership for directories BulletCollision and BulletDynamics
  245. - Convert ChangeLog to UTF-8
  246. - chmod generate-tarball.sh to 644
  247.  
  248. * Fri Feb 20 2009 Bruno Mahé <bruno at gnoll.org> - 2.73-4
  249. - Remove gcc-g++ in BuildRequires
  250. - Add option -DCMAKE_BUILD_TYPE=NONE to %%cmake. This will make CMake using default compiler flags
  251. - Use %% instead of single % in %%changelog to prevent macros from being expanded
  252. - Specify we are not shipping pristine source because of some non-free parts
  253. - Change licence to "zlib and MIT and BSD"
  254. - Make include directory being owned by this package
  255. - Remove duplicate documents
  256. - Convert spec file to UTF8
  257. - Set some files permission to 644
  258.  
  259. * Sun Feb 15 2009 Bruno Mahé <bruno at gnoll.org> - 2.73-3
  260. - Remove non-free directories Demos/, Extras/ and Glut/ from the source
  261.  
  262. * Sun Jan 18 2009 Bruno Mahé <bruno at gnoll.org> - 2.73-2
  263. - Add "rm -rf $RPM_BUILD_ROOT" to the install target
  264. - Moved unversioned shared libraries (e.g. libfoo.so) to the -devel package
  265. - Update %%post and %%postrun
  266. - Change %%description
  267. - Reduce length of %%summary
  268. - Changed %%group to Development/Libraries
  269. - Changed Zlib licence to lowercase zlib
  270. - %%description kept below 80 characters wide
  271.  
  272. * Sat Dec 13 2008 Bruno Mahé <bruno at gnoll.org> - 2.73-1
  273. - Initial build.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement