]> git.ipfire.org Git - thirdparty/mdadm.git/blob - mdadm.spec
Release 2.4-pre1
[thirdparty/mdadm.git] / mdadm.spec
1 Summary: mdadm is used for controlling Linux md devices (aka RAID arrays)
2 Name: mdadm
3 Version: 2.4_pre1
4 Release: 1
5 #Source: http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-%{version}.tgz
6 Source: http://www.cse.unsw.edu.au/~neilb/source/mdadm/mdadm-2.4-pre1.tgz
7 URL: http://www.cse.unsw.edu.au/~neilb/source/mdadm/
8 License: GPL
9 Group: Utilities/System
10 BuildRoot: %{_tmppath}/%{name}-root
11 Obsoletes: mdctl
12
13 %description
14 mdadm is a program that can be used to create, manage, and monitor
15 Linux MD (Software RAID) devices.
16 As such is provides similar functionality to the raidtools packages.
17 The particular differences to raidtools is that mdadm is a single
18 program, and it can perform (almost) all functions without a
19 configuration file (that a config file can be used to help with
20 some common tasks).
21
22 %prep
23 %setup -q -n mdadm-2.4-pre1
24 # we want to install in /sbin, not /usr/sbin...
25 %define _exec_prefix %{nil}
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.
32 make CXFLAGS="$RPM_OPT_FLAGS" SYSCONFDIR="%{_sysconfdir}"
33
34 %install
35 make DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} BINDIR=%{_sbindir} install
36 install -D -m644 mdadm.conf-example $RPM_BUILD_ROOT/%{_sysconfdir}/mdadm.conf
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(-,root,root)
43 %doc TODO ChangeLog mdadm.conf-example COPYING
44 %{_sbindir}/mdadm
45 %config(noreplace,missingok)/%{_sysconfdir}/mdadm.conf
46 %{_mandir}/man*/md*
47
48 %changelog
49 * Fri May 10 2002 <neilb@cse.unsw.edu.au>
50 - update to 1.0.0
51 - Set CXFLAGS instead of CFLAGS
52
53 * Sat Apr 6 2002 <neilb@cse.unsw.edu.au>
54 - change install to use "make install"
55
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
67 * Wed Mar 12 2002 NeilBrown <neilb@cse.unsw.edu.au>
68 - Add md.4 and mdadm.conf.5 man pages
69
70 * Fri Mar 08 2002 Chris Siebenmann <cks@cquest.utoronto.ca>
71 - builds properly as non-root.
72
73 * Fri Mar 08 2002 Derek Vadala <derek@cynicism.com>
74 - updated for 0.7, fixed /usr/share/doc and added manpage
75
76 * Tue Aug 07 2001 Danilo Godec <danci@agenda.si>
77 - initial RPM build