reduce unnecessary dependencies

f41
Caolán McNamara 4 years ago
parent 80f49a5980
commit 50004b9171

@ -1,7 +1,7 @@
%global __cmake_in_source_build 1 %global __cmake_in_source_build 1
Name: Box2D Name: Box2D
Version: 2.4.1 Version: 2.4.1
Release: 3%{?dist} Release: 4%{?dist}
Summary: A 2D Physics Engine for Games Summary: A 2D Physics Engine for Games
License: zlib License: zlib
@ -9,7 +9,7 @@ URL: http://box2d.org/
Source0: https://github.com/erincatto/box2d/archive/v%{version}/%{name}-%{version}.tar.gz Source0: https://github.com/erincatto/box2d/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: cmake libXi-devel glew-devel glfw-devel BuildRequires: cmake
BuildRequires: make BuildRequires: make
%package devel %package devel
@ -32,9 +32,10 @@ These are the development files.
%prep %prep
%setup -qn box2d-%{version} %setup -qn box2d-%{version}
rm -r extern
%build %build
%cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON . %cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON -DBOX2D_BUILD_TESTBED=OFF .
%cmake_build %cmake_build
%install %install
@ -53,6 +54,9 @@ These are the development files.
%{_libdir}/cmake/box2d/*.cmake %{_libdir}/cmake/box2d/*.cmake
%changelog %changelog
* Wed Feb 17 2021 Caolán McNamara <caolanm@redhat.com> - 2.4.1-4
- reduce unnecessary dependencies
* Wed Feb 10 2021 Timm Bäder <tbaeder@redhat.com> - 2.4.1-3 * Wed Feb 10 2021 Timm Bäder <tbaeder@redhat.com> - 2.4.1-3
- Use make macros - Use make macros

Loading…
Cancel
Save