From 31128291bbbc337f545d8dc24dc93dd7305820fe767b43dfd07d4e8b0ae63e5e Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Fri, 24 Nov 2017 13:48:07 +0000 Subject: [PATCH] Accepting request 545032 from home:luc14n0:branches:devel:openSUSE:Factory:Apps Update to version 0.30.0. OBS-URL: https://build.opensuse.org/request/show/545032 OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:Apps/gparted?expand=0&rev=9 --- gparted-0.29.0.tar.gz | 3 -- gparted-0.29.0.tar.gz.sig | Bin 287 -> 0 bytes gparted-0.30.0.tar.gz | 3 ++ gparted-0.30.0.tar.gz.sig | Bin 0 -> 287 bytes gparted.changes | 45 ++++++++++++++++++++++++++++++ gparted.spec | 57 +++++++++++++++++--------------------- gparted_polkit | 9 ------ 7 files changed, 73 insertions(+), 44 deletions(-) delete mode 100644 gparted-0.29.0.tar.gz delete mode 100644 gparted-0.29.0.tar.gz.sig create mode 100644 gparted-0.30.0.tar.gz create mode 100644 gparted-0.30.0.tar.gz.sig delete mode 100644 gparted_polkit diff --git a/gparted-0.29.0.tar.gz b/gparted-0.29.0.tar.gz deleted file mode 100644 index b4e9c92..0000000 --- a/gparted-0.29.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2250bf6bb43687be149c2a95fbfe2f6f0215690e187179d5f733ae518fa7c3cd -size 3751292 diff --git a/gparted-0.29.0.tar.gz.sig b/gparted-0.29.0.tar.gz.sig deleted file mode 100644 index 6fb45bc0afdae1bba0e045eb17948dfcf0beefaf85a9f09643b9223777edbe8c..0000000000000000000000000000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 287 zcmV+)0pR|L0UQJX0RjL91p--!kl+9c2@n^i)BiJ!m2hP-2mp`P3J*H8&JPzbl!&+( zA>262BTjTQKhWr-&P#IK5{`!Z?(^A#fmwoOF!XZ_sOu_e{GQq^6$~hbV>O22GJlG? z+LPgGk*{x>EgA+X(a7Kc6=fkXLs!Gh>2Eh=>tE!dZ_=gP_t{wnx&eoiSJ@gHLUke} zpkt{w>9m-X4fMvs>wvJgwu3z9QT-Q3Xw*k^uQfb#se{3h~oeN diff --git a/gparted-0.30.0.tar.gz b/gparted-0.30.0.tar.gz new file mode 100644 index 0000000..94c332f --- /dev/null +++ b/gparted-0.30.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d31193effe058bdaeb2a4cd4b514ec753191179a0bc3abefda68a2b7975ecf4a +size 3784163 diff --git a/gparted-0.30.0.tar.gz.sig b/gparted-0.30.0.tar.gz.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..4b9014d09166649b492495af0bafb7993f5e6ea16a22ef36af33f30cce093eae GIT binary patch literal 287 zcmV+)0pR|L0UQJX0RjL91p-;z_T~Tz2@n^i)BiJ!m2dzV2mehCL)zrpMgR@yetCc- zfi^%QmjM)pr&(>*A{bJwg8RKk4AYc|U9Ov8X8jvZ;IXzPUGFXQh!iwBCe6kK0Cjmz z&Z4m|;jI9b-dlr|NT#^YQJJwf?&|E>>nwQBMWfp?D{}Gx(mhz|8G>etx1MzjwcmK7 zh%SraB8_W<52^l7wPBV%70dw~1OA5?!ABMQ-xalu)~(TkdehTVu2d{52e8dhO#nYU zz_8VB6aHr%C1RR|Kkr54*shpBtM+cj+i2-W^n6;&`~&?JExjIxc$i~!8kDg>Um7Q; lge?F7 literal 0 HcmV?d00001 diff --git a/gparted.changes b/gparted.changes index d7ac2bb..d6a483f 100644 --- a/gparted.changes +++ b/gparted.changes @@ -1,3 +1,48 @@ +------------------------------------------------------------------- +Sat Nov 18 01:33:27 UTC 2017 - luc14n0@linuxmail.org + +- Update to version 0.30.0: + + Interim fix for GParted fails to run as root under Wayland. + + Fix reading Unicode labels when no FS specific tools available. + + Safely quote and escape external programs arguments. + + Uses pkexec command (part of polkit) for root privilege + escalation when available. + + Bug Fixes: + - Interim fix for GParted fails to run as root under Wayland + (bgo#776437). + - Fix: + . Message failed to execute "mkudffs" when not installed + (bgo#786050). + . Reading Unicode labels when no FS specific tools available + (bgo#786502). + . Detection of file system images (bgo#787181). + . Problems with space in device names (bgo#649509). + + Update list of prohibited fat label characters (bgo#787202). + + Safely quote and escape external programs arguments + (bgo#787203). + + Remove: + - Minor bits of legacy from DMRaid module (bgo#788007). + - whole_device partition flag (bgo#788308). + + Updated translations. +- Pass --enable-xhost-root parameter to configure: an interim + workaround to allow GParted to run under Wayland by using xhost + to grant and revoke root access to the X11 display. +- Drop gparted_polkit and its sed command to inject it into + Makefile: the installation location of the gparted script has + changed and package scripts calling pkexec can be dropped. +- Point fdupes to the data directory instead of the build root, + which is a practice that must be avoided. +- Remove %clean section: it's no longer needed since RPM has this + functionality itself now. +- Drop %icon_theme_cache_* and %desktop_database_* post/postun + scriptlets: it's no longer needed since RPM file triggers. +- Add conditional use to translation-update-upstream: it's a + SLE-only requirement. +- Switch gtkmm2-devel BuildRequires to its pkgconfig counterpart + once that configure only checks for its module. +- Add glibmm-2.4 and sigc++-2.0 pkgconfig BuildRequires: note that + they were already being used but not declared in the specfile. + ------------------------------------------------------------------- Wed Aug 09 22:11:23 UTC 2017 - joerg.lorenzen@ki.tng.de diff --git a/gparted.spec b/gparted.spec index 32efe5c..481559b 100644 --- a/gparted.spec +++ b/gparted.spec @@ -17,30 +17,34 @@ Name: gparted -Version: 0.29.0 +Version: 0.30.0 Release: 0 Summary: Gnome Partition Editor License: GPL-2.0 Group: System/Filesystems Url: http://gparted.sourceforge.net/ Source0: http://downloads.sourceforge.net/project/gparted/gparted/gparted-%{version}/%{name}-%{version}.tar.gz -Source1: gparted.policy -Source2: gparted_polkit -Source98: http://downloads.sourceforge.net/project/gparted/gparted/gparted-%{version}/%{name}-%{version}.tar.gz.sig +Source1: http://downloads.sourceforge.net/project/gparted/gparted/gparted-%{version}/%{name}-%{version}.tar.gz.sig +Source98: %{name}.policy Source99: %{name}.keyring BuildRequires: e2fsprogs-devel BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: gnome-doc-utils-devel -BuildRequires: gtkmm2-devel >= 2.22.0 BuildRequires: intltool BuildRequires: parted-devel BuildRequires: perl-XML-Parser BuildRequires: polkit BuildRequires: scrollkeeper +%if !0%{?is_opensuse} BuildRequires: translation-update-upstream +%endif BuildRequires: update-desktop-files BuildRequires: xfsprogs-devel +BuildRequires: pkgconfig(glibmm-2.4) >= 2.14.0 +BuildRequires: pkgconfig(gtkmm-2.4) > 2.8 +BuildRequires: pkgconfig(gthread-2.0) +BuildRequires: pkgconfig(sigc++-2.0) >= 2.5.1 Requires: btrfsprogs >= 4.1 Requires: cryptsetup Requires: e2fsprogs @@ -70,58 +74,47 @@ copying data residing on hard disks and mirroring one partition with another %lang_package %prep %setup -q -sed -i "s:@gksuprog@ @installdir@/gparted %f:@installdir@/gparted_polkit %f:g" gparted.desktop.in.in +%if !0%{?is_opensuse} translation-update-upstream +%endif %build export GKSUPROG="pkexec" %configure \ - --disable-scrollkeeper + --disable-scrollkeeper \ + --enable-xhost-root make %{?_smp_mflags} %install %make_install -install -Dm0644 %{S:1} %{buildroot}%{_datadir}/polkit-1/actions/org.opensuse.policykit.gparted.policy - -# install the helper wrapper -mkdir -p %{buildroot}%{_sbindir} -install -p -m755 %{SOURCE2} %{buildroot}%{_sbindir} +install -Dm0644 %{S:98} %{buildroot}%{_datadir}/polkit-1/actions/org.opensuse.policykit.%{name}.policy +# Here we remove upstream policy file since we have our own +rm %{buildroot}%{_datadir}/polkit-1/actions/org.gnome.%{name}.policy %suse_update_desktop_file %{name} -%fdupes %{buildroot} +%fdupes %{buildroot}%{_datadir} %find_lang %{name} %{?no_lang_C} -%clean -rm -rf %{buildroot} - -%post -%icon_theme_cache_post -%desktop_database_post - -%postun -%icon_theme_cache_postun -%desktop_database_postun - %files %defattr(-,root,root) %doc README ChangeLog AUTHORS NEWS COPYING -%{_sbindir}/gparted_polkit -%{_sbindir}/gparted -%{_sbindir}/gpartedbin -%{_mandir}/man8/gparted.8.gz +%{_bindir}/%{name} +%{_sbindir}/%{name}bin +%{_mandir}/man8/%{name}.8.gz %dir %{_datadir}/appdata %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*x*/apps/%{name}.png %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg -%{_datadir}/polkit-1/actions/org.opensuse.policykit.gparted.policy +%{_datadir}/polkit-1/actions/org.opensuse.policykit.%{name}.policy +#{_datadir}/polkit-1/actions/org.gnome.%%{name}.policy %dir %{_datadir}/gnome %dir %{_datadir}/gnome/help -%dir %{_datadir}/gnome/help/gparted -%doc %{_datadir}/gnome/help/gparted/C/ +%dir %{_datadir}/gnome/help/%{name} +%doc %{_datadir}/gnome/help/%{name}/C/ %dir %{_datadir}/omf -%doc %{_datadir}/omf/gparted/gparted-C.omf +%doc %{_datadir}/omf/%{name}/%{name}-C.omf %files lang -f %{name}.lang diff --git a/gparted_polkit b/gparted_polkit deleted file mode 100644 index 68c898b..0000000 --- a/gparted_polkit +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if [ $(which pkexec) ]; then - pkexec --disable-internal-agent "/usr/sbin/gparted" "$@" -else - /usr/sbin/gparted "$@" -fi - -