]>
Commit | Line | Data |
---|---|---|
11a3e71d NB |
1 | Summary: mdadm is used for controlling Linux md devices (aka RAID arrays) |
2 | Name: mdadm | |
c11b1c3c | 3 | Version: 4.2_rc1 |
11a3e71d | 4 | Release: 1 |
8e41153c PM |
5 | Source: https://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.gz |
6 | URL: https://neil.brown.name/blog/mdadm | |
11a3e71d NB |
7 | License: GPL |
8 | Group: Utilities/System | |
e0d19036 | 9 | BuildRoot: %{_tmppath}/%{name}-root |
11a3e71d | 10 | Obsoletes: mdctl |
56eb10c0 | 11 | |
6f02172d | 12 | %description |
11a3e71d NB |
13 | mdadm is a program that can be used to create, manage, and monitor |
14 | Linux MD (Software RAID) devices. | |
56eb10c0 NB |
15 | |
16 | %prep | |
00b738b2 | 17 | %setup -q |
b83d95f3 NB |
18 | # we want to install in /sbin, not /usr/sbin... |
19 | %define _exec_prefix %{nil} | |
56eb10c0 NB |
20 | |
21 | %build | |
22 | # This is a debatable issue. The author of this RPM spec file feels that | |
23 | # people who install RPMs (especially given that the default RPM options | |
24 | # will strip the binary) are not going to be running gdb against the | |
25 | # program. | |
2d465520 | 26 | make CXFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}" |
56eb10c0 NB |
27 | |
28 | %install | |
c913b90e NB |
29 | make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} BINDIR=%{_sbindir} install |
30 | install -D -m644 mdadm.conf-example $RPM_BUILD_ROOT/%{_sysconfdir}/mdadm.conf | |
56eb10c0 NB |
31 | |
32 | %clean | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
35 | %files | |
36 | %defattr(-,root,root) | |
c913b90e | 37 | %doc TODO ChangeLog mdadm.conf-example COPYING |
11a3e71d | 38 | %{_sbindir}/mdadm |
1fbc5b7a | 39 | %{_sbindir}/mdmon |
52f6a11e | 40 | /usr/lib/udev/rules.d/01-md-raid-creating.rules |
6f02172d N |
41 | /usr/lib/udev/rules.d/63-md-raid-arrays.rules |
42 | /usr/lib/udev/rules.d/64-md-raid-assembly.rules | |
52f6a11e | 43 | /usr/lib/udev/rules.d/69-md-clustered-confirm-device.rules |
11a3e71d | 44 | %config(noreplace,missingok)/%{_sysconfdir}/mdadm.conf |
56eb10c0 NB |
45 | %{_mandir}/man*/md* |
46 | ||
47 | %changelog |