Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package gcolor3 for openSUSE:Factory checked 
in at 2022-04-06 21:52:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/gcolor3 (Old)
 and      /work/SRC/openSUSE:Factory/.gcolor3.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "gcolor3"

Wed Apr  6 21:52:00 2022 rev:6 rq:967267 version:2.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/gcolor3/gcolor3.changes  2021-05-19 
17:49:21.113541740 +0200
+++ /work/SRC/openSUSE:Factory/.gcolor3.new.1900/gcolor3.changes        
2022-04-06 21:52:35.202817213 +0200
@@ -1,0 +2,9 @@
+Tue Apr  5 12:11:14 UTC 2022 - Dominique Leuenberger <dims...@opensuse.org>
+
+- Replace libportal-devel BuildRequires with
+  pkgconfig(libportal-gtk3) to be more specific and not be
+  dependant on package names.
+- Add gcolor-libportal-gtk3.patch: Fix build against recent
+  libportal, which has gtk3 and gtk4 backends.
+
+-------------------------------------------------------------------

New:
----
  gcolor-libportal-gtk3.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ gcolor3.spec ++++++
--- /var/tmp/diff_new_pack.ziCVeX/_old  2022-04-06 21:52:35.690811644 +0200
+++ /var/tmp/diff_new_pack.ziCVeX/_new  2022-04-06 21:52:35.698811553 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package gcolor3
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -25,15 +25,16 @@
 URL:            https://www.hjdskes.nl/projects/gcolor3/
 Source0:        
https://gitlab.gnome.org/World/gcolor3/-/archive/v%{version}/gcolor3-v%{version}.tar.bz2
 Patch0:         gcolor3-suse.patch
+Patch1:         gcolor-libportal-gtk3.patch
 BuildRequires:  cmake
 BuildRequires:  git
 BuildRequires:  gnome-common
 BuildRequires:  hicolor-icon-theme
-BuildRequires:  libportal-devel
 BuildRequires:  meson
 BuildRequires:  ninja
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(gtk+-3.0)
+BuildRequires:  pkgconfig(libportal-gtk3) >= 0.5
 
 %description
 Gcolor3 enables picking the color from any pixel on the screen. It

++++++ gcolor-libportal-gtk3.patch ++++++
>From 1750369a3fd922aa9db6916207dc460c6f885e14 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <mic...@vasilek.cz>
Date: Mon, 27 Dec 2021 13:47:14 +0100
Subject: [PATCH] Update to libportal 0.5

---
 meson.build                   | 2 ++
 src/gcolor3-color-selection.c | 2 +-
 src/meson.build               | 1 +
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 6453679..7d6dc50 100644
--- a/meson.build
+++ b/meson.build
@@ -7,9 +7,11 @@ dep_gtk = dependency('gtk+-3.0', version: '>= 3.20.0', 
required: true)
 dep_libportal = dependency(
   'libportal',
   required: true,
+  version: '>= 0.5',
   fallback: ['libportal', 'libportal_dep'],
   default_options: ['gtk_doc=false'],
 )
+dep_libportal_gtk3 = dependency('libportal-gtk3', version: '>= 0.5', required: 
true)
 cc = meson.get_compiler('c')
 dep_lm = cc.find_library('m', required: true)
 
diff --git a/src/gcolor3-color-selection.c b/src/gcolor3-color-selection.c
index 7413850..5df9d54 100644
--- a/src/gcolor3-color-selection.c
+++ b/src/gcolor3-color-selection.c
@@ -41,7 +41,7 @@
 #include <gtk/gtk.h>
 #include <glib/gi18n.h>
 #include <libportal/portal.h>
-#include <libportal/portal-gtk3.h>
+#include <libportal-gtk3/portal-gtk3.h>
 
 #ifdef ENABLE_NLS
 #define P_(String) g_dgettext(GETTEXT_PACKAGE "-properties",String)
diff --git a/src/meson.build b/src/meson.build
index 3998f68..d488e51 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -42,6 +42,7 @@ executable(
   dependencies: [
     dep_gtk,
     dep_libportal,
+    dep_libportal_gtk3,
     dep_lm
   ],
   install: true,
-- 
GitLab

Reply via email to