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