]> git.ipfire.org Git - thirdparty/mdadm.git/blame - mdadm.spec
mdadm-0.7.1
[thirdparty/mdadm.git] / mdadm.spec
CommitLineData
56eb10c0
NB
1Summary: mdadm is used for controlling Linux md devices (aka RAID arrays)
2Name: mdadm
3Version: 0.7.1
4Release: 1
5Source: http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-%{version}.tgz
6URL: http://www.cse.unsw.edu.au/~neilb/source/mdadm/
7Copyright: GPL
8Group: Utilities/System
9BuildRoot: /var/tmp/%{name}-root
10Packager: Danilo Godec <danci@agenda.si>
11
12%description
13mdadm is a single program that can be used to control Linux md devices. It
14is intended to provide all the functionality of the mdtools and raidtools
15but with a very different interface.
16
17mdadm can perform all functions without a configuration file. There is the
18option of using a configuration file, but not in the same way that raidtools
19uses one.
20
21raidtools uses a configuration file to describe how to create a RAID array,
22and also uses this file partially to start a previously created RAID array.
23Further, raidtools requires the configuration file for such things as
24stopping 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.
35make CFLAGS="$RPM_OPT_FLAGS"
36
37%install
38#rm -rf $RPM_BUILD_ROOT
39mkdir -p $RPM_BUILD_ROOT/sbin
40install -m755 mdadm $RPM_BUILD_ROOT/sbin/
41mkdir -p $RPM_BUILD_ROOT/etc
42install -m644 mdadm.conf-example $RPM_BUILD_ROOT/etc/mdadm.conf
43mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man4
44mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man5
45mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
46install -m644 md.4 $RPM_BUILD_ROOT/%{_mandir}/man4/
47install -m644 mdadm.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5/
48install -m644 mdadm.8 $RPM_BUILD_ROOT/%{_mandir}/man8/
49
50%clean
51rm -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