]>
Commit | Line | Data |
---|---|---|
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 |
6 | name = dmraid |
7 | version = 1.0.0.rc15 | |
8 | release = 1 | |
717626ea | 9 | |
802ea3af MT |
10 | groups = System/Filesystems |
11 | url = http://people.redhat.com/heinzm/sw/dmraid | |
12 | license = GPLv2+ | |
13 | summary = Device-mapper RAID tool and library. | |
717626ea | 14 | |
802ea3af | 15 | description |
717626ea MT |
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. | |
802ea3af MT |
19 | end |
20 | ||
21 | source_dl = | |
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}/sbin | |
34 | ||
35 | configure_options += \ | |
36 | --sbindir=/sbin \ | |
37 | --libdir=/lib \ | |
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 | |
47 | mkdir -pv %{BUILDROOT}/{,usr}/lib | |
48 | install -v -m 755 lib/libdmraid.so \ | |
49 | %{BUILDROOT}/lib/libdmraid.so.%{version} | |
50 | ln -svf ../../lib/libdmraid.so.%{version} %{BUILDROOT}/usr/lib/libdmraid.so | |
51 | end | |
52 | end | |
53 | ||
54 | packages | |
55 | package %{name} | |
56 | end | |
57 | ||
58 | package %{name}-devel | |
59 | template DEVEL | |
60 | end | |
61 | end |