From: sysrich Date: Sat, 25 Nov 2017 20:02:15 +0000 (+0100) Subject: build/ops: rpm: use %_fillupdir macro in openSUSE/SLES X-Git-Tag: v13.0.2~449^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2305bf06f8d3a6b51432f0f7d184d6235134a69d;p=ceph-ci.git build/ops: rpm: use %_fillupdir macro in openSUSE/SLES Replace references to /var/adm/fillup-templates with new %_fillupdir macro Fixes: https://bugzilla.opensuse.org/show_bug.cgi?id=1069468 Signed-off-by: Richard Brown --- diff --git a/ceph.spec.in b/ceph.spec.in index a2d2c31675c..947db58190e 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -34,6 +34,10 @@ %bcond_with ceph_test_package %bcond_with cephfs_java %bcond_without lowmem_builder +#Compat macro for new _fillupdir macro introduced in Nov 2017 +%if ! %{defined _fillupdir} + %define _fillupdir /var/adm/fillup-templates +%endif %if 0%{?is_opensuse} %bcond_without lttng %else @@ -896,7 +900,7 @@ install -m 0644 -D src/etc-rbdmap %{buildroot}%{_sysconfdir}/ceph/rbdmap install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_sysconfdir}/sysconfig/ceph %endif %if 0%{?suse_version} -install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name} +install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_fillupdir}/sysconfig.%{name} %endif install -m 0644 -D systemd/ceph.tmpfiles.d %{buildroot}%{_tmpfilesdir}/ceph-common.conf install -m 0644 -D systemd/50-ceph.preset %{buildroot}%{_libexecdir}/systemd/system-preset/50-ceph.preset @@ -980,7 +984,7 @@ rm -rf %{buildroot} %config(noreplace) %{_sysconfdir}/sysconfig/ceph %endif %if 0%{?suse_version} -%{_localstatedir}/adm/fillup-templates/sysconfig.* +%{_fillupdir}/sysconfig.* %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-mon %config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ceph-osd-mds %endif