1 |
ennael |
49443 |
%define name drakx-installer-rescue |
2 |
ennael |
58769 |
%define version 1.22 |
3 |
tmb |
70229 |
%define release %mkrel 4 |
4 |
ennael |
49443 |
|
5 |
|
|
Summary: Rescue image |
6 |
|
|
Name: %{name} |
7 |
|
|
Version: %{version} |
8 |
|
|
Release: %{release} |
9 |
|
|
Source0: %{name}-%{version}.tar.bz2 |
10 |
tmb |
65192 |
Patch0: drakx-installer-rescue-1.22-fakeroot.patch |
11 |
tmb |
65196 |
Patch1: drakx-installer-rescue-1.22-fix-XSLoader-path.patch |
12 |
|
|
License: GPLv2 |
13 |
ennael |
49443 |
Group: Development/Other |
14 |
|
|
Url: http://wiki.mandriva.com/Tools/DrakX |
15 |
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
16 |
|
|
BuildRequires: perl-XML-Parser squashfs-tools mknod-m600 |
17 |
|
|
BuildRequires: ldetect-lst-devel |
18 |
|
|
BuildRequires: hexedit grub rsync openssh-clients krb5-appl-clients kbd strace |
19 |
|
|
BuildRequires: gpart parted partimage |
20 |
|
|
BuildRequires: dump xfsdump eject testdisk extipl |
21 |
tmb |
65204 |
BuildRequires: xfsprogs reiserfsprogs jfsprogs ntfsprogs dosfstools btrfs-progs |
22 |
ennael |
49443 |
BuildRequires: mdadm lvm2 dmraid kpartx dmraid-events dmsetup |
23 |
|
|
BuildRequires: setserial |
24 |
|
|
BuildRequires: mt-st |
25 |
|
|
BuildRequires: pciutils ldetect |
26 |
|
|
BuildRequires: packdrake rpmtools |
27 |
|
|
BuildRequires: vim-minimal |
28 |
|
|
BuildRequires: drakx-installer-binaries drakxtools-backend drakx-kbd-mouse-x11 |
29 |
|
|
BuildRequires: bind-utils nfs-utils-clients wget |
30 |
|
|
BuildRequires: ka-deploy-source-node |
31 |
|
|
BuildRequires: cdialog |
32 |
|
|
BuildRequires: ldetect-lst >= 0.1.222 |
33 |
|
|
BuildRequires: ntfs-3g |
34 |
|
|
BuildRequires: cryptsetup photorec quota |
35 |
tmb |
65192 |
BuildRequires: pv fakeroot |
36 |
tmb |
70229 |
BuildConflicts: systemd systemd-units |
37 |
ennael |
49443 |
|
38 |
|
|
%description |
39 |
tmb |
65192 |
Rescue image |
40 |
ennael |
49443 |
|
41 |
|
|
%prep |
42 |
|
|
%setup -q |
43 |
tmb |
65192 |
%patch0 -p1 |
44 |
tmb |
65196 |
%patch1 -p1 |
45 |
ennael |
49443 |
|
46 |
|
|
%build |
47 |
tmb |
70176 |
fakeroot make -C rescue |
48 |
ennael |
49443 |
|
49 |
|
|
%install |
50 |
|
|
rm -rf $RPM_BUILD_ROOT |
51 |
|
|
|
52 |
|
|
dest=$RPM_BUILD_ROOT%{_libdir}/%name |
53 |
|
|
mkdir -p $dest |
54 |
|
|
cp -r rescue/rescue.sqfs $dest |
55 |
|
|
|
56 |
|
|
%clean |
57 |
|
|
rm -rf $RPM_BUILD_ROOT |
58 |
|
|
|
59 |
|
|
%files |
60 |
|
|
%defattr(-,root,root) |
61 |
|
|
%{_libdir}/%name |
62 |
|
|
|
63 |
|
|
|