Update to version 0.18.0

- Replace consolehelper with PolicyKit for authenticating users
epel8
Deji Akingunola 11 years ago
parent d5b939bd5c
commit 00b9d1929f

@ -1,3 +0,0 @@
USER=root
PROGRAM=/usr/sbin/gparted
SESSION=true

@ -1,8 +0,0 @@
#%PAM-1.0
auth sufficient pam_rootok.so
auth sufficient pam_timestamp.so
auth include system-auth
session required pam_permit.so
session optional pam_xauth.so
session optional pam_timestamp.so
account required pam_permit.so

@ -1,19 +1,19 @@
Summary: Gnome Partition Editor
Name: gparted
Version: 0.16.1
Release: 3%{?dist}
Version: 0.18.0
Release: 1%{?dist}
Group: Applications/System
License: GPLv2+
URL: http://www.gparted.org
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1: gparted-console.apps
Source2: gparted-pam.d
Source1: org.fedoraproject.pkexec.run-gparted.policy
Source2: gparted_polkit
BuildRequires: gtkmm24-devel parted-devel
BuildRequires: libuuid-devel gettext perl(XML::Parser)
BuildRequires: desktop-file-utils gnome-doc-utils intltool
BuildRequires: rarian-compat
BuildRequires: pkgconfig
Requires: usermode-gtk
Requires: polkit-gnome
%description
GParted stands for Gnome Partition Editor and is a graphical frontend to
@ -24,15 +24,17 @@ will be detected at runtime and don't require a rebuild of GParted
%prep
%setup -q
sed -i "s:@gksuprog@ @installdir@/gparted %f:@installdir@/gparted_polkit %f:g" gparted.desktop.in.in
%build
%configure --enable-libparted-dmraid
%configure --enable-libparted-dmraid --enable-online-resize
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
sed -i 's#_X-GNOME-FullName#X-GNOME-FullName#' %{buildroot}%{_datadir}/applications/%{name}.desktop
sed -i 's#sbin#bin#' %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install --delete-original \
--dir %{buildroot}%{_datadir}/applications \
@ -40,17 +42,12 @@ desktop-file-install --delete-original \
--add-category X-Fedora \
--add-category GTK \
%{buildroot}%{_datadir}/applications/%{name}.desktop
sed -i 's#sbin#bin#' %{buildroot}%{_datadir}/applications/%{name}.desktop
#### consolehelper stuff
mkdir -p %{buildroot}%{_bindir}
ln -s consolehelper %{buildroot}%{_bindir}/gparted
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions/
cp %{SOURCE1} %{buildroot}%{_datadir}/polkit-1/actions/
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/security/console.apps/gparted
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/gparted
mkdir -p %{buildroot}%{_bindir}
%{__install} -p -m755 %{SOURCE2} %{buildroot}%{_bindir}/
%find_lang %{name}
@ -68,20 +65,21 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/gparted
%{_sbindir}/gparted
%{_bindir}/gparted_polkit
%{_sbindir}/gpartedbin
%{_datadir}/applications/gparted.desktop
%{_datadir}/icons/hicolor/*/apps/gparted.*
%{_datadir}/polkit-1/actions/org.fedoraproject.pkexec.run-gparted.policy
%{_datadir}/appdata/gparted.appdata.xml
%{_datadir}/gnome/help/gparted/
%{_datadir}/omf/gparted/
%{_mandir}/man8/gparted.*
%config(noreplace) %{_sysconfdir}/pam.d/gparted
%config(noreplace) %{_sysconfdir}/security/console.apps/gparted
%changelog
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 20 2014 Deji Akingunola <dakingun@gmail.com> - 0.18.0-1
- Update to version 0.18.0
- Replace consolehelper with PolicyKit for authenticating users
* Tue Jun 11 2013 Deji Akingunola <dakingun@gmail.com> - 0.16.1-2
- Explicitly requires usermode-gtk (BZ #827728)
@ -237,11 +235,11 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
* Mon Apr 16 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.3-9
- Fix the typos and stupidity in the consolehelper and hal-lock files
* Mon Apr 04 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.3-8
* Wed Apr 04 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.3-8
- Explicitly require hal >= 0.5.9
- Remove the hal policy file created by gparted (if it's still there) on upgrade
* Mon Apr 03 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.3-7
* Tue Apr 03 2007 Deji Akingunola <dakingun@gmail.com> - 0.3.3-7
- Patch gparted to not create a hal fdi file but use hal-lock instead, this will hopefully fix BZ #215657
- Clean up the spec file
@ -272,10 +270,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
* Mon Nov 27 2006 Deji Akingunola <dakingun@gmail.com> - 0.3.1-4
- Complete fix for parted check and apply patch on configure.in
* Wed Nov 23 2006 Deji Akingunola <dakingun@gmail.com> - 0.3.1-3
* Thu Nov 23 2006 Deji Akingunola <dakingun@gmail.com> - 0.3.1-3
- Backport a fix from cvs to properly check for libparted version
* Mon Nov 21 2006 Deji Akingunola <dakingun@gmail.com> - 0.3.1-2
* Tue Nov 21 2006 Deji Akingunola <dakingun@gmail.com> - 0.3.1-2
- Rebuild for new parted
* Wed Sep 13 2006 Deji Akingunola <dakingun@gmail.com> - 0.3.1-1
@ -302,7 +300,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
* Thu Mar 30 2006 Deji Akingunola <dakingun@gmail.com> - 0.2.3-1
- Update to newer version
* Mon Mar 07 2006 Deji Akingunola <dakingun@gmail.com> - 0.2.2-1
* Tue Mar 07 2006 Deji Akingunola <dakingun@gmail.com> - 0.2.2-1
- New release
* Mon Feb 13 2006 Deji Akingunola <dakingun@gmail.com> - 0.2-2

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

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="org.fedoraproject.pkexec.run-gparted">
<description>Run the GParted program</description>
<message>Authentication is required to run the GParted Partition Editor</message>
<icon_name>gparted</icon_name>
<defaults>
<allow_any>auth_admin</allow_any>
<allow_inactive>auth_admin</allow_inactive>
<allow_active>auth_admin</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/gparted</annotate>
<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
</action>
</policyconfig>

@ -1 +1 @@
3f399bff031b5ce14d11a8c346f4b89c gparted-0.16.1.tar.bz2
c4c928de08519c923abaa5a099881241 gparted-0.18.0.tar.bz2

Loading…
Cancel
Save