%global __cmake_in_source_build 1 Name: Box2D Version: 2.4.1 Release: 1 Summary: A 2D Physics Engine for Games License: zlib URL: http://box2d.org/ Source0: https://github.com/erincatto/box2d/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc gcc-c++ cmake make %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} %description Box2D is an open source C++ engine for simulating rigid bodies in 2D. Box2D is developed by Erin Catto and has the zlib license. While the zlib license does not require acknowledgement, we encourage you to give credit to Box2D in your product. %description devel Box2D is an open source C++ engine for simulating rigid bodies in 2D. Box2D is developed by Erin Catto and has the zlib license. While the zlib license does not require acknowledgement, we encourage you to give credit to Box2D in your product. These are the development files. %prep %setup -qn box2d-%{version} rm -r extern %build %cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON -DBOX2D_BUILD_TESTBED=OFF -DBOX2D_BUILD_UNIT_TESTS=OFF . %make_build %install %make_install %ldconfig_scriptlets %files %license LICENSE %{_libdir}/*.so.2* %files devel %doc README.md docs/ %{_libdir}/*.so %{_includedir}/box2d %{_libdir}/cmake/box2d/*.cmake %changelog * Wed Sep 06 2023 Darssin <2020303249@mail.nwpu.edu.cn> - 2.4.1-1 - Package init