]> git.pld-linux.org Git - packages/dmraid.git/commitdiff
- initrd bcond, cosmetics
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 21 Feb 2005 19:45:59 +0000 (19:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dmraid.spec -> 1.8

dmraid.spec

index 07b3375b642a51061d04d8bd7b7373ca39188228..bb1dcff99ff75ebacf4fbeb6803eb14319e787b5 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without initrd  # without initrd version
+#
 Summary:       Device-mapper RAID tool
 Summary(pl):   Narzêdzie do RAID-u opartego o device-mapper
 Name:          dmraid
@@ -12,7 +16,7 @@ URL:          http://people.redhat.com/~heinzm/sw/dmraid/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: device-mapper-devel
-BuildRequires: device-mapper-static
+%{?with_initrd:BuildRequires:  device-mapper-static}
 BuildRequires: gettext-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -31,10 +35,10 @@ Summary(pl):        Narz
 Group:         Base
 
 %description initrd
-Static version of dmraid
+Statically linked version of dmraid utility.
 
 %description initrd -l pl
-Wersja statyczna dmraid
+Statycznie zlinkowana wersja narzêdzia dmraid.
 
 %prep
 %setup -q -n %{name}
@@ -46,11 +50,15 @@ cp -f /usr/share/automake/config.sub autoconf
 %{__gettextize}
 %{__aclocal}
 %{__autoconf}
-%configure --enable-static_link
-%{__make}
-cp tools/dmraid{,-initrd}
 
+%if %{with initrd}
+%configure \
+       --enable-static_link
+%{__make}
+cp -f tools/dmraid{,-initrd}
 %{__make} clean
+%endif
+
 %configure 
 %{__make}
 
@@ -70,6 +78,8 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_sbindir}/*
 %{_mandir}/man8/*
 
+%if %{with initrd}
 %files initrd
 %defattr(644,root,root,755)
 %attr(755,root,root) /sbin/*
+%endif
This page took 0.126104 seconds and 4 git commands to generate.