2007-01-16 00:10:18 +01:00
|
|
|
#
|
2007-07-10 17:33:49 +02:00
|
|
|
# spec file for package dmraid (Version 1.0.0.rc14)
|
2007-01-16 00:10:18 +01:00
|
|
|
#
|
2007-02-25 23:22:45 +01:00
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:10:18 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: dmraid
|
2007-03-29 11:59:58 +02:00
|
|
|
BuildRequires: device-mapper-devel zlib-devel
|
2007-07-31 15:05:05 +02:00
|
|
|
Requires: kpartx
|
2007-01-16 00:10:18 +01:00
|
|
|
URL: http://people.redhat.com/~heinzm/sw/dmraid/src/
|
2007-07-10 17:33:49 +02:00
|
|
|
License: GPL v2 or later
|
2007-01-16 00:10:18 +01:00
|
|
|
Group: System/Base
|
|
|
|
Autoreqprov: on
|
|
|
|
Summary: A Device-Mapper Software RAID Support Tool
|
2007-07-10 17:33:49 +02:00
|
|
|
Version: 1.0.0.rc14
|
2007-09-12 16:47:22 +02:00
|
|
|
Release: 18
|
2007-01-16 00:10:18 +01:00
|
|
|
Source: ftp://people.redhat.com/heinzm/sw/dmraid/src/dmraid-%{version}.tar.bz2
|
2007-02-25 23:22:45 +01:00
|
|
|
Source1: sysconfig.dmraid
|
|
|
|
Source2: boot.dmraid
|
2007-09-12 16:47:22 +02:00
|
|
|
Source3: README.SuSE
|
2007-01-16 00:10:18 +01:00
|
|
|
Patch0: dmraid_fixup_paths3.diff
|
|
|
|
Patch1: dmraid-add_uuid.patch
|
|
|
|
Patch2: dmraid_fixup_nvidia.diff
|
|
|
|
Patch3: dmraid_duplicate_args.patch
|
|
|
|
Patch4: dmraid-1.0.0.rc13-geometry.patch
|
|
|
|
Patch5: dmraid-1.0.0.rc13-jm_termination.patch
|
|
|
|
Patch6: dmraid-1.0.0.rc13-fix_macro.patch
|
2007-09-12 16:47:22 +02:00
|
|
|
Patch7: dmraid-pdc_max_sectors.patch
|
2007-01-16 00:10:18 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-02-25 23:22:45 +01:00
|
|
|
PreReq: %fillup_prereq
|
2007-01-16 00:10:18 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This software discovers, activates, deactivates, and displays
|
|
|
|
properties of software RAID sets, such as ATARAID, and contained DOS
|
|
|
|
partitions.
|
|
|
|
|
|
|
|
dmraid uses libdevmapper and the device-mapper kernel runtime to create
|
|
|
|
devices with respective mappings for the ATARAID sets discovered.
|
|
|
|
|
|
|
|
The following ATARAID types are supported:
|
|
|
|
|
|
|
|
- Highpoint HPT37X
|
|
|
|
|
|
|
|
- Highpoint HPT45X
|
|
|
|
|
|
|
|
- Intel Software RAID
|
|
|
|
|
|
|
|
- Promise FastTrak
|
|
|
|
|
|
|
|
- Silicon Image Medley
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Heinz Mauelshagen
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n dmraid/%{version}
|
|
|
|
%patch0 -p2
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p2
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
|
|
|
%patch6 -p1
|
2007-09-12 16:47:22 +02:00
|
|
|
%patch7 -p1
|
|
|
|
cp %{SOURCE3} .
|
2007-01-16 00:10:18 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
#rm -f aclocal.m4
|
|
|
|
autoreconf -fi
|
|
|
|
rm -r autom4te.cache
|
|
|
|
# Update config.{guess,sub}
|
|
|
|
%{?suse_update_config}
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
./configure --prefix=%{_prefix} \
|
|
|
|
--infodir=%{_infodir} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--sbindir=/sbin \
|
|
|
|
--with-user=`id -nu` --with-group=`id -ng`
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
|
|
|
|
&& rm -rf $RPM_BUILD_ROOT
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/include/dmraid
|
|
|
|
rm $RPM_BUILD_ROOT%{_libdir}/libdmraid.a
|
2007-02-25 23:22:45 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates
|
|
|
|
install -m644 %{SOURCE1} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.dmraid
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/init.d
|
|
|
|
install -m744 %{SOURCE2} $RPM_BUILD_ROOT/etc/init.d/boot.dmraid
|
|
|
|
|
|
|
|
%post
|
|
|
|
%{fillup_only}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%{insserv_cleanup}
|
2007-01-16 00:10:18 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
|
|
|
|
&& rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
#%{_libdir}/libdmraid.so
|
|
|
|
/sbin/dmraid
|
|
|
|
%{_mandir}/man8/*
|
2007-09-12 16:47:22 +02:00
|
|
|
%doc LICENSE LICENSE_GPL LICENSE_LGPL README README.SuSE TODO doc/*
|
2007-02-25 23:22:45 +01:00
|
|
|
/var/adm/fillup-templates/sysconfig.dmraid
|
|
|
|
/etc/init.d/boot.dmraid
|
2007-01-16 00:10:18 +01:00
|
|
|
|
2007-02-25 23:22:45 +01:00
|
|
|
%changelog
|
2007-09-12 16:47:22 +02:00
|
|
|
* Wed Sep 12 2007 - mkoenig@suse.de
|
|
|
|
- add quirk for maximum detected device size of some pdc card
|
|
|
|
[#215222]
|
2007-07-31 15:05:05 +02:00
|
|
|
* Tue Jul 31 2007 - hare@suse.de
|
|
|
|
- dmraid requires kpartx.
|
2007-07-30 20:29:12 +02:00
|
|
|
* Mon Jul 30 2007 - hare@suse.de
|
|
|
|
- Do not activate partitions from dmraid; udev handles it.
|
2007-07-10 17:33:49 +02:00
|
|
|
* Tue Jul 10 2007 - mkoenig@suse.de
|
|
|
|
- update to version 1.0.0.rc14
|
|
|
|
* bugfix release
|
2007-06-19 19:25:47 +02:00
|
|
|
* Tue Jun 19 2007 - mkoenig@suse.de
|
|
|
|
- use boot.localfs to avoid expansion problem
|
|
|
|
* Tue Jun 19 2007 - mkoenig@suse.de
|
|
|
|
- Add X-Start-Before: $local_fs dependency
|
2007-03-29 11:59:58 +02:00
|
|
|
* Thu Mar 29 2007 - mkoenig@suse.de
|
|
|
|
- Add zlib-devel to BuildRequires
|
2007-02-25 23:22:45 +01:00
|
|
|
* Tue Feb 20 2007 - mkoenig@suse.de
|
|
|
|
- provide boot script [#230708]
|
2007-01-16 00:10:18 +01:00
|
|
|
* Mon Dec 11 2006 - mkoenig@suse.de
|
|
|
|
- fix jm name string termination problem [#223843]
|
|
|
|
patch: dmraid-1.0.0.rc13-jm_termination.patch
|
|
|
|
- fix min, max macros
|
|
|
|
patch: dmraid-1.0.0.rc13-fix_macro.patch
|
|
|
|
* Thu Nov 23 2006 - mkoenig@suse.de
|
|
|
|
- fix geometry patch [#222110]
|
|
|
|
* Mon Nov 20 2006 - mkoenig@suse.de
|
|
|
|
- set geometry of dm device [#222110]
|
|
|
|
* Thu Nov 09 2006 - mkoenig@suse.de
|
|
|
|
- update to version 1.0.0.rc13
|
|
|
|
* Fixes for Promise FastTrak and Silicon Image Medley ATARAID
|
|
|
|
* Support for SNIA DDF1 and JBOD
|
|
|
|
* Thu Sep 14 2006 - ro@suse.de
|
|
|
|
- use device-mapper-devel in BuildRequires
|
|
|
|
* Tue Aug 29 2006 - hare@suse.de
|
|
|
|
- update to 1.0.0-rc11
|
|
|
|
- NVidia endianness fixes
|
|
|
|
- Add UUID to device-mapper tables
|
|
|
|
- Fixup '-cc' argument
|
|
|
|
* Wed Jan 25 2006 - mls@suse.de
|
|
|
|
- converted neededforbuild to BuildRequires
|
|
|
|
* Mon Dec 05 2005 - kukuk@suse.de
|
|
|
|
- Remove unused klibc-devel from neededforbuild
|
|
|
|
* Wed Jul 13 2005 - cadaha@suse.de
|
|
|
|
- update to 1.0.0-rc8, fix big endian build
|
|
|
|
* Wed Sep 22 2004 - cadaha@suse.de
|
|
|
|
- fix dmraid -rc output for unsupported devices
|
|
|
|
* Mon Sep 20 2004 - cadaha@suse.de
|
|
|
|
- created package
|