From 77f77f57126955fe4825f9740b9c75287adffef0 Mon Sep 17 00:00:00 2001 From: Doug Ledford Date: Mon, 21 Mar 2005 17:22:11 +0000 Subject: [PATCH] Build a static version of mdadm in case we need it, also build the simpler mdassemble statically for initrd usage. --- mdadm.spec | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/mdadm.spec b/mdadm.spec index 0651d48..3381454 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -1,13 +1,14 @@ Summary: mdadm controls Linux md devices (software RAID arrays) Name: mdadm Version: 1.9.0 -Release: 1.EL4 +Release: 2.EL4 Source: http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-%{version}.tgz Source1: mdmonitor.init Source2: mdmpd-0.4.tgz Source3: mdmpd.init Patch: mdadm-1.5.0-email.patch Patch2: mdadm-1.9.0-s390-build.patch +Patch3: mdadm-1.9.0-static-make.patch URL: http://www.cse.unsw.edu.au/~neilb/source/mdadm/ License: GPL Group: System Environment/Base @@ -26,13 +27,14 @@ file can be used to help with some common tasks. %setup -q -a 2 %patch -p1 -b .email %patch2 -p1 -b .s390 +%patch3 -p1 -b .static %build -make CXFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}" mdadm +make CXFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}" mdadm mdadm.static mdassemble.static make CXFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}" -C mdmpd mdmpd %install -make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} BINDIR=/sbin install +make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} BINDIR=/sbin install install.mdadmstatic install.mdassemble make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} BINDIR=/sbin -C mdmpd install install -D -m755 %{SOURCE1} $RPM_BUILD_ROOT/%{_initrddir}/mdmonitor install -D -m755 %{SOURCE3} $RPM_BUILD_ROOT/%{_initrddir}/mdmpd @@ -75,6 +77,10 @@ fi %attr(0700,root,root) %dir /var/run/mdadm %changelog +* Mon Mar 21 2005 Doug Ledford 1.9.0-2 +- Build mdadm.static and mdassemble (static as well) to be used in initrd + images + * Wed Mar 09 2005 Doug Ledford 1.9.0-1 - Initial upgrade to 1.9.0 and update of doc files - Fix an s390 build error