[xen] make previous changes conditional on ocaml being built
myoung
myoung at fedoraproject.org
Thu Oct 24 21:44:37 UTC 2013
commit 3790789c259dd3683c17aa7ebb02e4b0d1f9d4ec
Author: Michael Young <m.a.young at durham.ac.uk>
Date: Thu Oct 24 22:43:42 2013 +0100
make previous changes conditional on ocaml being built
xen.spec | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/xen.spec b/xen.spec
index cd4719a..9938660 100644
--- a/xen.spec
+++ b/xen.spec
@@ -445,7 +445,9 @@ install -m 755 %{SOURCE48} %{buildroot}%{_libexecdir}/xendomains
mkdir -p %{buildroot}/usr/lib/tmpfiles.d
install -m 644 %{SOURCE49} %{buildroot}/usr/lib/tmpfiles.d/xen.conf
%endif
+%if %build_ocaml
install -m 644 %{SOURCE50} %{buildroot}%{_unitdir}/oxenstored.service
+%endif
# config file only used for hotplug, Fedora uses udev instead
rm -f %{buildroot}/%{_sysconfdir}/sysconfig/xend
@@ -557,6 +559,7 @@ if [ -f /sbin/grub2-mkconfig -a -f /boot/grub2/grub.cfg ]; then
fi
%endif
+%if %build_ocaml
%post ocaml
%if %with_systemd
if [ $1 == 1 ]; then
@@ -570,6 +573,7 @@ if [ $1 == 0 ]; then
/bin/systemctl disable oxenstored.service
fi
%endif
+%endif
%clean
rm -rf %{buildroot}
More information about the scm-commits
mailing list