summaryrefslogtreecommitdiffstats
path: root/live/draklive-install/draklive-install.spec
blob: 25795778fe0d16bdae72a52bb396227176aed7ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
%define name draklive-install
%define version 0.1
%define release %mkrel 6
%define iconname MandrivaOne-install-icon.png
%define imgname MandrivaOne-install.png

Summary:	Live installer
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	%{name}-%{version}.tar.bz2
License:	GPL
Group:		System/Configuration/Other
Url:		http://qa.mandriva.com/twiki/bin/view/Main/DrakLive
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch:      noarch

%description
This tool allows to install Mandriva from a running live system.

%prep
%setup -q

%build
%make -C po

%install
rm -rf $RPM_BUILD_ROOT

%makeinstall -C po

for d in %_datadir/nautilus/default-desktop %_datadir/apps/kdesktop/DesktopLinks; do
  install -D -m 0644 %name.desktop %buildroot/$d/%name.desktop
done
install -D -m 0755 %name %buildroot/%_datadir/%name/%name
install -m 0644 install_interactive.pm %buildroot/%_datadir/%name

install -d -m 0755 %buildroot/%_sbindir
cat > %buildroot/%_sbindir/%name <<EOF
#!/bin/sh
cd %_datadir/%name
./%name
EOF
chmod 0755 %buildroot/%_sbindir/%name

mkdir -p %buildroot{%_miconsdir,%_iconsdir,%_liconsdir,%_menudir,%_datadir/libDrakX/pixmaps/}
install theme/IC-installone-48.png %buildroot%_liconsdir/%iconname
install theme/IC-installone-32.png %buildroot%_iconsdir/%iconname
install theme/IC-installone-16.png %buildroot%_miconsdir/%iconname
install theme/IM-INSTALLCDONE.png %buildroot%_datadir/libDrakX/pixmaps/%imgname

%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_menus

%postun
%clean_menus

%files -f %name.lang
%defattr(-,root,root)
%_sbindir/%name
%_datadir/%name
%_datadir/apps/kdesktop/DesktopLinks/*.desktop
%_datadir/nautilus/default-desktop/*.desktop
%_iconsdir/%iconname
%_liconsdir/%iconname
%_miconsdir/%iconname
%_datadir/libDrakX/pixmaps/%imgname

%changelog
* Sun Mar  5 2006 Olivier Blin <oblin@mandriva.com> 0.1-6mdk
- allow to use grub as a bootloader (#21318, fix typo)

* Mon Feb 27 2006 Olivier Blin <oblin@mandriva.com> 0.1-5mdk
- updates translations

* Fri Feb 24 2006 Olivier Blin <oblin@mandriva.com> 0.1-4mdk
- make sure the cancel button is available in this pseudo-drakboot-boot
- make the wizard really die when it is cancelled
- use a smaller welcome image

* Fri Feb 24 2006 Olivier Blin <oblin@mandriva.com> 0.1-3mdk
- use correct size for small icon

* Thu Feb 23 2006 Olivier Blin <oblin@mandriva.com> 0.1-2mdk
- make partition tools not fail finding fs tools (#21260)
- update po files

* Fri Dec 16 2005 Olivier Blin <oblin@mandriva.com> 0.1-1mdk
- initial release