2008-09-24 15:23:49 +00:00
|
|
|
#
|
2011-01-25 09:18:07 +00:00
|
|
|
# spec file for package polkit-default-privs
|
2008-09-24 15:23:49 +00:00
|
|
|
#
|
2023-03-03 12:48:08 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2008-09-24 15:23:49 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-08-01 13:34:31 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-24 15:23:49 +00:00
|
|
|
#
|
|
|
|
# icecream 0
|
|
|
|
|
|
|
|
|
2017-11-23 14:57:57 +00:00
|
|
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir /var/adm/fillup-templates
|
|
|
|
%endif
|
|
|
|
|
2008-09-24 15:23:49 +00:00
|
|
|
Name: polkit-default-privs
|
2023-06-02 10:38:04 +00:00
|
|
|
Version: 1550+20230602.0c9c3c6
|
2012-07-05 15:39:11 +00:00
|
|
|
Release: 0
|
2008-09-24 15:23:49 +00:00
|
|
|
Summary: SUSE PolicyKit default permissions
|
2018-06-11 06:15:32 +00:00
|
|
|
License: GPL-2.0-or-later
|
2012-07-05 15:39:11 +00:00
|
|
|
Group: Productivity/Security
|
2019-01-14 15:59:23 +00:00
|
|
|
Source: polkit-default-privs-%version.tar.xz
|
2008-09-24 15:23:49 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Supplements: PolicyKit
|
2021-04-12 07:47:29 +00:00
|
|
|
Supplements: libpolkit0
|
2021-11-19 13:59:26 +00:00
|
|
|
BuildRequires: polkit
|
|
|
|
Requires(pre): polkit
|
2021-04-12 07:47:29 +00:00
|
|
|
Supplements: polkit
|
2008-09-24 15:23:49 +00:00
|
|
|
BuildArch: noarch
|
2019-02-06 13:26:52 +00:00
|
|
|
# please open bugreports at bugzilla.suse.com
|
2019-11-22 13:28:29 +00:00
|
|
|
URL: http://github.com/openSUSE/polkit-default-privs.git
|
2010-04-01 14:14:58 +00:00
|
|
|
PreReq: %fillup_prereq
|
2008-09-24 15:23:49 +00:00
|
|
|
|
|
|
|
%description
|
2019-02-06 13:26:52 +00:00
|
|
|
Predefined polkit profiles for different usage scenarios like desktop and
|
|
|
|
server. These profiles define the kind of authentication required for various
|
|
|
|
polkit actions used across applications.
|
2008-09-24 15:23:49 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
2017-11-24 09:36:14 +00:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT fillupdir="%{_fillupdir}"
|
2013-02-22 08:48:36 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/polkit-1/rules.d/
|
2013-03-11 07:00:21 +00:00
|
|
|
> $RPM_BUILD_ROOT/etc/polkit-1/rules.d/90-default-privs.rules
|
2008-09-24 15:23:49 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_only -ns security polkit_default_privs}
|
2022-09-19 11:04:18 +00:00
|
|
|
/usr/sbin/set_polkit_default_privs >/dev/null
|
2008-09-24 15:23:49 +00:00
|
|
|
|
|
|
|
%files
|
2021-07-23 08:24:47 +00:00
|
|
|
%define basedir %{_distconfdir}/polkit-default-privs
|
|
|
|
%define profiledir %{basedir}/profiles
|
2021-11-19 09:52:44 +00:00
|
|
|
%define confdir /etc/polkit-1
|
2019-02-06 13:26:52 +00:00
|
|
|
%doc README.md
|
2021-11-19 09:52:44 +00:00
|
|
|
%ghost %attr(0644,root,root) %{confdir}/rules.d/90-default-privs.rules
|
2021-07-23 08:24:47 +00:00
|
|
|
%dir %{basedir}
|
|
|
|
%dir %{profiledir}
|
|
|
|
%{profiledir}/easy
|
|
|
|
%{profiledir}/standard
|
|
|
|
%{profiledir}/restrictive
|
|
|
|
%{basedir}/local.template
|
2022-09-19 11:04:18 +00:00
|
|
|
/usr/sbin/chkstat-polkit
|
|
|
|
/usr/sbin/set_polkit_default_privs
|
2008-09-24 15:23:49 +00:00
|
|
|
%_mandir/man*/*
|
2017-11-23 14:57:57 +00:00
|
|
|
%{_fillupdir}/sysconfig.security-polkit_default_privs
|
2008-09-24 15:23:49 +00:00
|
|
|
|
|
|
|
%changelog
|