File polkit-default-privs.spec of Package polkit-default-privs.10667

#
# spec file for package polkit-default-privs
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# icecream 0


#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
  %define _fillupdir /var/adm/fillup-templates
%endif

Name:           polkit-default-privs
Version:        13.2
Release:        0
Summary:        SUSE PolicyKit default permissions
License:        GPL-2.0+
Group:          Productivity/Security
Source:         polkit-default-privs-%version.tar.bz2
Patch0:         0001-blueman-relax-standard-profile-rules-bsc-1083066.patch
Patch1:         0002-additional-tuned-rules-bnc-1088648.patch
Patch2:         0003-tuned-add-new-logging-actions.patch
Patch3:         0004-flatpak-configure-action.patch
Patch4:         0005-soften-authentication-requirements-for-flatpak-s-app.patch
Patch5:         0006-Whitelist-additional-Flatpak-action-metadata-update-.patch
Patch6:         0007-whitelist-newly-introduced-network-manager-wifi-scan.patch
Patch7:         0008-relax-change-own-user-data-action-in-the-restrictive.patch
Patch8:         0009-polkit-privs-whitelisting-add-renamed-wifi-scan-wifi.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  polkit
%if 0%{?suse_version} < 1310
Requires:       libmozjs185-1_0
%endif
Requires:       polkit
Supplements:    PolicyKit
Supplements:    libpolkit0, polkit
BuildArch:      noarch
# please open bugreports at bugzilla.novell.com
Url:            http://github.com/openSUSE/polkit-default-privs.git
PreReq:         %fillup_prereq

%description
Different default privilege settings depending on local configuration



Authors:
--------
    Ludwig Nussel

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

%build

%install
make install DESTDIR=$RPM_BUILD_ROOT fillupdir="%{_fillupdir}"
mkdir -p $RPM_BUILD_ROOT/etc/polkit-1/rules.d/
> $RPM_BUILD_ROOT/etc/polkit-1/rules.d/90-default-privs.rules

%post
%{fillup_only -ns security polkit_default_privs}
/sbin/set_polkit_default_privs >/dev/null

%files
%defattr(-,root,root,-)
%ghost %attr(0644,root,root) /etc/polkit-1/rules.d/90-default-privs.rules
%config /etc/polkit-default-privs.standard
%config /etc/polkit-default-privs.restrictive
%config(noreplace) /etc/polkit-default-privs.local
/sbin/chkstat-polkit
/sbin/set_polkit_default_privs
%_mandir/man*/*
%{_fillupdir}/sysconfig.security-polkit_default_privs

%changelog
openSUSE Build Service is sponsored by