[berusky2] build patch

Martin Stransky stransky at fedoraproject.org
Wed Mar 28 22:10:49 UTC 2012


commit b373cee2af1afab2f0ac542fe2a535efb14768bf
Author: Martin Stransky <stransky at anakreon.cz>
Date:   Thu Mar 29 00:10:40 2012 +0200

    build patch

 berusky2-0.7-glut.patch |   12 ++++++++++++
 berusky2.spec           |    2 ++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/berusky2-0.7-glut.patch b/berusky2-0.7-glut.patch
new file mode 100644
index 0000000..80533aa
--- /dev/null
+++ b/berusky2-0.7-glut.patch
@@ -0,0 +1,12 @@
+diff -up berusky2-0.7/src/tmp/alut_test.cpp.glut berusky2-0.7/src/tmp/alut_test.cpp
+--- berusky2-0.7/src/tmp/alut_test.cpp.glut	2012-03-28 22:16:30.000000000 +0200
++++ berusky2-0.7/src/tmp/alut_test.cpp	2012-03-29 00:10:02.367429938 +0200
+@@ -26,7 +26,7 @@
+  *
+  */
+ #include <stdio.h>
+-#include <GL/freeglut.h>
++#include <stdlib.h>
+ #include <AL/alut.h>
+ #include "compat_mini.h"
+ 
diff --git a/berusky2.spec b/berusky2.spec
index 5beecdf..686156d 100644
--- a/berusky2.spec
+++ b/berusky2.spec
@@ -6,6 +6,7 @@ Summary:        Sokoban clone
 Group:          Amusements/Games
 Source:         http://www.anakreon.cz/download/%{name}-%{version}.tar.gz
 URL:            http://www.anakreon.cz/en/Berusky2.htm
+Patch0:         berusky2-0.7-glut.patch
 
 Requires:       berusky2-data >= 0.6
 BuildRequires:  SDL-devel
@@ -26,6 +27,7 @@ which increases throughout the game.
 
 %prep
 %setup -q
+%patch0 -p1 -b .glut
 
 %build
 %configure CFLAGS="$RPM_OPT_FLAGS"


More information about the scm-commits mailing list