From 5c2c8a8ec7c17b642fd5d5c14d1ce1e3ce905b61 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Aug 04 2020 13:49:49 +0000 Subject: Fix FTBFS. --- diff --git a/chipmunk.spec b/chipmunk.spec index 952dc5f..89600a0 100644 --- a/chipmunk.spec +++ b/chipmunk.spec @@ -1,11 +1,13 @@ +%global __cmake_in_source_build 1 Name: chipmunk Version: 7.0.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Physics engine for 2D games License: MIT URL: https://github.com/slembcke/Chipmunk2D/ Source0: https://github.com/slembcke/Chipmunk2D/archive/Chipmunk-%{version}.tar.gz +Patch0: sysctl.patch BuildRequires: gcc BuildRequires: gcc-c++ @@ -40,6 +42,7 @@ chipmunk library functions. You'll also need to install the chipmunk package. %prep %setup -qn Chipmunk2D-Chipmunk-%{version} +%patch0 -p0 %build %{cmake} @@ -63,6 +66,9 @@ chipmunk library functions. You'll also need to install the chipmunk package. %changelog +* Tue Aug 04 2020 Gwyn Ciesla - 7.0.3-5 +- Fix FTBFS. + * Sat Aug 01 2020 Fedora Release Engineering - 7.0.3-4 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild diff --git a/sysctl.patch b/sysctl.patch new file mode 100644 index 0000000..6244103 --- /dev/null +++ b/sysctl.patch @@ -0,0 +1,11 @@ +--- src/cpHastySpace.c~ 2019-06-07 10:59:45.000000000 -0500 ++++ src/cpHastySpace.c 2020-08-04 08:46:59.642129785 -0500 +@@ -8,7 +8,7 @@ + + //#include + #ifndef _WIN32 +-#include ++//#include + #include + #else + #ifndef WIN32_LEAN_AND_MEAN