[DRBD-cvs] r1803 - branches/drbd-0.7

www-data www-data at garcon.linbit.com
Tue May 24 10:28:53 CEST 2005


Author: phil
Date: 2005-05-24 10:28:52 +0200 (Tue, 24 May 2005)
New Revision: 1803

Modified:
   branches/drbd-0.7/drbd.spec.in
Log:
Building on SuSE-9.3 needs the LOCALVERSION ...


Modified: branches/drbd-0.7/drbd.spec.in
===================================================================
--- branches/drbd-0.7/drbd.spec.in	2005-05-23 19:49:58 UTC (rev 1802)
+++ branches/drbd-0.7/drbd.spec.in	2005-05-24 08:28:52 UTC (rev 1803)
@@ -78,8 +78,13 @@
 make clean
 # note: MANDIR is not used anywhere in the makefiles
 #       maybe this should be changed
-#       unset LOCALVERSION for building on RHEL AS 4
-make all doc PREFIX=%{buildroot}/ MANDIR=%{_mandir} KDIR=%{kdir} LOCALVERSION=""
+if [ -e /etc/redhat-release ]; then
+       # unset LOCALVERSION for building on RHEL AS 4
+       make all doc PREFIX=%{buildroot}/ MANDIR=%{_mandir} KDIR=%{kdir} LOCALVERSION=""
+else
+       # LOCALVERSION necessary for building on SuSE-9.3
+       make all doc PREFIX=%{buildroot}/ MANDIR=%{_mandir} KDIR=%{kdir}
+fi
 %install
 make install PREFIX=%{buildroot}/ MANDIR=%{_mandir}
 cd drbd



More information about the drbd-cvs mailing list