%define name dmraid %define version 1.0.0 %define extraver rc8 %define release 0.%{extraver}.1mdk %ifarch %{ix86} x86_64 %define use_dietlibc 1 %else %define use_dietlibc 0 %endif Summary: Device-mapper ATARAID tool Name: %{name} Version: %{version} Release: %{release} Source0: http://people.redhat.com/~heinzm/sw/dmraid/src/dmraid-%{version}.%{extraver}.tar.bz2 Patch0: dmraid-mdk.patch.bz2 Patch3: dmraid-lib64.patch.bz2 Patch4: dmraid-1.0.0.rc6-big-endian-build-fix.patch.bz2 License: GPL Group: System/Kernel and hardware BuildRoot: %{_tmppath}/%{name}-buildroot URL: http://people.redhat.com/~heinzm BuildRequires: device-mapper-devel >= 1.00.09 %if %{use_dietlibc} BuildRequires: dietlibc-devel %endif %description dmraid (Device-Mapper Raid tool) discovers, [de]activates and displays properties of software RAID sets (i.e. ATARAID) and contained DOS partitions using the device-mapper runtime of the 2.6 kernel. The following ATARAID types are supported on Linux 2.6: Highpoint HPT37X Highpoint HPT45X Intel Software RAID LSI Logic MegaRAID NVidia NForce Promise FastTrack Silicon Image Medley VIA Software RAID %prep %setup -q -n %{name}/%{version}.%{extraver} %patch0 -p2 -b .mdk %patch3 -p2 -b .lib64 %patch4 -p1 -b .ppc %build %if %{use_dietlibc} %configure2_5x --enable-dietlibc %else %configure2_5x --enable-static_build %endif make mv tools/dmraid tools/dmraid-static make clean %configure --with-user=`id -un` --with-group=`id -gn` make %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_libdir} %{buildroot}/sbin %makeinstall -s sbindir=%{buildroot}/sbin install tools/dmraid-static %{buildroot}/sbin %clean rm -rf %{buildroot} %files %defattr(644,root,root,755) %doc CHANGELOG KNOWN_BUGS README TODO doc/dmraid_design.txt %attr(755,root,root) /sbin/dmraid %attr(755,root,root) /sbin/dmraid-static %{_mandir}/man8/dmraid.8* %exclude %{_libdir} %changelog * Fri May 27 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.0-0.rc8.1mdk - new release * Thu Apr 28 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.0-0.rc7.1mdk - new release - rediff patch * Thu Mar 10 2005 Pixel <pixel@mandrakesoft.com> 1.0.0-0.rc6.4mdk - don't require old libdevmapper 1.00 * Wed Mar 08 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.0.0-0.rc6.3mdk - Patch4: fix typo in pdc big endian only code * Sat Mar 05 2005 Luca Berra <bluca@vodka.it> 1.0.0-0.rc6.2mdk - rebuild for new libdevmapper * Wed Mar 02 2005 Luca Berra <bluca@vodka.it> 1.0.0-0.rc6.1mdk - rc6 - removed p2 (big endian fix, merged upstream) - remove Prefix: tag * Mon Feb 21 2005 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.0.0-0.rc5f.3mdk - lib64 fixes * Sat Feb 12 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.0.0-0.rc5f.2mdk - fix build on big endian cpus * Thu Jan 13 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.0.0-0.rc5f.1mdk - new release - update description - spec cleanups * Tue Sep 07 2004 Luca Berra <bluca@vodka.it> 1.0.0-0.rc4.1mdk - rc4 - fix source url - remove -s from make (fixed upstream) * Sun Sep 05 2004 Luca Berra <bluca@vodka.it> 1.0.0-0.rc3.1mdk - rc3 - remove p0 merged upstream * Thu Jul 22 2004 Luca Berra <bluca@vodka.it> 1.0.0-0.rc2.1mdk - initial mandrakelinux release