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
This commit is contained in:
Dominique Leuenberger 2017-11-24 13:48:07 +00:00 committed by Git OBS Bridge
parent c0bfe1e12a
commit 31128291bb
7 changed files with 73 additions and 44 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2250bf6bb43687be149c2a95fbfe2f6f0215690e187179d5f733ae518fa7c3cd
size 3751292

Binary file not shown.

3
gparted-0.30.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d31193effe058bdaeb2a4cd4b514ec753191179a0bc3abefda68a2b7975ecf4a
size 3784163

BIN
gparted-0.30.0.tar.gz.sig Normal file

Binary file not shown.

View File

@ -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

View File

@ -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

View File

@ -1,9 +0,0 @@
#!/bin/bash
if [ $(which pkexec) ]; then
pkexec --disable-internal-agent "/usr/sbin/gparted" "$@"
else
/usr/sbin/gparted "$@"
fi