[mdadm/f17: 12/13] Only run make install-systemd on F18 and higher

Jes Sorensen jsorensen at fedoraproject.org
Thu Mar 7 16:23:34 UTC 2013


commit 0a98c0ed35f8095dd3c45a5889320a652e0dc926
Author: Jes Sorensen <Jes.Sorensen at redhat.com>
Date:   Thu Mar 7 16:42:31 2013 +0100

    Only run make install-systemd on F18 and higher
    
    Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>

 mdadm.spec |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/mdadm.spec b/mdadm.spec
index 73f778b..6cde615 100644
--- a/mdadm.spec
+++ b/mdadm.spec
@@ -93,8 +93,10 @@ make %{?_smp_mflags} CXFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}" mdadm
 
 %install
 rm -rf %{buildroot}
+%if !%{fedora17}
 make DESTDIR=%{buildroot} MANDIR=%{_mandir} BINDIR=/sbin SYSTEMD_DIR=%{_unitdir} install install-systemd
-%if %{fedora17}
+%else
+make DESTDIR=%{buildroot} MANDIR=%{_mandir} BINDIR=/sbin SYSTEMD_DIR=%{_unitdir} install
 install -Dp -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/mdmonitor
 %endif
 install -Dp -m 755 %{SOURCE2} %{buildroot}%{_sbindir}/raid-check


More information about the scm-commits mailing list