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:
parent
f434538bbd
commit
d85ec2cc61
@ -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
|
Wed Nov 29 17:02:20 UTC 2017 - astieger@suse.com
|
||||||
|
|
||||||
|
@ -14,70 +14,51 @@
|
|||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# 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
|
Name: permissions
|
||||||
Version: 20171129
|
Version: 20171129
|
||||||
Release: 0
|
Release: 0
|
||||||
Provides: aaa_base:/etc/permissions
|
|
||||||
PreReq: %fillup_prereq
|
|
||||||
Summary: SUSE Linux Default Permissions
|
Summary: SUSE Linux Default Permissions
|
||||||
# Maintained in github by the security team.
|
# Maintained in github by the security team.
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: Productivity/Security
|
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
|
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
|
%description
|
||||||
Permission settings of files and directories depending on the
|
Permission settings of files and directories depending on the local
|
||||||
local security settings. The local security setting (easy, secure,
|
security settings. The local security setting (easy, secure, or paranoid)
|
||||||
or paranoid) can be configured in /etc/sysconfig/security.
|
can be configured in /etc/sysconfig/security.
|
||||||
|
|
||||||
|
|
||||||
Authors:
|
|
||||||
--------
|
|
||||||
Werner Fink
|
|
||||||
Roman Drahtmüller
|
|
||||||
Michael Schröder
|
|
||||||
Ludwig Nussel
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%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
|
%install
|
||||||
make DESTDIR="$RPM_BUILD_ROOT" install fillupdir=%_fillupdir
|
%make_install fillupdir=%{_fillupdir}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{fillup_only -n security}
|
%{fillup_only -n security}
|
||||||
# apply all potentially changed permissions
|
# apply all potentially changed permissions
|
||||||
/usr/bin/chkstat --system
|
%{_bindir}/chkstat --system
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%config %{_sysconfdir}/permissions
|
||||||
%config /etc/permissions
|
%config %{_sysconfdir}/permissions.easy
|
||||||
%config /etc/permissions.easy
|
%config %{_sysconfdir}/permissions.secure
|
||||||
%config /etc/permissions.secure
|
%config %{_sysconfdir}/permissions.paranoid
|
||||||
%config /etc/permissions.paranoid
|
%config(noreplace) %{_sysconfdir}/permissions.local
|
||||||
%config(noreplace) /etc/permissions.local
|
|
||||||
%{_bindir}/chkstat
|
%{_bindir}/chkstat
|
||||||
%{_mandir}/man5/permissions.5*
|
%{_mandir}/man5/permissions.5%{ext_man}
|
||||||
%{_mandir}/man8/chkstat.8*
|
%{_mandir}/man8/chkstat.8%{ext_man}
|
||||||
%{_fillupdir}/sysconfig.security
|
%{_fillupdir}/sysconfig.security
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user