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