]> git.ipfire.org Git - thirdparty/mdadm.git/blame - mdadm.spec
mdadm-0.7.2
[thirdparty/mdadm.git] / mdadm.spec
CommitLineData
11a3e71d
NB
1Summary: mdadm is used for controlling Linux md devices (aka RAID arrays)
2Name: mdadm
3Version: 0.7.2
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/
7License: GPL
8Group: Utilities/System
9BuildRoot: ${_tmppath}/%{name}-root
10Packager: Danilo Godec <danci@agenda.si> (et.al.)
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
23%setup -q
24
25%build
26# This is a debatable issue. The author of this RPM spec file feels that
27# people who install RPMs (especially given that the default RPM options
28# will strip the binary) are not going to be running gdb against the
29# program.
11a3e71d 30make CFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}"
56eb10c0
NB
31
32%install
33#rm -rf $RPM_BUILD_ROOT
11a3e71d
NB
34mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
35install -m755 mdadm $RPM_BUILD_ROOT/%{_sbindir}
36mkdir -p $RPM_BUILD_ROOT/${_sysconfdir}
37install -m644 mdadm.conf-example $RPM_BUILD_ROOT/%{_sysconfdir}/mdadm.conf
56eb10c0
NB
38mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man4
39mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man5
40mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
41install -m644 md.4 $RPM_BUILD_ROOT/%{_mandir}/man4/
42install -m644 mdadm.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5/
43install -m644 mdadm.8 $RPM_BUILD_ROOT/%{_mandir}/man8/
44
45%clean
46rm -rf $RPM_BUILD_ROOT
47
48%files
49%defattr(-,root,root)
11a3e71d
NB
50%doc TODO ChangeLog mdadm.man mdadm.conf-example COPYING
51%{_sbindir}/mdadm
52%config(noreplace,missingok)/%{_sysconfdir}/mdadm.conf
56eb10c0
NB
53%{_mandir}/man*/md*
54
55%changelog
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