From: Nathan Cutler Date: Thu, 25 Feb 2016 20:51:36 +0000 (+0100) Subject: ceph.spec.in: use %{_prefix} for ocf instead of hardcoding /usr X-Git-Tag: v10.1.0~66^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=acfc06d9494fca8b0f4e6c8684709b0966e86c24;p=ceph.git ceph.spec.in: use %{_prefix} for ocf instead of hardcoding /usr This patch aligns the spec file with src/ocf/Makefile.am, which installs the resource agents in $(prefix)/lib/ocf. Signed-off-by: Nathan Cutler --- diff --git a/ceph.spec.in b/ceph.spec.in index 640f1aef7643..552f9669531d 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -1183,10 +1183,11 @@ fi %if %{with ocf} %files resource-agents %defattr(0755,root,root,-) -%dir /usr/lib/ocf -%dir /usr/lib/ocf/resource.d -%dir /usr/lib/ocf/resource.d/ceph -/usr/lib/ocf/resource.d/%{name}/* +# N.B. src/ocf/Makefile.am uses $(prefix)/lib +%dir %{_prefix}/lib/ocf +%dir %{_prefix}/lib/ocf/resource.d +%dir %{_prefix}/lib/ocf/resource.d/ceph +%{_prefix}/lib/ocf/resource.d/%{name}/* %endif #################################################################################