From 46157a88b1b801d774fb8c03a59b3a009eed7b8f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:21:51 +0100 Subject: [PATCH] restore necessary desktop file patch #5 [release 0.29.0-2mamba;Thu Oct 05 2017] --- ...ed-0.27.0-desktop-use_gparted_pkexec.patch | 23 ------------------ ...ed-0.29.0-desktop-use_gparted_pkexec.patch | 24 +++++++++++++++++++ gparted.spec | 9 ++++--- 3 files changed, 30 insertions(+), 26 deletions(-) delete mode 100644 gparted-0.27.0-desktop-use_gparted_pkexec.patch create mode 100644 gparted-0.29.0-desktop-use_gparted_pkexec.patch diff --git a/gparted-0.27.0-desktop-use_gparted_pkexec.patch b/gparted-0.27.0-desktop-use_gparted_pkexec.patch deleted file mode 100644 index a88e7d1..0000000 --- a/gparted-0.27.0-desktop-use_gparted_pkexec.patch +++ /dev/null @@ -1,23 +0,0 @@ -diff -Nru gparted-0.13.0.orig/gparted.desktop.in.in gparted-0.13.0/gparted.desktop.in.in ---- gparted-0.13.0.orig/gparted.desktop.in.in 2012-08-05 21:11:24.467479696 +0200 -+++ gparted-0.13.0/gparted.desktop.in.in 2012-08-05 21:11:59.976122931 +0200 -@@ -3,7 +3,7 @@ - _GenericName=Partition Editor - _X-GNOME-FullName=GParted Partition Editor - _Comment=Create, reorganize, and delete partitions --Exec=@gksuprog@ @installdir@/gparted %f -+Exec=/usr/bin/gparted-pkexec %f - Icon=gparted - Terminal=false - Type=Application ---- gparted-0.27.0/gparted.desktop.orig 2016-10-23 20:53:20.917595259 +0200 -+++ gparted-0.27.0/gparted.desktop 2016-10-23 23:46:51.413938365 +0200 -@@ -226,7 +226,7 @@ - Comment[zh_CN]=创建、重新组织或删除分区 - Comment[zh_HK]=建立、編輯或刪除分割區 - Comment[zh_TW]=建立、編輯或刪除分割區 --Exec=kdesudo /usr/local/sbin/gparted %f -+Exec=/usr/bin/gparted-pkexec %f - Icon=gparted - Terminal=false - Type=Application diff --git a/gparted-0.29.0-desktop-use_gparted_pkexec.patch b/gparted-0.29.0-desktop-use_gparted_pkexec.patch new file mode 100644 index 0000000..b46f65d --- /dev/null +++ b/gparted-0.29.0-desktop-use_gparted_pkexec.patch @@ -0,0 +1,24 @@ +diff -ru gparted-0.29.0.orig/gparted.desktop gparted-0.29.0/gparted.desktop +--- gparted-0.29.0.orig/gparted.desktop 2017-08-07 17:57:19.000000000 +0200 ++++ gparted-0.29.0/gparted.desktop 2017-10-05 16:32:34.572568167 +0200 +@@ -229,7 +229,7 @@ + Comment[zh_CN]=创建、重新组织或删除分区 + Comment[zh_HK]=建立、編輯或刪除分割區 + Comment[zh_TW]=建立、編輯或刪除分割區 +-Exec=gksudo /usr/local/sbin/gparted %f ++Exec=/usr/bin/gparted-pkexec %f + Icon=gparted + Terminal=false + Type=Application +diff -ru gparted-0.29.0.orig/gparted.desktop.in.in gparted-0.29.0/gparted.desktop.in.in +--- gparted-0.29.0.orig/gparted.desktop.in.in 2015-10-14 19:42:48.000000000 +0200 ++++ gparted-0.29.0/gparted.desktop.in.in 2017-10-05 16:31:44.879380000 +0200 +@@ -3,7 +3,7 @@ + _GenericName=Partition Editor + _X-GNOME-FullName=GParted Partition Editor + _Comment=Create, reorganize, and delete partitions +-Exec=@gksuprog@ @installdir@/gparted %f ++Exec=/usr/bin/gparted-pkexec %f + Icon=gparted + Terminal=false + Type=Application diff --git a/gparted.spec b/gparted.spec index 71976d6..d0b5111 100644 --- a/gparted.spec +++ b/gparted.spec @@ -1,7 +1,7 @@ ### AUTOUPDATE-OFF: 2 Name: gparted Version: 0.29.0 -Release: 1mamba +Release: 2mamba Summary: The Gnome Partition Editor application Group: Graphical Desktop/Applications/Administration Vendor: openmamba @@ -15,7 +15,7 @@ Patch1: %{name}-0.5.0-filedesktop.patch Patch2: %{name}-0.3.3-hal.patch Patch3: %{name}-0.5.0-gtk_include.patch Patch4: %{name}-0.21.0-filedesktop_no_startupnotify.patch -Patch5: %{name}-0.27.0-desktop-use_gparted_pkexec.patch +Patch5: %{name}-0.29.0-desktop-use_gparted_pkexec.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -70,7 +70,7 @@ These partitions are normally not re-sizable (making one larger and the adjacent #%patch2 #%patch3 -p1 #%patch4 -p1 -#%patch5 -p1 +%patch5 -p1 %build %configure --disable-scrollkeeper GKSUPROG="" @@ -124,6 +124,9 @@ install -D -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/gparted-pkexec #ChangeLog README %changelog +* Thu Oct 05 2017 Silvan Calarco 0.29.0-2mamba +- restore necessary desktop file patch #5 + * Wed Aug 09 2017 Automatic Build System 0.29.0-1mamba - automatic version update by autodist