[perl-Gtk2-Notify] Fix function according to new libnotify.

Marcela Mašláňová mmaslano at fedoraproject.org
Fri Nov 5 12:59:57 UTC 2010


commit 5cd6b1f4fb2562d4efc919ce648b71933820af1b
Author: Marcela Mašláňová <mmaslano at redhat.com>
Date:   Fri Nov 5 13:59:26 2010 +0100

    Fix function according to new libnotify.

 libnotify.patch       |   19 +++++++++++++++++++
 perl-Gtk2-Notify.spec |    5 +++--
 2 files changed, 22 insertions(+), 2 deletions(-)
---
diff --git a/libnotify.patch b/libnotify.patch
new file mode 100644
index 0000000..7c4b940
--- /dev/null
+++ b/libnotify.patch
@@ -0,0 +1,19 @@
+diff -up Gtk2-Notify-0.05/xs/Notify.xs.not Gtk2-Notify-0.05/xs/Notify.xs
+--- Gtk2-Notify-0.05/xs/Notify.xs.not	2007-10-04 14:11:13.000000000 +0200
++++ Gtk2-Notify-0.05/xs/Notify.xs	2010-11-05 13:29:48.663238502 +0100
+@@ -86,13 +86,12 @@ notify_get_server_info (class, OUTLIST c
+ MODULE = Gtk2::Notify	PACKAGE = Gtk2::Notify	PREFIX = notify_notification_
+ 
+ NotifyNotification *
+-notify_notification_new (class, summary, body=NULL, icon=NULL, attach=NULL)
++notify_notification_new (summary, body=NULL, icon=NULL)
+ 		const gchar *summary
+ 		const gchar *body
+ 		const gchar *icon
+-		GtkWidget_ornull *attach
+ 	C_ARGS:
+-		summary, body, icon, attach
++		summary, body, icon
+ 
+ #if GTK_CHECK_VERSION (2, 9, 2)
+ 
diff --git a/perl-Gtk2-Notify.spec b/perl-Gtk2-Notify.spec
index c517352..7468fac 100644
--- a/perl-Gtk2-Notify.spec
+++ b/perl-Gtk2-Notify.spec
@@ -8,7 +8,7 @@ URL:            http://search.cpan.org/dist/Gtk2-Notify/
 Source0:        http://www.cpan.org/modules/by-module/Gtk2/Gtk2-Notify-%{version}.tar.gz
 #Source0: http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Gtk2-Notify-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-
+Patch0:         libnotify.patch
 # non-perl
 BuildRequires:  libnotify-devel
 # core
@@ -37,6 +37,7 @@ functionality from within a perl application.
 
 %prep
 %setup -q -n Gtk2-Notify-%{version}
+%patch0 -p1
 
 find t/ -type f -exec perl -pi -e 's|^#!perl|#!/usr/bin/perl|' {} +
 
@@ -71,7 +72,7 @@ rm -rf %{buildroot}
 
 %changelog
 * Fri Nov  5 2010 Marcela Mašláňová <mmaslano at redhat.com> - 0.05-9
-- rebuild with new libxml2
+- fix function according to new libnotify
 
 * Sun May 02 2010 Marcela Maslanova <mmaslano at redhat.com> - 0.05-8
 - Mass rebuild with perl-5.12.0



More information about the perl-devel mailing list