Accepting request 69817 from Base:System

Use %set_permissions instead of deprecated %run_permissions (forwarded request 69720 from vuntz)

OBS-URL: https://build.opensuse.org/request/show/69817
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/polkit?expand=0&rev=20
This commit is contained in:
Sascha Peilicke 2011-05-09 07:01:25 +00:00 committed by Git OBS Bridge
commit cc5937e410
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu May 5 19:35:05 CEST 2011 - vuntz@opensuse.org
- Use %set_permissions instead of deprecated %run_permissions in
%post.
- Add permissions PreReq, which was missing before.
-------------------------------------------------------------------
Tue Apr 26 21:19:32 CEST 2011 - kay.sievers@novell.com

View File

@ -33,6 +33,7 @@ BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: libexpat-devel
BuildRequires: pam-devel
PreReq: permissions
Requires: ConsoleKit
Requires: dbus-1
Requires: libpolkit0 = %{version}-%{release}
@ -119,7 +120,9 @@ chmod 0755 $RPM_BUILD_ROOT%{_localstatedir}/lib/polkit-1
rm -rf $RPM_BUILD_ROOT
%post
%run_permissions
%set_permissions %{_bindir}/pkexec
%set_permissions %{_prefix}/lib/polkit-1/polkit-agent-helper-1
%verifyscript
%verify_permissions -e %{_bindir}/pkexec
%verify_permissions -e %{_prefix}/lib/polkit-1/polkit-agent-helper-1