[cardpeek] Patch to fix build with glib 2.31 single includes policy
Kalev Lember
kalev at fedoraproject.org
Wed Nov 9 03:32:53 UTC 2011
commit 7d7dae6fe14c358983ee05caab96b6aa94d0443f
Author: Kalev Lember <kalevlember at gmail.com>
Date: Wed Nov 9 05:21:37 2011 +0200
Patch to fix build with glib 2.31 single includes policy
cardpeek-0.7-glib_single_includes.patch | 22 ++++++++++++++++++++++
cardpeek.spec | 3 +++
2 files changed, 25 insertions(+), 0 deletions(-)
---
diff --git a/cardpeek-0.7-glib_single_includes.patch b/cardpeek-0.7-glib_single_includes.patch
new file mode 100644
index 0000000..5739b18
--- /dev/null
+++ b/cardpeek-0.7-glib_single_includes.patch
@@ -0,0 +1,22 @@
+--- cardpeek-0.7/lua_ui.c.glib_single_includes 2011-11-09 05:17:48.549174541 +0200
++++ cardpeek-0.7/lua_ui.c 2011-11-09 05:18:06.843979613 +0200
+@@ -27,7 +27,7 @@
+ #include <stdlib.h>
+ #include "bytestring.h"
+ #include "lua_bytes.h"
+-#include <glib/gprintf.h>
++#include <glib.h>
+
+ /***********************************************************
+ * USER INTERFACE FUNCTIONS
+--- cardpeek-0.7/misc.h.glib_single_includes 2011-11-09 05:17:56.629089695 +0200
++++ cardpeek-0.7/misc.h 2011-11-09 05:18:19.971833702 +0200
+@@ -21,7 +21,7 @@
+
+ #ifndef MISC_H
+ #define MISC_H
+-#include <glib/gtypes.h>
++#include <glib.h>
+
+ #define is_hex(a) ((a>='0' && a<='9') || \
+ (a>='A' && a<='F') || \
diff --git a/cardpeek.spec b/cardpeek.spec
index 52f11d6..192498f 100644
--- a/cardpeek.spec
+++ b/cardpeek.spec
@@ -7,6 +7,7 @@ Group: Applications/Productivity
License: GPLv3+
URL: http://code.google.com/p/cardpeek/
Source0: http://cardpeek.googlecode.com/files/cardpeek-%{version}.tar.gz
+Patch0: cardpeek-0.7-glib_single_includes.patch
BuildRequires: desktop-file-utils
BuildRequires: gtk2-devel
@@ -28,6 +29,7 @@ The tool currently reads the contents of:
%prep
%setup -q
+%patch0 -p1 -b .glib_single_includes.patch
%build
@@ -69,6 +71,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
* Wed Nov 09 2011 Kalev Lember <kalevlember at gmail.com> - 0.7-2
- Rebuilt for libpng 1.5
+- Patch to fix build with glib 2.31 single includes policy
* Mon Sep 05 2011 Kalev Lember <kalevlember at gmail.com> - 0.7-1
- Update to 0.7
More information about the scm-commits
mailing list