]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - mdadm/mdadm.nm
Add a -debuginfo for every package that is not noarch.
[people/amarx/ipfire-3.x.git] / mdadm / mdadm.nm
CommitLineData
5e087958 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
5e087958
MT
4###############################################################################
5
802ea3af
MT
6name = mdadm
7version = 3.2.2
8release = 1
5e087958 9
802ea3af
MT
10groups = System/Base
11url = http://www.kernel.org/pub/linux/utils/raid/mdadm/
12license = GPLv2+
13summary = The mdadm program controls Linux md devices (software RAID arrays).
5e087958 14
802ea3af
MT
15description
16 The mdadm program is used to create, manage, and monitor Linux MD (software
17 RAID) devices. As such, it provides similar functionality to the raidtools
18 package. However, mdadm is a single program, and it can perform
19 almost all functions without a configuration file, though a configuration
5e087958 20 file can be used to help with some common tasks.
802ea3af
MT
21end
22
23source_dl =
5e087958 24
802ea3af
MT
25build
26 requires
27 groff
28 end
5e087958 29
802ea3af 30 CFLAGS += -fno-strict-aliasing
e55af06c 31
802ea3af
MT
32 prepare_cmds
33 sed -e "s/^INSTALL = .*/INSTALL = install/" -i Makefile
34 end
5e087958 35
802ea3af
MT
36 build
37 make %{PARALLELISMFLAGS} CXFLAGS="%{CFLAGS}" \
38 CWFLAGS= SYSCONFDIR="/etc" MDASSEMBLE_AUTO=1
39 end
5e087958 40
802ea3af
MT
41 install
42 make install BINDIR=/sbin DESTDIR=%{BUILDROOT}
5e087958 43
802ea3af
MT
44 mkdir -pv %{BUILDROOT}/var/run/mdadm
45 chmod 700 %{BUILDROOT}/var/run/mdadm
46 end
47end
5e087958 48
802ea3af
MT
49packages
50 package %{name}
1f9bc2f0 51
802ea3af
MT
52 package %{name}-devel
53 template DEVEL
54 end
1f9bc2f0
MT
55
56 package %{name}-debuginfo
57 template DEBUGINFO
58 end
802ea3af 59end