]> git.pld-linux.org Git - packages/box2d.git/blob - box2d.spec
- pl, fixed Group
[packages/box2d.git] / box2d.spec
1 Summary:        Box2D - 2D physics engine for games
2 Summary(pl.UTF-8):      Box2D - silnik fizyki 2D dla gier
3 Name:           box2d
4 Version:        2.4.1
5 Release:        1
6 License:        MIT
7 Group:          Libraries
8 #Source0Download: https://github.com/erincatto/box2d/releases
9 Source0:        https://github.com/erincatto/box2d/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  00d2c9c66da494aed947e03bff73e080
11 URL:            https://box2d.org/
12 BuildRequires:  cmake >= 3.8
13 BuildRequires:  rpmbuild(macros) >= 1.605
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Box2D is a 2D physics engine for games.
18
19 %description -l pl.UTF-8
20 Box2D to silnik fizyki 2D dla gier.
21
22 %package devel
23 Summary:        Header files for box2d library
24 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki box2d
25 Group:          Development/Libraries
26 Requires:       %{name} = %{version}-%{release}
27
28 %description devel
29 Header files for box2d library.
30
31 %description devel -l pl.UTF-8
32 Pliki nagłówkowe biblioteki box2d.
33
34 %prep
35 %setup -q
36
37 %build
38 %cmake -B build \
39         -DBOX2D_BUILD_UNIT_TESTS:BOOL=OFF \
40         -DBOX2D_BUILD_TESTBED:BOOL=OFF
41 %{__make} -C build
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} -C build install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post   -p /sbin/ldconfig
53 %postun -p /sbin/ldconfig
54
55 %files
56 %defattr(644,root,root,755)
57 %doc CHANGELOG.md README.md
58 %attr(755,root,root) %{_libdir}/libbox2d.so.*.*.*
59 %attr(755,root,root) %ghost %{_libdir}/libbox2d.so.2
60
61 %files devel
62 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_libdir}/libbox2d.so
64 %{_libdir}/cmake/box2d
65 %{_includedir}/box2d
This page took 0.160282 seconds and 4 git commands to generate.