ceph.spec.in: use macros for standard directories

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2013-04-04 18:21:31 +02:00
parent a8362f5c9a
commit 4b90a958d1

View File

@ -307,14 +307,14 @@ install -D -m 644 udev/50-rbd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/50-rbd.rule
install -D -m 644 udev/95-ceph-osd.rules $RPM_BUILD_ROOT/lib/udev/rules.d/95-ceph-osd.rules
#set up placeholder directories
mkdir -p $RPM_BUILD_ROOT/etc/ceph
mkdir -p $RPM_BUILD_ROOT/var/log/ceph
mkdir -p $RPM_BUILD_ROOT/var/lib/ceph/tmp
mkdir -p $RPM_BUILD_ROOT/var/lib/ceph/mon
mkdir -p $RPM_BUILD_ROOT/var/lib/ceph/osd
mkdir -p $RPM_BUILD_ROOT/var/lib/ceph/mds
mkdir -p $RPM_BUILD_ROOT/var/lib/ceph/bootstrap-osd
mkdir -p $RPM_BUILD_ROOT/var/lib/ceph/bootstrap-mds
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ceph
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/tmp
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/mon
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/osd
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/mds
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/bootstrap-osd
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/ceph/bootstrap-mds
%if %{defined suse_version}