Marcus Meissner
fd685e2e60
- Only require libmozjs185-1_0 on openSUSE up to 12.3: + On openSUSE 13.1, we use libmozjs-17_0 + Since polkit 0.111, the mozjs library parser is no longer optional. For this reason, we also do not have to worry to Require the correct library in this case anymore. OBS-URL: https://build.opensuse.org/request/show/182310 OBS-URL: https://build.opensuse.org/package/show/Base:System/polkit-default-privs?expand=0&rev=161
77 lines
2.1 KiB
RPMSpec
77 lines
2.1 KiB
RPMSpec
#
|
|
# spec file for package polkit-default-privs
|
|
#
|
|
# Copyright (c) 2013 SUSE LINUX Products 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
|
|
|
|
|
|
Name: polkit-default-privs
|
|
Version: 13.1
|
|
Release: 0
|
|
Summary: SUSE PolicyKit default permissions
|
|
License: GPL-2.0+
|
|
Group: Productivity/Security
|
|
Source: polkit-default-privs-%version.tar.bz2
|
|
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
|
|
Url: http://git.opensuse.org/?p=projects/polkit-default-privs.git
|
|
PreReq: %fillup_prereq
|
|
|
|
%description
|
|
Different default privilege settings depending on local configuration
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Ludwig Nussel
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
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
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%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*/*
|
|
/var/adm/fillup-templates/sysconfig.security-polkit_default_privs
|
|
|
|
%changelog
|