diff --git a/.gitignore b/.gitignore index 0bd634d..b55b091 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /xdg-desktop-portal-gtk-0.1.tar.xz +/xdg-desktop-portal-gtk-0.2.tar.xz diff --git a/sources b/sources index e1c2479..2769762 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c6659f5dac1750e22271af6f210d7ae1 xdg-desktop-portal-gtk-0.1.tar.xz +6aff832065f917172389692f12ec0d45 xdg-desktop-portal-gtk-0.2.tar.xz diff --git a/xdg-desktop-portal-gtk-0.2-format-literal-warning.patch b/xdg-desktop-portal-gtk-0.2-format-literal-warning.patch new file mode 100644 index 0000000..cb7d503 --- /dev/null +++ b/xdg-desktop-portal-gtk-0.2-format-literal-warning.patch @@ -0,0 +1,25 @@ +From 550f8a71aa7a6859bf010608875ebc3a13f7a189 Mon Sep 17 00:00:00 2001 +From: David King +Date: Fri, 29 Jul 2016 14:10:17 +0100 +Subject: [PATCH] Fix string literal format warning + +--- + src/access.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/access.c b/src/access.c +index d759e66..9b36f3c 100644 +--- a/src/access.c ++++ b/src/access.c +@@ -285,7 +285,7 @@ handle_access_dialog (XdpImplAccess *object, + gtk_window_set_modal (GTK_WINDOW (dialog), modal); + gtk_dialog_add_button (GTK_DIALOG (dialog), deny_label, GTK_RESPONSE_CANCEL); + gtk_dialog_add_button (GTK_DIALOG (dialog), grant_label, GTK_RESPONSE_OK); +- gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), arg_subtitle); ++ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", arg_subtitle); + + area = gtk_message_dialog_get_message_area (GTK_MESSAGE_DIALOG (dialog)); + fix_up_label_alignment (area); +-- +2.7.4 + diff --git a/xdg-desktop-portal-gtk.spec b/xdg-desktop-portal-gtk.spec index 155fc56..08b802d 100644 --- a/xdg-desktop-portal-gtk.spec +++ b/xdg-desktop-portal-gtk.spec @@ -1,11 +1,13 @@ Name: xdg-desktop-portal-gtk -Version: 0.1 +Version: 0.2 Release: 1%{?dist} Summary: Backend implementation for xdg-desktop-portal using GTK+ License: LGPLv2+ URL: https://github.com/flatpak/%{name} -Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz +Source0: https://github.com/flatpak/releases/download/%{version}/%{name}-%{version}.tar.xz +# Submitted upstream: https://github.com/flatpak/xdg-desktop-portal-gtk/pull/29 +Patch0: xdg-desktop-portal-gtk-0.2-format-literal-warning.patch BuildRequires: pkgconfig(gtk+-unix-print-3.0) BuildRequires: pkgconfig(xdg-desktop-portal) @@ -17,17 +19,22 @@ A backend implementation for xdg-desktop-portal that is using GTK+ and various pieces of GNOME infrastructure, such as the org.gnome.Shell.Screenshot or org.gnome.SessionManager D-Bus interfaces. + %prep -%autosetup +%setup -q +%patch0 -p1 + %build %configure --disable-silent-rules %make_build + %install %make_install %find_lang %{name} + %files -f %{name}.lang %license COPYING %doc NEWS @@ -35,6 +42,11 @@ org.gnome.SessionManager D-Bus interfaces. %{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.gtk.service %{_datadir}/xdg-desktop-portal/portals/gtk.portal + + %changelog +* Fri Jul 29 2016 David King - 0.2-1 +- Update to 0.2 (#1361576) + * Wed Jul 13 2016 David King - 0.1-1 - Initial Fedora packaging