From e78007150a7758b6aba1a98a1e1dfc1e65a9aa9bf445068277eaead52416c69b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Str=C3=B6der?= Date: Thu, 23 Nov 2017 14:51:00 +0000 Subject: [PATCH] Accepting request 544643 from home:RBrownSUSE:branches:network:ldap Replace references to /var/adm/fillup-templates with new %_fillupdir macro (boo#1069468) OBS-URL: https://build.opensuse.org/request/show/544643 OBS-URL: https://build.opensuse.org/package/show/network:ldap/openldap2?expand=0&rev=197 --- openldap2.changes | 6 ++++++ openldap2.spec | 11 ++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/openldap2.changes b/openldap2.changes index 5942265..adc7875 100644 --- a/openldap2.changes +++ b/openldap2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Nov 23 13:36:52 UTC 2017 - rbrown@suse.com + +- Replace references to /var/adm/fillup-templates with new + %_fillupdir macro (boo#1069468) + ------------------------------------------------------------------- Mon Oct 2 18:15:46 UTC 2017 - jengelh@inai.de diff --git a/openldap2.spec b/openldap2.spec index 038b1e5..42d46db 100644 --- a/openldap2.spec +++ b/openldap2.spec @@ -16,6 +16,11 @@ # +#Compat macro for new _fillupdir macro introduced in Nov 2017 +%if ! %{defined _fillupdir} + %define _fillupdir /var/adm/fillup-templates +%endif + %define run_test_suite 0 %define version_main 2.4.45 @@ -375,8 +380,8 @@ popd # Install ppolicy check module's manual page install -m 0644 %{S:203}.gz %{buildroot}%{_mandir}/man5/ -mkdir -p ${RPM_BUILD_ROOT}/var/adm/fillup-templates -install -m 644 %{SOURCE16} ${RPM_BUILD_ROOT}/var/adm/fillup-templates/sysconfig.openldap +mkdir -p ${RPM_BUILD_ROOT}%{_fillupdir} +install -m 644 %{SOURCE16} ${RPM_BUILD_ROOT}%{_fillupdir}/sysconfig.openldap install -m 644 *.ldif ${RPM_BUILD_ROOT}%{_sysconfdir}/openldap/schema install -m 644 *.schema ${RPM_BUILD_ROOT}%{_sysconfdir}/openldap/schema # Install default and sample configuration files @@ -471,7 +476,7 @@ fi %dir %{_sysconfdir}/openldap %dir %attr(0770, ldap, ldap) %{_sysconfdir}/openldap/slapd.d %dir %{_sysconfdir}/openldap/schema -/var/adm/fillup-templates/sysconfig.openldap +%{_fillupdir}/sysconfig.openldap %{_sbindir}/slap* %{_sbindir}/rcslapd %{_libdir}/openldap/back_bdb*