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*