Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/Box2D.git#4f458bd23c4c528ce8613b31853461541d020c54
This commit is contained in:
DistroBaker 2021-02-22 12:35:42 +01:00
parent 9b21f8f4f7
commit cb7bd4993c

View File

@ -1,7 +1,7 @@
%global __cmake_in_source_build 1
Name: Box2D
Version: 2.4.1
Release: 2%{?dist}
Release: 5%{?dist}
Summary: A 2D Physics Engine for Games
License: zlib
@ -9,7 +9,7 @@ URL: http://box2d.org/
Source0: https://github.com/erincatto/box2d/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: cmake libXi-devel glew-devel glfw-devel
BuildRequires: cmake
BuildRequires: make
%package devel
@ -32,14 +32,14 @@ These are the development files.
%prep
%setup -qn box2d-%{version}
rm -rf glew glfw
rm -r extern
%build
%cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON .
make
%cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON -DBOX2D_BUILD_TESTBED=OFF -DBOX2D_BUILD_UNIT_TESTS=OFF .
%cmake_build
%install
make install DESTDIR=%{buildroot}
%make_install
%ldconfig_scriptlets
@ -54,6 +54,17 @@ make install DESTDIR=%{buildroot}
%{_libdir}/cmake/box2d/*.cmake
%changelog
* Wed Feb 17 2021 Caolán McNamara <caolanm@redhat.com> - 2.4.1-5
- disable building BOX2D_BUILD_UNIT_TESTS due to "SIGSTKSZ ... no
longer constant on Linux ... redefined to sysconf(_SC_SIGSTKSZ)"
https://github.com/bminor/glibc/blob/master/NEWS causing build failure
* 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
- Use make macros
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild