Sophie

Sophie

distrib > Arklinux > devel > i586 > by-pkgid > 864897aaa2a755c11ce36bb0af3b0dfc > files > 7

raidtools-1.00.3-3ark.src.rpm

Summary: Tools for creating and maintaining software RAID devices.
Name: raidtools
Version: 1.00.3
Release: 3ark
License: GPL
Group: System Environment/Base
Source: http://people.redhat.com/mingo/raidtools/raidtools-%{version}.tar.bz2
Source1: raidautorun.c
Patch: raidtools-1.00.3-s390x.patch
Patch1: raidtools-1.00.3-gcc33.patch
Patch2: raidtools-1.00.3-raidstop.patch
Patch3: raidtools-1.00.3-2.6.patch
BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: popt autoconf
Prereq: MAKEDEV >= 3.0
Obsoletes: md, md-tools
Conflicts: kernel < 2.2

%description
The raidtools package includes the tools you need to set up and
maintain a software RAID device (using two or more disk drives in
combination for fault tolerance and improved performance) on a Linux
system.

Install raidtools if you need to set up RAID on your system.

%prep
%setup -q
%patch -p1 -b .s390x~
%patch1 -p1 -b .gcc33~
%patch2 -p1 -b .raidstop~
%patch3 -p1 -b .26~

%build
autoconf
autoheader
%configure --sbindir=/sbin
make %{?_smp_mflags}
gcc $RPM_OPT_FLAGS -o raidautorun %SOURCE1
strip -R .comment --strip-unneeded raidautorun

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/dev
make ROOTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install_bin install_doc
install -c -m 755 raidautorun $RPM_BUILD_ROOT/sbin

%files
%defattr(-,root,root)
/sbin/*
%{_mandir}/*/*
%doc COPYING README *.sample

%changelog
* Mon Oct 25 2004 Bernhard Rosenkraenzer <bero@arklinux.org> 1.00.3-3ark
- Add raidautorun

* Fri Oct 22 2004 Bernhard Rosenkraenzer <bero@arklinux.org> 1.00.3-2ark
- Make it compile with 2.6 headers
- Don't MAKEDEV -m 16 md in %%post, the dev package already has the
  md devices

* Wed Aug 27 2003 Bernhard Rosenkraenzer <bero@arklinux.org> 1.00.3-1ark
- Initial Ark Linux build
- Fix spec file
- Don't own %{_mandir}