packages: gwget/gwget.spec, gwget/gwget-libnotify.patch - fixes build with ...

lisu lisu at pld-linux.org
Thu Apr 7 15:49:25 CEST 2011


Author: lisu                         Date: Thu Apr  7 13:49:25 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fixes build with libnotify 0.7

---- Files affected:
packages/gwget:
   gwget.spec (1.38 -> 1.39) , gwget-libnotify.patch (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: packages/gwget/gwget.spec
diff -u packages/gwget/gwget.spec:1.38 packages/gwget/gwget.spec:1.39
--- packages/gwget/gwget.spec:1.38	Thu Apr  7 15:43:12 2011
+++ packages/gwget/gwget.spec	Thu Apr  7 15:49:20 2011
@@ -15,6 +15,7 @@
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/gwget/1.0/%{name}-%{version}.tar.bz2
 # Source0-md5:	b65ebc752cad068e747ae6ef45fafdcc
 Patch0:		epiphany-230.patch
+Patch1:		%{name}-libnotify.patch
 URL:		http://www.gnome.org/projects/gwget/
 BuildRequires:	GConf2-devel
 BuildRequires:	autoconf
@@ -56,6 +57,7 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__intltoolize}
@@ -116,6 +118,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.39  2011/04/07 13:49:20  lisu
+- fixes build with libnotify 0.7
+
 Revision 1.38  2011/04/07 13:43:12  lisu
 - change epiphany_version to 3.0
 

================================================================
Index: packages/gwget/gwget-libnotify.patch
diff -u /dev/null packages/gwget/gwget-libnotify.patch:1.3
--- /dev/null	Thu Apr  7 15:49:25 2011
+++ packages/gwget/gwget-libnotify.patch	Thu Apr  7 15:49:20 2011
@@ -0,0 +1,15 @@
+--- gwget-1.0.4/src/systray.c~	2009-08-14 19:19:51.000000000 +0200
++++ gwget-1.0.4/src/systray.c	2011-04-07 15:47:18.496473352 +0200
+@@ -224,7 +224,11 @@
+        		if (!notify_is_initted ())
+ 			if (!notify_init ("gwget"))
+ 		               return;
+-       NotifyNotification *notification = notify_notification_new(primary,secondary,icon_name,NULL);
++       NotifyNotification *notification = notify_notification_new(primary,secondary,icon_name
++#if !defined(NOTIFY_VERSION_MINOR) || (NOTIFY_VERSION_MAJOR == 0 && NOTIFY_VERSION_MINOR < 7)
++		       ,NULL
++#endif
++		       );
+        notify_notification_show(notification,NULL);
+ #endif
+ 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gwget/gwget.spec?r1=1.38&r2=1.39&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/gwget/gwget-libnotify.patch?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list