]> git.ipfire.org Git - thirdparty/mdadm.git/blob - mdadm.spec
5cf33d87b1b1856b09d27a273d21f3c118b7699c
[thirdparty/mdadm.git] / mdadm.spec
1 Summary: mdadm is used for controlling Linux md devices (aka RAID arrays)
2 Name: mdadm
3 Version: 0.7.1
4 Release: 1
5 Source: http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-%{version}.tgz
6 URL: http://www.cse.unsw.edu.au/~neilb/source/mdadm/
7 Copyright: GPL
8 Group: Utilities/System
9 BuildRoot: /var/tmp/%{name}-root
10 Packager: Danilo Godec <danci@agenda.si>
11
12 %description
13 mdadm is a single program that can be used to control Linux md devices. It
14 is intended to provide all the functionality of the mdtools and raidtools
15 but with a very different interface.
16
17 mdadm can perform all functions without a configuration file. There is the
18 option of using a configuration file, but not in the same way that raidtools
19 uses one.
20
21 raidtools uses a configuration file to describe how to create a RAID array,
22 and also uses this file partially to start a previously created RAID array.
23 Further, raidtools requires the configuration file for such things as
24 stopping a raid array, which needs to know nothing about the array.
25
26
27 %prep
28 %setup -q
29
30 %build
31 # This is a debatable issue. The author of this RPM spec file feels that
32 # people who install RPMs (especially given that the default RPM options
33 # will strip the binary) are not going to be running gdb against the
34 # program.
35 make CFLAGS="$RPM_OPT_FLAGS"
36
37 %install
38 #rm -rf $RPM_BUILD_ROOT
39 mkdir -p $RPM_BUILD_ROOT/sbin
40 install -m755 mdadm $RPM_BUILD_ROOT/sbin/
41 mkdir -p $RPM_BUILD_ROOT/etc
42 install -m644 mdadm.conf-example $RPM_BUILD_ROOT/etc/mdadm.conf
43 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man4
44 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man5
45 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
46 install -m644 md.4 $RPM_BUILD_ROOT/%{_mandir}/man4/
47 install -m644 mdadm.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5/
48 install -m644 mdadm.8 $RPM_BUILD_ROOT/%{_mandir}/man8/
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(-,root,root)
55 %doc TODO ChangeLog mdadm.man mdadm.conf-example
56 /sbin/mdadm
57 /etc/mdadm.conf
58 %{_mandir}/man*/md*
59
60 %changelog
61 * Wed Mar 12 2002 NeilBrown <neilb@cse.unsw.edu.au>
62 - Add md.4 and mdadm.conf.5 man pages
63 * Fri Mar 08 2002 Chris Siebenmann <cks@cquest.utoronto.ca>
64 - builds properly as non-root.
65 * Fri Mar 08 2002 Derek Vadala <derek@cynicism.com>
66 - updated for 0.7, fixed /usr/share/doc and added manpage
67 * Tue Aug 07 2001 Danilo Godec <danci@agenda.si>
68 - initial RPM build