blob: d5e2147895900fef7e15b539bd4d5a7c06dd85ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
|