9eb86ee
%global _docdir_fmt %{name}
7bcd11f
51a5ae0
Name: bullet
a113b84
Version: 2.87
0961163
Release: 10%{?dist}
51a5ae0
Summary: 3D Collision Detection and Rigid Body Dynamics Library
9eb86ee
License: zlib and MIT and BSD and Boost
51a5ae0
URL: http://www.bulletphysics.com
51a5ae0
9eb86ee
Source0: %{name}3-%{version}-free.tar.xz
51a5ae0
# bullet contains non-free code that we cannot ship.  Therefore we use
51a5ae0
# this script to remove the non-free code before shipping it.
51a5ae0
# Download the upstream tarball and invoke this script while in the
51a5ae0
# tarball's directory:
a113b84
# ./generate-tarball.sh 2.87
51a5ae0
Source1: generate-tarball.sh
51a5ae0
a113b84
# Build against system tinyxml
a113b84
Patch0: %{name}-2.87-tinyxml.patch
a113b84
Igor Gnatenko c21c4d3
BuildRequires:  gcc
Igor Gnatenko c21c4d3
BuildRequires:  gcc-c++
f7576b9
BuildRequires: cmake
9eb86ee
BuildRequires: dos2unix
7590921
BuildRequires: doxygen
f7576b9
BuildRequires: freeglut-devel
f7576b9
BuildRequires: libICE-devel
fc8278d
BuildRequires: tinyxml-devel
51a5ae0
51a5ae0
%description
51a5ae0
Bullet is a 3D Collision Detection and Rigid Body Dynamics Library for games
51a5ae0
and animation.
51a5ae0
f7576b9
51a5ae0
%package devel
51a5ae0
Summary: Development files for %{name}
1d4ac66
Requires: %{name}%{?_isa} = %{version}-%{release}
1d4ac66
Requires: cmake
51a5ae0
%description devel
51a5ae0
Development headers and libraries for %{name}.
51a5ae0
51a5ae0
9cefbf5
%package devel-doc
9cefbf5
Summary: Documentation for developing programs that will use %{name}-devel
9cefbf5
License: zlib and LGPLv2+
9cefbf5
Requires: %{name}-extras%{?_isa} = %{version}-%{release}
9cefbf5
9cefbf5
%description devel-doc
9cefbf5
Documentation (PDF) for developing programs that will use %{name}-devel.
9cefbf5
9cefbf5
f7576b9
%package extras
f7576b9
Summary: Extra libraries for %{name}
f7576b9
License: zlib and LGPLv2+
f7576b9
f7576b9
%description extras
f7576b9
Extra libraries for %{name}.
f7576b9
f7576b9
f7576b9
%package extras-devel
f7576b9
Summary: Development files for %{name} extras
f7576b9
License: zlib and LGPLv2+
1d4ac66
Requires: %{name}-extras%{?_isa} = %{version}-%{release}
1d4ac66
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
f7576b9
f7576b9
%description extras-devel
f7576b9
Development headers and libraries for %{name} extra libraries.
f7576b9
f7576b9
51a5ae0
%prep
9eb86ee
%setup -q -n %{name}3-%{version}
a113b84
%patch0 -p0 -b .tinyxml
a113b84
# The examples directory isn't needed for building
a113b84
rm -r examples
a113b84
a113b84
# Fix the pkg-config module so it doesn't list the prefix twice in the include install dir.
a240091
sed -i 's|-I@CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@|-I@INCLUDE_INSTALL_DIR@|' bullet.pc.cmake
a113b84
a113b84
# BulletRobotics and obj2sdf require several bundled libs not yet packaged in the distribution
a113b84
sed -i 's|BulletRobotics||' Extras/CMakeLists.txt
a113b84
sed -i 's|obj2sdf||' Extras/CMakeLists.txt
a113b84
a113b84
# Fix up file permissions and formats
a113b84
dos2unix README.md
9eb86ee
chmod -x src/BulletDynamics/ConstraintSolver/btSliderConstraint.h
9eb86ee
chmod -x src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp
f7576b9
51a5ae0
%build
10e5982
%cmake \
a113b84
  -DCLSOCKET_DEP_ONLY=ON \
9eb86ee
  -DBUILD_BULLET2_DEMOS=OFF \
0e6d018
  -DBUILD_EXTRAS=ON \
a113b84
  -DBUILD_OPENGL_DEMOS=OFF \
a113b84
  -DBUILD_CPU_DEMOS=OFF \
a113b84
  -DBUILD_UNIT_TESTS=OFF \
0e6d018
  -DINSTALL_EXTRA_LIBS=ON \
a113b84
  -DCMAKE_BUILD_TYPE=RelWithDebInfo \
a240091
  -DINCLUDE_INSTALL_DIR=%{_includedir}/bullet/
0e6d018
10e5982
%cmake_build
f7576b9
9eb86ee
doxygen Doxyfile
9eb86ee
51a5ae0
%install
10e5982
%cmake_install
51a5ae0
51a5ae0
c683bf3
%ldconfig_scriptlets
51a5ae0
c683bf3
%ldconfig_scriptlets extras
f7576b9
51a5ae0
51a5ae0
%files
9eb86ee
%license LICENSE.txt
9eb86ee
%doc README.md AUTHORS.txt VERSION
9eb86ee
%{_libdir}/libBullet3Collision.so.*
9eb86ee
%{_libdir}/libBullet3Common.so.*
9eb86ee
%{_libdir}/libBullet3Dynamics.so.*
9eb86ee
%{_libdir}/libBullet3Geometry.so.*
9eb86ee
%{_libdir}/libBullet3OpenCL_clew.so.*
0e6d018
%{_libdir}/libBulletCollision.so.*
0e6d018
%{_libdir}/libBulletDynamics.so.*
a113b84
%{_libdir}/libBulletInverseDynamics.so.*
0e6d018
%{_libdir}/libBulletSoftBody.so.*
0e6d018
%{_libdir}/libLinearMath.so.*
51a5ae0
51a5ae0
%files devel
0e6d018
%dir %{_includedir}/%{name}
0e6d018
%{_includedir}/%{name}/*.h
9eb86ee
%{_includedir}/%{name}/Bullet3Collision
9eb86ee
%{_includedir}/%{name}/Bullet3Common
9eb86ee
%{_includedir}/%{name}/Bullet3Dynamics
9eb86ee
%{_includedir}/%{name}/Bullet3Geometry
9eb86ee
%{_includedir}/%{name}/Bullet3OpenCL
0e6d018
%{_includedir}/%{name}/BulletCollision
0e6d018
%{_includedir}/%{name}/BulletDynamics
a113b84
%{_includedir}/%{name}/BulletInverseDynamics
0e6d018
%{_includedir}/%{name}/BulletSoftBody
a113b84
%{_includedir}/%{name}/InverseDynamics
0e6d018
%{_includedir}/%{name}/LinearMath
9eb86ee
%{_libdir}/libBullet3Collision.so
9eb86ee
%{_libdir}/libBullet3Common.so
9eb86ee
%{_libdir}/libBullet3Dynamics.so
9eb86ee
%{_libdir}/libBullet3Geometry.so
9eb86ee
%{_libdir}/libBullet3OpenCL_clew.so
0e6d018
%{_libdir}/libBulletCollision.so
0e6d018
%{_libdir}/libBulletDynamics.so
a113b84
%{_libdir}/libBulletInverseDynamics.so
0e6d018
%{_libdir}/libBulletSoftBody.so
0e6d018
%{_libdir}/libLinearMath.so
a5d1814
%{_libdir}/pkgconfig/bullet.pc
1d4ac66
%{_libdir}/cmake/%{name}
51a5ae0
9cefbf5
%files devel-doc
9eb86ee
%doc docs/Bullet_User_Manual.pdf
9eb86ee
%doc docs/BulletQuickstart.pdf
9eb86ee
%doc docs/GPU_rigidbody_using_OpenCL.pdf
9eb86ee
%doc html
9cefbf5
f7576b9
%files extras
f7576b9
%{_libdir}/libConvexDecomposition.so.*
0e6d018
%{_libdir}/libGIMPACTUtils.so.*
0e6d018
%{_libdir}/libHACD.so.*
0e6d018
%{_libdir}/libBulletFileLoader.so.*
9eb86ee
%{_libdir}/libBullet2FileLoader.so.*
a113b84
%{_libdir}/libBulletInverseDynamicsUtils.so.*
0e6d018
%{_libdir}/libBulletWorldImporter.so.*
0e6d018
%{_libdir}/libBulletXmlWorldImporter.so.*
f7576b9
f7576b9
%files extras-devel
0e6d018
%{_includedir}/%{name}/ConvexDecomposition
0e6d018
%{_includedir}/%{name}/GIMPACTUtils
0e6d018
%{_includedir}/%{name}/HACD
0e6d018
%{_includedir}/%{name}/BulletFileLoader
9eb86ee
%{_includedir}/%{name}/Bullet2FileLoader
0e6d018
%{_includedir}/%{name}/BulletWorldImporter
0e6d018
%{_includedir}/%{name}/BulletXmlWorldImporter
f7576b9
%{_libdir}/libConvexDecomposition.so
0e6d018
%{_libdir}/libGIMPACTUtils.so
0e6d018
%{_libdir}/libHACD.so
0e6d018
%{_libdir}/libBulletFileLoader.so
9eb86ee
%{_libdir}/libBullet2FileLoader.so
a113b84
%{_libdir}/libBulletInverseDynamicsUtils.so
0e6d018
%{_libdir}/libBulletWorldImporter.so
0e6d018
%{_libdir}/libBulletXmlWorldImporter.so
51a5ae0
51a5ae0
%changelog
0961163
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.87-10
0961163
- Second attempt - Rebuilt for
0961163
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0961163
361338d
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.87-9
361338d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
361338d
400a88e
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.87-8
400a88e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
400a88e
042f6ba
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.87-7
042f6ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
042f6ba
00d1d31
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.87-6
00d1d31
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
00d1d31
3bee264
* Mon Aug 27 2018 Nicolas Chauvet <kwizart@gmail.com> - 2.87-5
3bee264
- Spec clean-up
3bee264
0aa3f55
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.87-4
0aa3f55
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0aa3f55
33b0f14
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 2.87-3
33b0f14
- Rebuild to fix GCC 8 mis-compilation
33b0f14
  See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
33b0f14
f43e55d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.87-2
f43e55d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f43e55d
a113b84
* Mon Dec 18 2017 Rich Mattes <richmattes@gmail.com> - 2.87-1
a113b84
- Update to release 2.87 (rhbz#1442838)
a113b84
61eafb3
* Sun Aug 06 2017 Björn Esser <besser82@fedoraproject.org> - 2.83-6
61eafb3
- Rebuilt for AutoReq cmake-filesystem
61eafb3
88fd4e7
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.83-5
88fd4e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
88fd4e7
45e110a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.83-4
45e110a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
45e110a
aeb2246
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.83-3
aeb2246
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aeb2246
c6f0870
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.83-2
c6f0870
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
c6f0870
9eb86ee
* Mon Jan 04 2016 Rich Mattes <richmattes@gmail.com> - 2.83-1
9eb86ee
- Update to release 2.83
9eb86ee
9cefbf5
* Sat Oct 03 2015 François Cami <fcami@fedoraproject.org> - 2.82-7
9cefbf5
- Move Bullet_User_Manual.pdf to a separate devel-doc package.
9cefbf5
423d63a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.82-6
423d63a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
423d63a
bd1f212
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 2.82-5
bd1f212
- Rebuilt for GCC 5 C++11 ABI change
bd1f212
37aff58
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.82-4
37aff58
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
37aff58
41ac8cc
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.82-3
41ac8cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
41ac8cc
0e6d018
* Fri May 16 2014 Rich Mattes <richmattes@gmail.com> - 2.82-2
0e6d018
- Install all of the bullet extras (rhbz#1097452)
0e6d018
- Spec file cleanup
0e6d018
1d4ac66
* Sun Feb 09 2014 Rich Mattes <richmattes@gmail.com> - 2.82-1
1d4ac66
- Update to version 2.82
1d4ac66
f70c27e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.81-3
f70c27e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f70c27e
8419c82
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.81-2
8419c82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8419c82
7bcd11f
* Sat Oct 13 2012 Rich Mattes <richmattes@gmail.com> - 2.81-1
7bcd11f
- Update to version 2.81
7bcd11f
8803f0c
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.80-2
8803f0c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8803f0c
dc7e425
* Fri May 25 2012 Rich Mattes <richmattes@gmail.com> - 2.80-1
dc7e425
- Update to version 2.80
dc7e425
a3a0ded
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.79-2
a3a0ded
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a3a0ded
58d14a0
* Sun Dec 18 2011 Rich Mattes <richmattes@gmail.com> - 2.79-1
58d14a0
- Update to version 2.79
58d14a0
db3c063
* Wed May 11 2011 Rich Mattes <richmattes@gmail.com> - 2.78-1
db3c063
- Update to version 2.78
db3c063
- Remove upstreamed patches
db3c063
a4c1957
* Sat Feb 19 2011 Rich Mattes <richmattes@gmail.com> - 2.77-4
a4c1957
- Fix gcc 4.6 build error
a4c1957
f610892
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.77-4
f610892
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f610892
0857f9c
* Wed Oct 20 2010 Dan Horák <dan[at]danny.cz> - 2.77-3
0857f9c
- add extras subpackage with additional libs
0857f9c
- install headers into /usr/include/bullet
0857f9c
LinuxDonald e2d0893
* Wed Sep 29 2010 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.77-2
LinuxDonald e2d0893
- Added LibSuffix patch
LinuxDonald e2d0893
LinuxDonald d60e4d8
* Wed Sep 29 2010 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.77-1
LinuxDonald fc04712
- Updatet to version 2.77
LinuxDonald fc04712
- Droped all patches because they are all in upstream
LinuxDonald fc04712
LinuxDonald a6bbb41
* Sat Aug 21 2010 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.75-4
LinuxDonald a6bbb41
- Hope fix (#599495)
LinuxDonald a6bbb41
LinuxDonald a6bbb41
* Sat Aug 21 2010 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.75-3
LinuxDonald 5d0ed14
- Hope fix (#619885)
LinuxDonald 5d0ed14
a5d1814
* Tue Mar 09 2010 Rex Dieter <rdieter@fedoraproject.org> - 2.75-2
a5d1814
- pkgconfig file not installed (#549051)
76a08a3
bfe1989
* Sat Oct 03 2009 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.75-1
bfe1989
- Updatet to new upstream version 2.75
bfe1989
- Updatet the patch file to work agian
51a5ae0
51a5ae0
* Thu Jun 25 2009 Thomas Kowaliczek <linuxdonald@linuxdonald.de> - 2.74-1
51a5ae0
- Updatet to version 2.74
51a5ae0
- Updatet the patch file to work agian
51a5ae0
51a5ae0
* Sun Feb 22 2009 Bruno Mahé <bruno at gnoll.org> - 2.73-5
51a5ae0
- Shortened the description
51a5ae0
- Fix directory ownership for directories BulletCollision and BulletDynamics
51a5ae0
- Convert ChangeLog to UTF-8
51a5ae0
- chmod generate-tarball.sh to 644
51a5ae0
51a5ae0
* Fri Feb 20 2009 Bruno Mahé <bruno at gnoll.org> - 2.73-4
51a5ae0
- Remove gcc-g++ in BuildRequires
51a5ae0
- Add option -DCMAKE_BUILD_TYPE=NONE to %%cmake. This will make CMake using default compiler flags
51a5ae0
- Use %% instead of single % in %%changelog to prevent macros from being expanded
51a5ae0
- Specify we are not shipping pristine source because of some non-free parts
51a5ae0
- Change licence to "zlib and MIT and BSD"
51a5ae0
- Make include directory being owned by this package
51a5ae0
- Remove duplicate documents
51a5ae0
- Convert spec file to UTF8
51a5ae0
- Set some files permission to 644
51a5ae0
51a5ae0
* Sun Feb 15 2009 Bruno Mahé <bruno at gnoll.org> - 2.73-3
51a5ae0
- Remove non-free directories Demos/, Extras/ and Glut/ from the source
51a5ae0
51a5ae0
* Sun Jan 18 2009 Bruno Mahé <bruno at gnoll.org> - 2.73-2
51a5ae0
- Add "rm -rf $RPM_BUILD_ROOT" to the install target
51a5ae0
- Moved unversioned shared libraries (e.g. libfoo.so) to the -devel package
51a5ae0
- Update %%post and %%postrun
51a5ae0
- Change %%description
51a5ae0
- Reduce length of %%summary
51a5ae0
- Changed %%group to Development/Libraries
51a5ae0
- Changed Zlib licence to lowercase zlib
51a5ae0
- %%description kept below 80 characters wide
51a5ae0
51a5ae0
* Sat Dec 13 2008 Bruno Mahé <bruno at gnoll.org> - 2.73-1
51a5ae0
- Initial build.