]> git.ipfire.org Git - ipfire-3.x.git/blob - dmraid/dmraid.nm
kernel: Fix compiled-in version number
[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.rc16
8 release = 1
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 >= 2.02.166
27 end
28
29 DIR_APP = %{DIR_SRC}/%{name}/%{version}
30 PARALLELISMFLAGS = # Disabled
31
32 make_install_targets += sbindir=%{BUILDROOT}%{sbindir}
33
34 configure_options += \
35 --disable-static \
36 --disable-static_link
37
38 # Dmraid doesn't automatically build and install a versioned library
39 # so we do it on or own.
40 build_cmds
41 make -C lib libdmraid.so
42 end
43
44 test
45 # Package does not offer any kind of testsuite.
46 end
47
48 install_cmds
49 # Install development headers.
50 mkdir -pv %{BUILDROOT}%{includedir}/dmraid
51 install -m 644 include/dmraid/*.h %{BUILDROOT}%{includedir}/dmraid/
52
53 # Manually install versioned library and create symlinks.
54 mkdir -pv %{BUILDROOT}%{libdir}
55 install -m 755 lib/libdmraid.so %{BUILDROOT}%{libdir}/libdmraid.so.%{version}
56 ln -sv libdmraid.so.%{version} %{BUILDROOT}%{libdir}/libdmraid.so.1
57 ln -sv libdmraid.so.%{version} %{BUILDROOT}%{libdir}/libdmraid.so
58 end
59 end
60
61 packages
62 package %{name}
63
64 package %{name}-devel
65 template DEVEL
66 end
67
68 package %{name}-debuginfo
69 template DEBUGINFO
70 end
71 end