Accepting request 993908 from devel:openSUSE:Factory:Apps

- Revert 'removal of upstream pokit action', but rather
  BuildRequire pkexec, which is what decides if the file is
  installed or not.

OBS-URL: https://build.opensuse.org/request/show/993908
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gparted?expand=0&rev=54
This commit is contained in:
Dominique Leuenberger 2022-08-09 13:27:39 +00:00 committed by Git OBS Bridge
commit fa30da9417
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Aug 8 16:15:42 UTC 2022 - Dominique Leuenberger <dimstar@opensuse.org>
- Revert 'removal of upstream pokit action', but rather
BuildRequire pkexec, which is what decides if the file is
installed or not.
-------------------------------------------------------------------
Sat Aug 6 13:00:33 UTC 2022 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>

View File

@ -34,6 +34,9 @@ BuildRequires: intltool
BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig
BuildRequires: polkit
%if 0%{?suse_version} > 1500
BuildRequires: pkexec
%endif
BuildRequires: update-desktop-files
BuildRequires: xfsprogs-devel
BuildRequires: yelp-tools
@ -91,6 +94,8 @@ export GKSUPROG="pkexec"
%make_install
install -Dm0644 %{SOURCE98} %{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}%{_datadir}