]> git.pld-linux.org Git - packages/dmraid.git/blob - dmraid.spec
- updated to 1.0.0rc6
[packages/dmraid.git] / dmraid.spec
1 #
2 # Conditional build:
3 %bcond_without  initrd  # without initrd version
4 #
5 Summary:        Device-mapper RAID tool
6 Summary(pl):    Narzêdzie do RAID-u opartego o device-mapper
7 Name:           dmraid
8 Version:        1.0.0
9 Release:        0.rc6.2
10 License:        GPL
11 Group:          Base
12 Source0:        http://people.redhat.com/~heinzm/sw/dmraid/src/%{name}-%{version}.rc6.tar.bz2
13 # Source0-md5:  8383b009ac61674fae6de442c6dba910
14 Patch0:         dmraid-selinux-static.patch
15 URL:            http://people.redhat.com/~heinzm/sw/dmraid/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  device-mapper-devel
19 %{?with_initrd:BuildRequires:   device-mapper-static}
20 BuildRequires:  gettext-devel
21 %{?with_initrd:BuildRequires:   glibc-static}
22 %{?with_initrd:BuildRequires:   libselinux-static}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 DMRAID supports device discovery, set activation and display of
27 properties for ATARAID on Linux >= 2.4 using device-mapper.
28
29 %description -l pl
30 DMRAID obs³uguje wykrywanie urz±dzeñ, ustawianie aktywacji i
31 wy¶wietlanie w³a¶ciwo¶ci ATARAID-u na Linuksie >= 2.4 przy u¿yciu
32 device-mappera.
33
34 %package initrd
35 Summary:        Device-mapper RAID tool - statically linked version
36 Summary(pl):    Narzêdzie do RAID-u opartego o device-mapper - wersja statyczna
37 Group:          Base
38
39 %description initrd
40 Statically linked version of dmraid utility.
41
42 %description initrd -l pl
43 Statycznie skonsolidowana wersja programu narzêdziowego dmraid.
44
45 %prep
46 %setup -q -n %{name}
47 mv */* ./
48 %patch0 -p1
49
50 %build
51 cp -f /usr/share/automake/config.sub autoconf
52 %{__gettextize}
53 %{__aclocal}
54 %{__autoconf}
55
56 %if %{with initrd}
57 %configure \
58         --enable-static_link
59 %{__make}
60 cp -f tools/dmraid{,-initrd}
61 %{__make} clean
62 %endif
63
64 %configure 
65 %{__make}
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 install -D tools/dmraid $RPM_BUILD_ROOT%{_sbindir}/dmraid
71 install -D tools/dmraid-initrd $RPM_BUILD_ROOT/sbin/dmraid-initrd
72 install -D man/dmraid.8 $RPM_BUILD_ROOT%{_mandir}/man8/dmraid.8
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
78 %defattr(644,root,root,755)
79 %doc README TODO doc/dmraid_design.txt
80 %attr(755,root,root) %{_sbindir}/*
81 %{_mandir}/man8/*
82
83 %if %{with initrd}
84 %files initrd
85 %defattr(644,root,root,755)
86 %attr(755,root,root) /sbin/*
87 %endif
This page took 0.161945 seconds and 3 git commands to generate.