]>
Commit | Line | Data |
---|---|---|
11a3e71d NB |
1 | Summary: mdadm is used for controlling Linux md devices (aka RAID arrays) |
2 | Name: mdadm | |
e0d19036 | 3 | Version: 0.8 |
11a3e71d NB |
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 | License: GPL | |
8 | Group: Utilities/System | |
e0d19036 | 9 | BuildRoot: %{_tmppath}/%{name}-root |
11a3e71d | 10 | Obsoletes: mdctl |
56eb10c0 NB |
11 | |
12 | %description | |
11a3e71d NB |
13 | mdadm is a program that can be used to create, manage, and monitor |
14 | Linux MD (Software RAID) devices. | |
15 | As such is provides similar functionality to the raidtools packages. | |
16 | The particular differences to raidtools is that mdadm is a single | |
17 | program, and it can perform (almost) all functions without a | |
18 | configuration file (that a config file can be used to help with | |
19 | some common tasks). | |
56eb10c0 NB |
20 | |
21 | %prep | |
22 | %setup -q | |
23 | ||
24 | %build | |
25 | # This is a debatable issue. The author of this RPM spec file feels that | |
26 | # people who install RPMs (especially given that the default RPM options | |
27 | # will strip the binary) are not going to be running gdb against the | |
28 | # program. | |
11a3e71d | 29 | make CFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}" |
56eb10c0 NB |
30 | |
31 | %install | |
32 | #rm -rf $RPM_BUILD_ROOT | |
11a3e71d NB |
33 | mkdir -p $RPM_BUILD_ROOT/%{_sbindir} |
34 | install -m755 mdadm $RPM_BUILD_ROOT/%{_sbindir} | |
e0d19036 | 35 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir} |
11a3e71d | 36 | install -m644 mdadm.conf-example $RPM_BUILD_ROOT/%{_sysconfdir}/mdadm.conf |
56eb10c0 NB |
37 | mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man4 |
38 | mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man5 | |
39 | mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8 | |
40 | install -m644 md.4 $RPM_BUILD_ROOT/%{_mandir}/man4/ | |
41 | install -m644 mdadm.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5/ | |
42 | install -m644 mdadm.8 $RPM_BUILD_ROOT/%{_mandir}/man8/ | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(-,root,root) | |
11a3e71d NB |
49 | %doc TODO ChangeLog mdadm.man mdadm.conf-example COPYING |
50 | %{_sbindir}/mdadm | |
51 | %config(noreplace,missingok)/%{_sysconfdir}/mdadm.conf | |
56eb10c0 NB |
52 | %{_mandir}/man*/md* |
53 | ||
54 | %changelog | |
11a3e71d NB |
55 | * Fri Mar 15 2002 <gleblanc@localhost.localdomain> |
56 | - beautification | |
57 | - made mdadm.conf non-replaceable config | |
58 | - renamed Copyright to License in the header | |
59 | - added missing license file | |
60 | - used macros for file paths | |
61 | ||
62 | * Fri Mar 15 2002 Luca Berra <bluca@comedia.it> | |
63 | - Added Obsoletes: mdctl | |
64 | - missingok for configfile | |
65 | ||
56eb10c0 NB |
66 | * Wed Mar 12 2002 NeilBrown <neilb@cse.unsw.edu.au> |
67 | - Add md.4 and mdadm.conf.5 man pages | |
11a3e71d | 68 | |
56eb10c0 NB |
69 | * Fri Mar 08 2002 Chris Siebenmann <cks@cquest.utoronto.ca> |
70 | - builds properly as non-root. | |
11a3e71d | 71 | |
56eb10c0 NB |
72 | * Fri Mar 08 2002 Derek Vadala <derek@cynicism.com> |
73 | - updated for 0.7, fixed /usr/share/doc and added manpage | |
11a3e71d | 74 | |
56eb10c0 NB |
75 | * Tue Aug 07 2001 Danilo Godec <danci@agenda.si> |
76 | - initial RPM build |