[puzzles] Link with math library

Bruno Wolff III bruno at fedoraproject.org
Sun Jan 29 14:51:10 UTC 2012


commit 151783c27d67e759c8f20a690c1a14459bc56f98
Author: Bruno Wolff III <bruno at wolff.to>
Date:   Sun Jan 29 08:46:59 2012 -0600

    Link with math library
    
    sqrt is no longer being inlined and we need to link in the math
    library.

 puzzles-math.patch |   13 +++++++++++++
 puzzles.spec       |    7 ++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/puzzles-math.patch b/puzzles-math.patch
new file mode 100644
index 0000000..f99c0a6
--- /dev/null
+++ b/puzzles-math.patch
@@ -0,0 +1,13 @@
+--- Makefile.orig	2012-01-29 08:43:26.624846241 -0600
++++ Makefile	2012-01-29 08:44:41.058306357 -0600
+@@ -15,8 +15,8 @@
+ 
+ CFLAGS := -O2 -Wall -Werror -ansi -pedantic -g -I./ -Iicons/ `$(GTK_CONFIG) \
+ 		--cflags` $(CFLAGS)
+-XLIBS = `$(GTK_CONFIG) --libs`
+-ULIBS =#
++XLIBS = $(LDFLAGS) -lm `$(GTK_CONFIG) --libs`
++ULIBS = $(LDFLAGS) -lm
+ INSTALL=install
+ INSTALL_PROGRAM=$(INSTALL)
+ INSTALL_DATA=$(INSTALL)
diff --git a/puzzles.spec b/puzzles.spec
index 76fe8bd..cc73689 100644
--- a/puzzles.spec
+++ b/puzzles.spec
@@ -1,6 +1,6 @@
 Name: puzzles
 Version: 9023
-Release: 4%{?dist}
+Release: 5%{?dist}
 Summary: A collection of one-player puzzle games
 
 Group: Amusements/Games
@@ -8,6 +8,7 @@ License: MIT
 URL: http://www.chiark.greenend.org.uk/~sgtatham/puzzles/
 Source0: http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-r%{version}.tar.gz
 Source1: template.desktop
+Patch0:  puzzles-math.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: gtk2-devel, perl, desktop-file-utils
@@ -19,6 +20,7 @@ break from whatever else you were doing.
 
 %prep
 %setup -q -n puzzles-r%{version}
+%patch0
 # uses the fedora command line instead of the one hardcoded in the makefile
 # -g is the last option that is not application specific. 
 # TODO: THIS IS UGLY, NEW VERSIONS COULD MAKE THIS STOP WORKING
@@ -68,6 +70,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sun Jan 29 2012 Bruno Wolff III <bruno at wolff.to> - 9023-5
+- Link with math library
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 9023-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list