|
|
@ -16,7 +16,7 @@ Requires: gparted |
|
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
%install |
|
|
|
mkdir -p %buildroot/%_datadir/polkit-1/rules.d |
|
|
|
mkdir -p %buildroot/%_datadir/polkit-1/rules.d |
|
|
|
cat>%buildroot/%_datadir/polkit-1/rules.d/org.gnome.gparted.rules<<EOF |
|
|
|
cat>%buildroot/%_datadir/polkit-1/rules.d/25-org.gnome.gparted.rules<<EOF |
|
|
|
polkit.addAdminRule(function(action, subject) { |
|
|
|
polkit.addAdminRule(function(action, subject) { |
|
|
|
if (action.id == "org.gnome.gparted") { |
|
|
|
if (action.id == "org.gnome.gparted") { |
|
|
|
return ["unix-group:root"]; |
|
|
|
return ["unix-group:root"]; |
|
|
@ -25,7 +25,7 @@ polkit.addAdminRule(function(action, subject) { |
|
|
|
EOF |
|
|
|
EOF |
|
|
|
|
|
|
|
|
|
|
|
%files |
|
|
|
%files |
|
|
|
%_datadir/polkit-1/rules.d/org.gnome.gparted.rules |
|
|
|
%_datadir/polkit-1/rules.d/25-org.gnome.gparted.rules |
|
|
|
|
|
|
|
|
|
|
|
%changelog |
|
|
|
%changelog |
|
|
|
* Tue Dec 28 2021 Artem Proskurnev <tema@altlinux.org> 0.1-alt1 |
|
|
|
* Tue Dec 28 2021 Artem Proskurnev <tema@altlinux.org> 0.1-alt1 |
|
|
|