]> git.ipfire.org Git - thirdparty/mdadm.git/blame - mdadm.spec
Create: support --readonly flag.
[thirdparty/mdadm.git] / mdadm.spec
CommitLineData
11a3e71d
NB
1Summary: mdadm is used for controlling Linux md devices (aka RAID arrays)
2Name: mdadm
3b2aad6e 3Version: 3.2.5
11a3e71d 4Release: 1
f648834d 5Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.gz
e5bddffd 6URL: http://neil.brown.name/blog/mdadm
11a3e71d
NB
7License: GPL
8Group: Utilities/System
e0d19036 9BuildRoot: %{_tmppath}/%{name}-root
11a3e71d 10Obsoletes: mdctl
56eb10c0
NB
11
12%description
11a3e71d
NB
13mdadm is a program that can be used to create, manage, and monitor
14Linux MD (Software RAID) devices.
15As such is provides similar functionality to the raidtools packages.
16The particular differences to raidtools is that mdadm is a single
17program, and it can perform (almost) all functions without a
18configuration file (that a config file can be used to help with
19some common tasks).
56eb10c0
NB
20
21%prep
00b738b2 22%setup -q
b83d95f3
NB
23# we want to install in /sbin, not /usr/sbin...
24%define _exec_prefix %{nil}
56eb10c0
NB
25
26%build
27# This is a debatable issue. The author of this RPM spec file feels that
28# people who install RPMs (especially given that the default RPM options
29# will strip the binary) are not going to be running gdb against the
30# program.
2d465520 31make CXFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}"
56eb10c0
NB
32
33%install
c913b90e
NB
34make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} BINDIR=%{_sbindir} install
35install -D -m644 mdadm.conf-example $RPM_BUILD_ROOT/%{_sysconfdir}/mdadm.conf
56eb10c0
NB
36
37%clean
38rm -rf $RPM_BUILD_ROOT
39
40%files
41%defattr(-,root,root)
c913b90e 42%doc TODO ChangeLog mdadm.conf-example COPYING
11a3e71d 43%{_sbindir}/mdadm
1fbc5b7a
N
44%{_sbindir}/mdmon
45/lib/udev/rules.d/64-md-raid.rules
11a3e71d 46%config(noreplace,missingok)/%{_sysconfdir}/mdadm.conf
56eb10c0
NB
47%{_mandir}/man*/md*
48
49%changelog
2d465520
NB
50* Fri May 10 2002 <neilb@cse.unsw.edu.au>
51- update to 1.0.0
52- Set CXFLAGS instead of CFLAGS
53
c913b90e 54* Sat Apr 6 2002 <neilb@cse.unsw.edu.au>
9a4e08d2 55- change install to use "make install"
c913b90e 56
11a3e71d
NB
57* Fri Mar 15 2002 <gleblanc@localhost.localdomain>
58- beautification
59- made mdadm.conf non-replaceable config
60- renamed Copyright to License in the header
61- added missing license file
62- used macros for file paths
63
64* Fri Mar 15 2002 Luca Berra <bluca@comedia.it>
65- Added Obsoletes: mdctl
66- missingok for configfile
67
56eb10c0
NB
68* Wed Mar 12 2002 NeilBrown <neilb@cse.unsw.edu.au>
69- Add md.4 and mdadm.conf.5 man pages
11a3e71d 70
56eb10c0
NB
71* Fri Mar 08 2002 Chris Siebenmann <cks@cquest.utoronto.ca>
72- builds properly as non-root.
11a3e71d 73
56eb10c0
NB
74* Fri Mar 08 2002 Derek Vadala <derek@cynicism.com>
75- updated for 0.7, fixed /usr/share/doc and added manpage
11a3e71d 76
56eb10c0
NB
77* Tue Aug 07 2001 Danilo Godec <danci@agenda.si>
78- initial RPM build