diff options
author | CoprDistGit <infra@openeuler.org> | 2023-09-13 10:28:07 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-09-13 10:28:07 +0000 |
commit | bd30d056d10bb07b987a23bae857f39a97c9e382 (patch) | |
tree | fe23e3c95f7d775184d22cf8ab1515affba1bd03 /Box2D.spec | |
parent | b04ef6a9adb3e1ede6cc1a6f51acd1da2d34db7a (diff) |
automatic import of Box2Dopeneuler23.03
Diffstat (limited to 'Box2D.spec')
-rw-r--r-- | Box2D.spec | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/Box2D.spec b/Box2D.spec new file mode 100644 index 0000000..d5e2147 --- /dev/null +++ b/Box2D.spec @@ -0,0 +1,55 @@ +%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 |