dmraid/dmraid.spec

170 lines
4.7 KiB
RPMSpec
Raw Normal View History

#
# spec file for package dmraid (Version 1.0.0.rc14)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
BuildRequires: device-mapper-devel zlib-devel
Requires: kpartx
URL: http://people.redhat.com/~heinzm/sw/dmraid/src/
License: GPL v2 or later
Group: System/Base
Autoreqprov: on
Summary: A Device-Mapper Software RAID Support Tool
Version: 1.0.0.rc14
Release: 18
Source: ftp://people.redhat.com/heinzm/sw/dmraid/src/dmraid-%{version}.tar.bz2
Source1: sysconfig.dmraid
Source2: boot.dmraid
Source3: README.SuSE
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
Patch7: dmraid-pdc_max_sectors.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %fillup_prereq
%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
%patch7 -p1
cp %{SOURCE3} .
%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
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}
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] \
&& rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
#%{_libdir}/libdmraid.so
/sbin/dmraid
%{_mandir}/man8/*
%doc LICENSE LICENSE_GPL LICENSE_LGPL README README.SuSE TODO doc/*
/var/adm/fillup-templates/sysconfig.dmraid
/etc/init.d/boot.dmraid
%changelog
* Wed Sep 12 2007 - mkoenig@suse.de
- add quirk for maximum detected device size of some pdc card
[#215222]
* Tue Jul 31 2007 - hare@suse.de
- dmraid requires kpartx.
* Mon Jul 30 2007 - hare@suse.de
- Do not activate partitions from dmraid; udev handles it.
* Tue Jul 10 2007 - mkoenig@suse.de
- update to version 1.0.0.rc14
* bugfix release
* 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
* Thu Mar 29 2007 - mkoenig@suse.de
- Add zlib-devel to BuildRequires
* Tue Feb 20 2007 - mkoenig@suse.de
- provide boot script [#230708]
* 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