2007-01-16 00:10:18 +01:00
|
|
|
#
|
2011-05-30 09:53:06 +02:00
|
|
|
# spec file for package dmraid
|
2007-01-16 00:10:18 +01:00
|
|
|
#
|
2014-05-28 10:49:19 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:10:18 +01:00
|
|
|
#
|
2008-08-14 01:50:28 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:10:18 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-01-09 10:34:39 +01:00
|
|
|
|
2007-01-16 00:10:18 +01:00
|
|
|
Name: dmraid
|
2011-12-20 21:55:27 +01:00
|
|
|
BuildRequires: autoconf
|
2012-01-09 10:34:39 +01:00
|
|
|
BuildRequires: automake
|
2011-12-20 21:55:27 +01:00
|
|
|
BuildRequires: device-mapper-devel
|
2008-10-16 01:20:37 +02:00
|
|
|
BuildRequires: libselinux-devel
|
2013-09-20 17:19:01 +02:00
|
|
|
BuildRequires: systemd-rpm-macros
|
2011-12-20 21:55:27 +01:00
|
|
|
BuildRequires: zlib-devel
|
2012-11-29 11:15:10 +01:00
|
|
|
Requires: aaa_base
|
2007-07-31 15:05:05 +02:00
|
|
|
Requires: kpartx
|
2008-03-12 19:45:02 +01:00
|
|
|
Url: http://people.redhat.com/~heinzm/sw/dmraid/src/
|
2007-01-16 00:10:18 +01:00
|
|
|
Summary: A Device-Mapper Software RAID Support Tool
|
2012-07-10 08:30:51 +02:00
|
|
|
License: GPL-2.0
|
2011-12-20 21:55:27 +01:00
|
|
|
Group: System/Base
|
2010-02-09 22:51:58 +01:00
|
|
|
Version: 1.0.0.rc16
|
2011-12-20 21:55:27 +01:00
|
|
|
Release: 0
|
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
|
2007-09-12 16:47:22 +02:00
|
|
|
Source3: README.SuSE
|
2008-07-24 22:19:53 +02:00
|
|
|
Source4: mkinitrd-setup.sh
|
|
|
|
Source5: mkinitrd-boot.sh
|
2013-09-20 17:19:01 +02:00
|
|
|
Source6: dmraid-activation.service
|
2010-02-09 22:51:58 +01:00
|
|
|
Patch1: dmraid-1.0.0.rc16-cvs-2010-02-02.patch
|
|
|
|
Patch2: dmraid-1.0.0.rc13-geometry.patch
|
|
|
|
Patch3: lib-install.patch
|
2010-09-16 12:19:44 +02:00
|
|
|
Patch4: handle_spaces
|
|
|
|
Patch5: remove_trylock
|
2011-09-22 01:59:12 +02:00
|
|
|
Patch6: rebuild.fix
|
|
|
|
Patch7: ddf-erase
|
2012-11-29 11:15:10 +01:00
|
|
|
Patch8: dmraid-move-var-lock-to-run-lock.patch
|
2013-09-20 17:19:01 +02:00
|
|
|
Patch9: dmraid-destdir.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
|
2013-09-20 17:19:01 +02:00
|
|
|
%{systemd_requires}
|
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
|
2010-02-09 22:51:58 +01:00
|
|
|
%setup -n dmraid/%{version}
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2007-01-16 00:10:18 +01:00
|
|
|
%patch3 -p1
|
2010-09-16 12:19:44 +02:00
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p2
|
2011-09-22 01:59:12 +02:00
|
|
|
%patch6 -p1
|
|
|
|
%patch7 -p1
|
2012-11-29 11:15:10 +01:00
|
|
|
%patch8 -p1
|
2013-09-20 17:19:01 +02:00
|
|
|
%patch9 -p1
|
2007-09-12 16:47:22 +02:00
|
|
|
cp %{SOURCE3} .
|
2007-01-16 00:10:18 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
#rm -f aclocal.m4
|
|
|
|
autoreconf -fi
|
|
|
|
rm -r autom4te.cache
|
2013-09-20 17:19:01 +02:00
|
|
|
%configure \
|
|
|
|
--libdir=/%_lib \
|
|
|
|
--sbindir=/sbin \
|
2008-08-21 22:40:26 +02:00
|
|
|
--with-user=`id -nu` --with-group=`id -ng` \
|
|
|
|
--enable-libselinux --enable-libsepol
|
|
|
|
make
|
2007-01-16 00:10:18 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/include/dmraid
|
2010-02-09 22:51:58 +01:00
|
|
|
rm $RPM_BUILD_ROOT/%_lib/libdmraid.a
|
|
|
|
rm $RPM_BUILD_ROOT/%_lib/libdmraid.so
|
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
|
2008-07-24 22:19:53 +02:00
|
|
|
install -d $RPM_BUILD_ROOT/lib/mkinitrd/scripts
|
|
|
|
install -m 755 %{S:4} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/setup-dmraid.sh
|
|
|
|
install -m 755 %{S:5} $RPM_BUILD_ROOT/lib/mkinitrd/scripts/boot-dmraid.sh
|
2013-09-20 17:19:01 +02:00
|
|
|
install -D -m 0644 %{S:6} %{buildroot}%{_unitdir}/dmraid-activation.service
|
|
|
|
install -d %{buildroot}%{_tmpfilesdir}
|
|
|
|
echo 'd /run/lock/dmraid 0700 root root -' > %{buildroot}%{_tmpfilesdir}/dmraid.conf
|
|
|
|
|
2014-05-28 10:49:19 +02:00
|
|
|
%pre
|
|
|
|
%service_add_pre dmraid-activation.service
|
|
|
|
|
2013-09-20 17:19:01 +02:00
|
|
|
%preun
|
|
|
|
%service_del_preun dmraid-activation.service
|
2007-02-25 23:22:45 +01:00
|
|
|
|
|
|
|
%post
|
2013-09-20 17:19:01 +02:00
|
|
|
/sbin/ldconfig
|
|
|
|
%service_add_post dmraid-activation.service
|
2008-09-05 22:32:04 +02:00
|
|
|
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
2007-02-25 23:22:45 +01:00
|
|
|
%{fillup_only}
|
|
|
|
|
|
|
|
%postun
|
2013-09-20 17:19:01 +02:00
|
|
|
/sbin/ldconfig
|
2014-05-28 10:49:19 +02:00
|
|
|
%service_del_postun dmraid-activation.service
|
2008-09-05 22:32:04 +02:00
|
|
|
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
2007-02-25 23:22:45 +01:00
|
|
|
%{insserv_cleanup}
|
2008-09-13 23:15:46 +02:00
|
|
|
|
2007-01-16 00:10:18 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
/sbin/dmraid
|
2010-02-09 22:51:58 +01:00
|
|
|
/sbin/dmevent_tool
|
2007-01-16 00:10:18 +01:00
|
|
|
%{_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
|
2008-07-24 22:19:53 +02:00
|
|
|
%dir /lib/mkinitrd
|
|
|
|
%dir /lib/mkinitrd/scripts
|
|
|
|
/lib/mkinitrd/scripts/setup-dmraid.sh
|
|
|
|
/lib/mkinitrd/scripts/boot-dmraid.sh
|
2010-02-09 22:51:58 +01:00
|
|
|
/%{_lib}/libdmraid-events-isw.so
|
|
|
|
/%{_lib}/libdmraid.so.1.0.0.rc16-3
|
2013-09-20 17:19:01 +02:00
|
|
|
%{_tmpfilesdir}/dmraid.conf
|
|
|
|
%{_unitdir}/dmraid-activation.service
|
2008-09-15 13:48:32 +02:00
|
|
|
|
2007-02-25 23:22:45 +01:00
|
|
|
%changelog
|