Accepting request 322021 from home:dimstar:Factory

- Pass --enable-tmpfiles.d=%{_tmpfilesdir} to configure: let's be
  specific about this feature, and not randomly rely on the
  presence/absence of /usr/lib/tmpfiles.d/systemd.conf.
- Add systemd-rpm-macros BuildRequires to ensure %_tmpfilesdir is
  defined.
- Add relevant %tmpfiles_create call to post scriptlet.

OBS-URL: https://build.opensuse.org/request/show/322021
OBS-URL: https://build.opensuse.org/package/show/Base:System/sudo?expand=0&rev=89
This commit is contained in:
Vítězslav Čížek 2015-08-14 10:55:19 +00:00 committed by Git OBS Bridge
parent 685fdbfa5f
commit 89d972c0f7
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Wed Aug 12 06:29:33 UTC 2015 - dimstar@opensuse.org
- Pass --enable-tmpfiles.d=%{_tmpfilesdir} to configure: let's be
specific about this feature, and not randomly rely on the
presence/absence of /usr/lib/tmpfiles.d/systemd.conf.
- Add systemd-rpm-macros BuildRequires to ensure %_tmpfilesdir is
defined.
- Add relevant %tmpfiles_create call to post scriptlet.
-------------------------------------------------------------------
Thu Jul 23 10:09:08 UTC 2015 - kstreitova@suse.com

View File

@ -37,6 +37,7 @@ BuildRequires: libselinux-devel
BuildRequires: libsss_sudo
BuildRequires: openldap2-devel
BuildRequires: pam-devel
BuildRequires: systemd-rpm-macros
BuildRequires: zlib-devel
Requires(pre): coreutils
Requires(pre): permissions
@ -84,6 +85,7 @@ export LDFLAGS="-pie"
--libexecdir=%{_libexecdir}/sudo \
--docdir=%{_docdir}/%{name} \
--with-noexec=%{_libexecdir}/sudo/sudo_noexec.so \
--enable-tmpfiles.d=%{_tmpfilesdir} \
--with-pam \
--with-ldap \
--with-selinux \
@ -135,6 +137,7 @@ chmod 0440 %{_sysconfdir}/sudoers
%else
%set_permissions /usr/bin/sudo
%endif
%tmpfiles_create %{_tmpfilesdir}/sudo.conf
%verifyscript
%verify_permissions -e /usr/bin/sudo
@ -169,6 +172,8 @@ chmod 0440 %{_sysconfdir}/sudoers
%{_libexecdir}/%{name}/system_group.so
%{_libexecdir}/%{name}/libsudo_util.so.*
%attr(0700,root,root) %dir %ghost %{_localstatedir}/lib/%{name}
%{_tmpfilesdir}/sudo.conf
%ghost %{_localstatedir}/lib/sudo/ts
%files devel
%defattr(-,root,root)