]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - dmraid/dmraid.nm
67df612c18b4eae8859a03e18758f0d418b058f1
[people/amarx/ipfire-3.x.git] / dmraid / dmraid.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = dmraid
7 version = 1.0.0.rc15
8 release = 4
9
10 groups = System/Filesystems
11 url = http://people.redhat.com/heinzm/sw/dmraid
12 license = GPLv2+
13 summary = Device-mapper RAID tool and library.
14
15 description
16 DMRAID supports RAID device discovery, RAID set activation, creation,
17 removal, rebuild and display of properties for ATARAID/DDF1 metadata on
18 Linux >= 2.4 using device-mapper.
19 end
20
21 source_dl = http://people.redhat.com/heinzm/sw/dmraid/src/old/
22 sources = %{thisapp}.tar.bz2
23
24 build
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}%{sbindir}
34
35 configure_options += \
36 --disable-static \
37 --disable-static_link \
38 --enable-libselinux
39
40 # Dmraid doesn't automatically build and install a versioned library
41 # so we do it on or own.
42 build_cmds
43 make -C lib libdmraid.so
44 end
45
46 install_cmds
47 # Install development headers.
48 mkdir -pv %{BUILDROOT}%{includedir}/dmraid
49 install -m 644 include/dmraid/*.h %{BUILDROOT}%{includedir}/dmraid/
50
51 # Manually install versioned library and create symlinks.
52 mkdir -pv %{BUILDROOT}%{libdir}
53 install -m 755 lib/libdmraid.so %{BUILDROOT}%{libdir}/libdmraid.so.%{version}
54 ln -sv libdmraid.so.%{version} %{BUILDROOT}%{libdir}/libdmraid.so.1
55 ln -sv libdmraid.so.%{version} %{BUILDROOT}%{libdir}/libdmraid.so
56 end
57 end
58
59 packages
60 package %{name}
61
62 package %{name}-devel
63 template DEVEL
64 end
65
66 package %{name}-debuginfo
67 template DEBUGINFO
68 end
69 end