Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %global _docdir_fmt %{name}
- Name: bullet
- Version: 2.86.1
- Release: 3%{?dist}
- Summary: 3D Collision Detection and Rigid Body Dynamics Library
- Group: Development/Libraries
- License: zlib and MIT and BSD and Boost
- URL: http://www.bulletphysics.com
- Source0: %{name}3-%{version}-free.tar.xz
- # bullet contains non-free code that we cannot ship. Therefore we use
- # this script to remove the non-free code before shipping it.
- # Download the upstream tarball and invoke this script while in the
- # tarball's directory:
- # ./generate-tarball.sh 2.82-r2704
- Source1: generate-tarball.sh
- BuildRequires: cmake
- BuildRequires: dos2unix
- BuildRequires: doxygen
- BuildRequires: freeglut-devel
- BuildRequires: libICE-devel
- %define _prefix /usr/local
- %define _libdir %_prefix/lib
- %description
- Bullet is a 3D Collision Detection and Rigid Body Dynamics Library for games
- and animation.
- %package devel
- Summary: Development files for %{name}
- Group: Development/Libraries
- Requires: %{name}%{?_isa} = %{version}-%{release}
- Requires: cmake
- %description devel
- Development headers and libraries for %{name}.
- %package devel-doc
- Summary: Documentation for developing programs that will use %{name}-devel
- Group: Development/Libraries
- License: zlib and LGPLv2+
- Requires: %{name}-extras%{?_isa} = %{version}-%{release}
- %description devel-doc
- Documentation (PDF) for developing programs that will use %{name}-devel.
- %prep
- %setup -q -n %{name}3-%{version}
- #rm -rf examples
- dos2unix README.md
- sed -i 's|-I@CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@|-I@INCLUDE_INSTALL_DIR@|' bullet.pc.cmake
- chmod -x src/BulletDynamics/ConstraintSolver/btSliderConstraint.h
- chmod -x src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp
- %build
- rm -f CMakeCache.txt
- rm -rf build_rpm
- mkdir build_rpm
- pushd build_rpm
- cmake -DBUILD_PYBULLET=OFF -DBUILD_SHARED_LIBS=ON -DINSTALL_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_CPU_DEMOS=OFF ..
- make %{?_smp_mflags} -j4
- popd
- doxygen Doxyfile
- %install
- rm -rf $RPM_BUILD_ROOT
- pushd build_rpm
- make install DESTDIR=$RPM_BUILD_ROOT
- popd
- # Create symlinks for .so.X
- #not entirely sure if this step is really needed. seems to be done in make install already
- pushd $RPM_BUILD_ROOT%{_libdir}
- for f in lib*.so*
- do
- ln -sf $f ${f%\.so*}.so
- done
- popd
- %clean
- rm -rf $RPM_BUILD_ROOT
- echo "We're all done! Look in ./x86_64 for your fresh RPMs!"
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %files
- %license LICENSE.txt
- %doc README.md AUTHORS.txt VERSION
- %{_libdir}/libBullet3Collision.so.*
- %{_libdir}/libBullet3Common.so.*
- %{_libdir}/libBullet3Dynamics.so.*
- %{_libdir}/libBullet3Geometry.so.*
- %{_libdir}/libBullet3OpenCL_clew.so.*
- %{_libdir}/libBulletCollision.so.*
- %{_libdir}/libBulletDynamics.so.*
- %{_libdir}/libBulletSoftBody.so.*
- %{_libdir}/libLinearMath.so.*
- %{_libdir}/libBullet2FileLoader.so.*
- %{_libdir}/libBulletInverseDynamics.so.*
- %files devel
- %dir %{_includedir}/%{name}
- %{_includedir}/%{name}/*.h
- %{_includedir}/%{name}/Bullet3Collision
- %{_includedir}/%{name}/Bullet3Common
- %{_includedir}/%{name}/Bullet3Dynamics
- %{_includedir}/%{name}/Bullet3Geometry
- %{_includedir}/%{name}/Bullet3OpenCL
- %{_includedir}/%{name}/BulletCollision
- %{_includedir}/%{name}/BulletDynamics
- %{_includedir}/%{name}/BulletSoftBody
- %{_includedir}/%{name}/LinearMath
- %{_includedir}/%{name}/Bullet2FileLoader
- %{_includedir}/%{name}/BulletInverseDynamics
- %{_libdir}/libBullet3Collision.so
- %{_libdir}/libBullet3Common.so
- %{_libdir}/libBullet3Dynamics.so
- %{_libdir}/libBullet3Geometry.so
- %{_libdir}/libBullet3OpenCL_clew.so
- %{_libdir}/libBulletCollision.so
- %{_libdir}/libBulletDynamics.so
- %{_libdir}/libBulletSoftBody.so
- %{_libdir}/libLinearMath.so
- %{_libdir}/libBulletInverseDynamics.so
- %{_libdir}/libBullet2FileLoader.so
- %{_libdir}/pkgconfig/bullet.pc
- %{_libdir}/cmake/%{name}
- %files devel-doc
- %doc docs/Bullet_User_Manual.pdf
- %doc docs/BulletQuickstart.pdf
- %doc docs/GPU_rigidbody_using_OpenCL.pdf
- #%doc html
- %changelog
- * Sat Aug 19 2017 asdf asdf <asdf@asdf.com> - 2.86.1-1
- - rebuilt myself
- * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.83-3
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
- * Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.83-2
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
- * Mon Jan 04 2016 Rich Mattes <richmattes@gmail.com> - 2.83-1
- - Update to release 2.83
- * Sat Oct 03 2015 François Cami <fcami@fedoraproject.org> - 2.82-7
- - Move Bullet_User_Manual.pdf to a separate devel-doc package.
- * Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.82-6
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
- * Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.82-5
- - Rebuilt for GCC 5 C++11 ABI change
- * Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.82-4
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
- * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.82-3
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
- * Fri May 16 2014 Rich Mattes <richmattes@gmail.com> - 2.82-2
- - Install all of the bullet extras (rhbz#1097452)
- - Spec file cleanup
- * Sun Feb 09 2014 Rich Mattes <richmattes@gmail.com> - 2.82-1
- - Update to version 2.82
- * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.81-3
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
- * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.81-2
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
- * Sat Oct 13 2012 Rich Mattes <richmattes@gmail.com> - 2.81-1
- - Update to version 2.81
- * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.80-2
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
- * Fri May 25 2012 Rich Mattes <richmattes@gmail.com> - 2.80-1
- - Update to version 2.80
- * Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.79-2
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
- * Sun Dec 18 2011 Rich Mattes <richmattes@gmail.com> - 2.79-1
- - Update to version 2.79
- * Wed May 11 2011 Rich Mattes <richmattes@gmail.com> - 2.78-1
- - Update to version 2.78
- - Remove upstreamed patches
- * Sat Feb 19 2011 Rich Mattes <richmattes@gmail.com> - 2.77-4
- - Fix gcc 4.6 build error
- * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.77-4
- - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
- * Wed Oct 20 2010 Dan Horák <dan[at]danny.cz> - 2.77-3
- - add extras subpackage with additional libs
- - install headers into /usr/include/bullet
- * Wed Sep 29 2010 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.77-2
- - Added LibSuffix patch
- * Wed Sep 29 2010 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.77-1
- - Updatet to version 2.77
- - Droped all patches because they are all in upstream
- * Sat Aug 21 2010 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.75-4
- - Hope fix (#599495)
- * Sat Aug 21 2010 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.75-3
- - Hope fix (#619885)
- * Tue Mar 09 2010 Rex Dieter <rdieter@fedoraproject.org> - 2.75-2
- - pkgconfig file not installed (#549051)
- * Sat Oct 03 2009 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.75-1
- - Updatet to new upstream version 2.75
- - Updatet the patch file to work agian
- * Thu Jun 25 2009 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.74-1
- - Updatet to version 2.74
- - Updatet the patch file to work agian
- * Sun Feb 22 2009 Bruno Mahé <bruno at gnoll.org> - 2.73-5
- - Shortened the description
- - Fix directory ownership for directories BulletCollision and BulletDynamics
- - Convert ChangeLog to UTF-8
- - chmod generate-tarball.sh to 644
- * Fri Feb 20 2009 Bruno Mahé <bruno at gnoll.org> - 2.73-4
- - Remove gcc-g++ in BuildRequires
- - Add option -DCMAKE_BUILD_TYPE=NONE to %%cmake. This will make CMake using default compiler flags
- - Use %% instead of single % in %%changelog to prevent macros from being expanded
- - Specify we are not shipping pristine source because of some non-free parts
- - Change licence to "zlib and MIT and BSD"
- - Make include directory being owned by this package
- - Remove duplicate documents
- - Convert spec file to UTF8
- - Set some files permission to 644
- * Sun Feb 15 2009 Bruno Mahé <bruno at gnoll.org> - 2.73-3
- - Remove non-free directories Demos/, Extras/ and Glut/ from the source
- * Sun Jan 18 2009 Bruno Mahé <bruno at gnoll.org> - 2.73-2
- - Add "rm -rf $RPM_BUILD_ROOT" to the install target
- - Moved unversioned shared libraries (e.g. libfoo.so) to the -devel package
- - Update %%post and %%postrun
- - Change %%description
- - Reduce length of %%summary
- - Changed %%group to Development/Libraries
- - Changed Zlib licence to lowercase zlib
- - %%description kept below 80 characters wide
- * Sat Dec 13 2008 Bruno Mahé <bruno at gnoll.org> - 2.73-1
- - Initial build.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement