SHA256
1
0
forked from pool/permissions

Accepting request 546606 from home:pluskalm:branches:Base:System

- Cleanup spec file with spec-cleaner
- Drop conditions/definitions related to old distros

OBS-URL: https://build.opensuse.org/request/show/546606
OBS-URL: https://build.opensuse.org/package/show/Base:System/permissions?expand=0&rev=188
This commit is contained in:
Marcus Meissner 2017-11-30 10:35:19 +00:00 committed by Git OBS Bridge
parent f434538bbd
commit d85ec2cc61
2 changed files with 26 additions and 39 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Nov 30 08:24:44 UTC 2017 - mpluskal@suse.com
- Cleanup spec file with spec-cleaner
- Drop conditions/definitions related to old distros
-------------------------------------------------------------------
Wed Nov 29 17:02:20 UTC 2017 - astieger@suse.com

View File

@ -14,70 +14,51 @@
# 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
BuildRequires: libcap-devel
Name: permissions
Version: 20171129
Release: 0
Provides: aaa_base:/etc/permissions
PreReq: %fillup_prereq
Summary: SUSE Linux Default Permissions
# Maintained in github by the security team.
# Maintained in github by the security team.
License: GPL-2.0+
Group: Productivity/Security
%if 0%{?suse_version} >= 1330
Requires(pre): group(trusted)
#!BuildIgnore: group(trusted)
%endif
Source: permissions-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://github.com/openSUSE/permissions
Source: permissions-%{version}.tar.xz
BuildRequires: libcap-devel
#!BuildIgnore: group(trusted)
Requires(pre): %fillup_prereq
Requires(pre): group(trusted)
Provides: aaa_base:%{_sysconfdir}/permissions
%description
Permission settings of files and directories depending on the
local security settings. The local security setting (easy, secure,
or paranoid) can be configured in /etc/sysconfig/security.
Authors:
--------
Werner Fink
Roman Drahtmüller
Michael Schröder
Ludwig Nussel
Permission settings of files and directories depending on the local
security settings. The local security setting (easy, secure, or paranoid)
can be configured in /etc/sysconfig/security.
%prep
%setup -q
%build
make %{?_smp_mflags} CFLAGS="-W -Wall $RPM_OPT_FLAGS" FSCAPS_DEFAULT_ENABLED=0
make %{?_smp_mflags} CFLAGS="-W -Wall %{optflags}" FSCAPS_DEFAULT_ENABLED=0
%install
make DESTDIR="$RPM_BUILD_ROOT" install fillupdir=%_fillupdir
%make_install fillupdir=%{_fillupdir}
%post
%{fillup_only -n security}
# apply all potentially changed permissions
/usr/bin/chkstat --system
%{_bindir}/chkstat --system
%files
%defattr(-,root,root,-)
%config /etc/permissions
%config /etc/permissions.easy
%config /etc/permissions.secure
%config /etc/permissions.paranoid
%config(noreplace) /etc/permissions.local
%config %{_sysconfdir}/permissions
%config %{_sysconfdir}/permissions.easy
%config %{_sysconfdir}/permissions.secure
%config %{_sysconfdir}/permissions.paranoid
%config(noreplace) %{_sysconfdir}/permissions.local
%{_bindir}/chkstat
%{_mandir}/man5/permissions.5*
%{_mandir}/man8/chkstat.8*
%{_mandir}/man5/permissions.5%{ext_man}
%{_mandir}/man8/chkstat.8%{ext_man}
%{_fillupdir}/sysconfig.security
%changelog