%global git_date 20240409 %global git_hash e9c461b0a %global git_ver 3.25 %global rel 3 %global dir_name %{name}3 %global src_name %{dir_name}-%{git_date}-%{git_hash}.tar.xz %global _docdir_fmt %{name} Name: bullet Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: 3D Collision Detection and Rigid Body Dynamics Library License: zlib and MIT and BSD and Boost URL: https://github.com/bulletphysics/bullet3 Source0: %{url}/%{src_name} BuildRequires: gcc make BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: dos2unix BuildRequires: doxygen BuildRequires: freeglut-devel BuildRequires: libICE-devel BuildRequires: tinyxml2-devel BuildRequires: libglvnd-devel %description Bullet is a 3D Collision Detection and Rigid Body Dynamics Library for games and animation. %package devel Summary: Development files for %{name} 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 License: zlib and LGPLv2+ Requires: %{name}-extras%{?_isa} = %{version}-%{release} %description devel-doc Documentation (PDF) for developing programs that will use %{name}-devel. %package extras Summary: Extra libraries for %{name} License: zlib and LGPLv2+ %description extras Extra libraries for %{name}. %package extras-devel Summary: Development files for %{name} extras License: zlib and LGPLv2+ Requires: %{name}-extras%{?_isa} = %{version}-%{release} Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description extras-devel Development headers and libraries for %{name} extra libraries. %prep %autosetup -n %{dir_name} %build %cmake \ -DCLSOCKET_DEP_ONLY=ON \ -DBUILD_BULLET2_DEMOS=OFF \ -DBUILD_EXTRAS=OFF \ -DBUILD_OPENGL_DEMOS=OFF \ -DBUILD_CPU_DEMOS=OFF \ -DBUILD_UNIT_TESTS=OFF \ -DINSTALL_EXTRA_LIBS=ON \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DOpenGL_GL_PREFERENCE=GLVND \ -DUSE_DOUBLE_PRECISION=ON \ -DBULLET2_MULTITHREADING=ON \ -DBULLET2_USE_OPEN_MP_MULTITHREADING=ON \ -DINCLUDE_INSTALL_DIR=%{_includedir}/bullet/ %cmake_build doxygen Doxyfile %install %cmake_install %ldconfig_scriptlets %ldconfig_scriptlets extras %files %license LICENSE.txt %doc README.md AUTHORS.txt VERSION %{_libdir}/*.so.* %files devel %dir %{_includedir}/%{name} %{_includedir}/%{name}/* %{_libdir}/*.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 %autochangelog