#1 Use pkgconfig for BuildRequires
Merged 2 years ago by kalev. Opened 2 years ago by amigadave.
rpms/ amigadave/libnotify pkgconfig  into  rawhide

@@ -1,25 +0,0 @@ 

- From 49766bca28bb6fc57689f6061669bb44362d694d Mon Sep 17 00:00:00 2001

- From: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>

- Date: Tue, 2 Nov 2010 17:02:37 +0100

- Subject: [PATCH] notify_notification_set_image_from_pixbuf: ref the pixbuf (#633829)

- 

- ---

-  libnotify/notification.c |    2 +-

-  1 files changed, 1 insertions(+), 1 deletions(-)

- 

- diff --git a/libnotify/notification.c b/libnotify/notification.c

- index 2d5ecd9..571eff6 100644

- --- a/libnotify/notification.c

- +++ b/libnotify/notification.c

- @@ -695,7 +695,7 @@ notify_notification_set_image_from_pixbuf (NotifyNotification *notification,

-                                                          image_len,

-                                                          TRUE,

-                                                          (GDestroyNotify) g_object_unref,

- -                                                        pixbuf));

- +                                                        g_object_ref (pixbuf)));

-          notify_notification_set_hint (notification, hint_name, value);

-  }

-  

- -- 

- 1.7.1

- 

file modified
+13 -10
@@ -1,19 +1,18 @@ 

  %define glib2_version           2.26.0

  

- Name: libnotify

+ Name:    libnotify

  Version: 0.7.9

- Release: 5%{?dist}

+ Release: 6%{?dist}

  Summary: Desktop notification library

  

  License: LGPLv2+

- URL: http://www.gnome.org

- Source0: http://ftp.gnome.org/pub/GNOME/sources/libnotify/0.7/%{name}-%{version}.tar.xz

+ URL:     https://gitlab.gnome.org/GNOME/libnotify

+ Source0: https://download.gnome.org/sources/libnotify/0.7/%{name}-%{version}.tar.xz

  

+ BuildRequires: pkgconfig(gdk-pixbuf-2.0)

+ BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}

+ BuildRequires: pkgconfig(gobject-introspection-1.0)

  BuildRequires: docbook-xsl-ns

- BuildRequires: gdk-pixbuf2-devel

- BuildRequires: glib2-devel >= %{glib2_version}

- BuildRequires: gobject-introspection-devel

- BuildRequires: gtk3-devel

  BuildRequires: gtk-doc

  BuildRequires: meson

  BuildRequires: xmlto
@@ -36,10 +35,10 @@ 

  development of programs using %{name}.

  

  %prep

- %setup -q

+ %autosetup -p1

  

  %build

- %meson

+ %meson -Dtests=false

  %meson_build

  

  %install
@@ -66,6 +65,10 @@ 

  %doc %{_docdir}/libnotify/spec/

  

  %changelog

+ * Tue Dec 14 2021 David King <amigadave@amigadave.com> - 0.7.9-6

+ - Use pkgconfig for BuildRequires

+ - Disable building unused tests

+ 

  * Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.9-5

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

  

Remove unused patch, and drop the gtk3 dependency by disabling unused tests.

Pull-Request has been merged by kalev

2 years ago