diff --git a/chipmunk-4.1.0-dsolink.patch b/chipmunk-4.1.0-dsolink.patch new file mode 100644 index 0000000..70d9e89 --- /dev/null +++ b/chipmunk-4.1.0-dsolink.patch @@ -0,0 +1,11 @@ +--- Demo/CMakeLists.txt~ 2010-07-01 13:24:34.000000000 -0500 ++++ Demo/CMakeLists.txt 2010-07-01 13:27:23.044037625 -0500 +@@ -47,7 +47,7 @@ + SET(CurrentExe "../chipmunk_demos") + ADD_EXECUTABLE(${CurrentExe} Demo1.c Demo2.c Demo3.c Demo4.c Demo5.c Demo6.c Demo7.c main.c) + +-TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries} chipmunk_static) ++TARGET_LINK_LIBRARIES(${CurrentExe} ${Libraries} chipmunk_static -lm) + + #the following line is an example of how to add a test to your project. + #Testname is the title for this particular test. ExecutableToRun is the diff --git a/chipmunk.spec b/chipmunk.spec index 31dc975..d419348 100644 --- a/chipmunk.spec +++ b/chipmunk.spec @@ -1,7 +1,7 @@ %{!?ruby_sitearch: %define ruby_sitearch %(ruby -rrbconfig -e "puts Config::CONFIG['sitearchdir']")} Name: chipmunk Version: 4.1.0 -Release: 8%{?dist} +Release: 9%{?dist} Summary: Physics engine for 2D games Group: Development/Libraries @@ -9,6 +9,7 @@ License: MIT URL: http://code.google.com/p/chipmunk-physics/ Source0: http://files.slembcke.net/chipmunk/release/Chipmunk-%{version}.tgz Patch0: chipmunk-4.1.0-cmake.patch +Patch1: chipmunk-4.1.0-dsolink.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: cmake @@ -58,6 +59,7 @@ You'll also need to install the chipmunk package. %prep %setup -qn Chipmunk-%{version} %patch0 -p1 +%patch1 -p0 %build %if "%{?_lib}" == "lib64" @@ -108,6 +110,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Mon Jun 28 2010 Jon Ciesla - 4.1.0-9 +- Fix FTBFS, BZ 599950. + * Thu Oct 1 2009 Hans de Goede - 4.1.0-8 - Fix FTBFS