]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blame - dmraid/dmraid.nm
cryptsetup-luks: Move everything to /usr.
[people/amarx/ipfire-3.x.git] / dmraid / dmraid.nm
CommitLineData
717626ea 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
717626ea
MT
4###############################################################################
5
802ea3af
MT
6name = dmraid
7version = 1.0.0.rc15
2947c340 8release = 3
717626ea 9
802ea3af
MT
10groups = System/Filesystems
11url = http://people.redhat.com/heinzm/sw/dmraid
12license = GPLv2+
13summary = Device-mapper RAID tool and library.
717626ea 14
802ea3af 15description
359102ae
SS
16 DMRAID supports RAID device discovery, RAID set activation, creation,
17 removal, rebuild and display of properties for ATARAID/DDF1 metadata on
717626ea 18 Linux >= 2.4 using device-mapper.
802ea3af
MT
19end
20
359102ae 21source_dl = http://people.redhat.com/heinzm/sw/dmraid/src/old/
802ea3af
MT
22sources = %{thisapp}.tar.bz2
23
24build
25 requires
26 libdevmapper-devel
27 libselinux-devel
28 end
29
30 DIR_APP = %{DIR_SRC}/%{name}/%{version}
31 PARALLELISMFLAGS = # Disabled
32
33 make_install_targets += sbindir=%{BUILDROOT}/sbin
34
35 configure_options += \
36 --sbindir=/sbin \
2947c340 37 --libdir=/%{lib} \
802ea3af
MT
38 --disable-static \
39 --disable-static_link \
40 --enable-libselinux
41
42 build_cmds
43 make -C lib libdmraid.so
44 end
45
46 install_cmds
2947c340 47 mkdir -pv %{BUILDROOT}/{,usr}/%{lib}
802ea3af 48 install -v -m 755 lib/libdmraid.so \
2947c340
MT
49 %{BUILDROOT}/%{lib}/libdmraid.so.%{version}
50 ln -svf ../../%{lib}/libdmraid.so.%{version} %{BUILDROOT}%{libdir}/libdmraid.so
359102ae
SS
51
52 # Install development headers.
2947c340
MT
53 mkdir -pv %{BUILDROOT}%{includedir}/dmraid
54 install -m 644 include/dmraid/*.h %{BUILDROOT}%{includedir}/dmraid/
802ea3af
MT
55 end
56end
57
58packages
59 package %{name}
1f9bc2f0 60
802ea3af
MT
61 package %{name}-devel
62 template DEVEL
63 end
1f9bc2f0
MT
64
65 package %{name}-debuginfo
66 template DEBUGINFO
67 end
802ea3af 68end