Build a static version of mdadm in case we need it, also build the simpler

mdassemble statically for initrd usage.
This commit is contained in:
Doug Ledford 2005-03-21 17:22:11 +00:00
parent c8b0a7c4b0
commit 77f77f5712

View File

@ -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 <dledford@redhat.com> 1.9.0-2
- Build mdadm.static and mdassemble (static as well) to be used in initrd
images
* Wed Mar 09 2005 Doug Ledford <dledford@redhat.com> 1.9.0-1
- Initial upgrade to 1.9.0 and update of doc files
- Fix an s390 build error