summaryrefslogtreecommitdiffstats
path: root/live/draklive-install/draklive-install.spec
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2006-02-23 11:15:41 +0000
committerOlivier Blin <oblin@mandriva.org>2006-02-23 11:15:41 +0000
commit75eedf36f7b2685f752ba4908478c4b0f7a872bd (patch)
tree0043bcf6eaa62d33723d33ccda4accf2f57d362c /live/draklive-install/draklive-install.spec
parent4ce4095ffa480d6b68f38035bce2efa86905d1aa (diff)
downloaddrakx-backup-do-not-use-75eedf36f7b2685f752ba4908478c4b0f7a872bd.tar
drakx-backup-do-not-use-75eedf36f7b2685f752ba4908478c4b0f7a872bd.tar.gz
drakx-backup-do-not-use-75eedf36f7b2685f752ba4908478c4b0f7a872bd.tar.bz2
drakx-backup-do-not-use-75eedf36f7b2685f752ba4908478c4b0f7a872bd.tar.xz
drakx-backup-do-not-use-75eedf36f7b2685f752ba4908478c4b0f7a872bd.zip
initial import of Mandriva One configuration files and draklive-install tool
Diffstat (limited to 'live/draklive-install/draklive-install.spec')
-rw-r--r--live/draklive-install/draklive-install.spec69
1 files changed, 69 insertions, 0 deletions
diff --git a/live/draklive-install/draklive-install.spec b/live/draklive-install/draklive-install.spec
new file mode 100644
index 000000000..b658fd2a9
--- /dev/null
+++ b/live/draklive-install/draklive-install.spec
@@ -0,0 +1,69 @@
+%define name draklive-install
+%define version 0.1
+%define release %mkrel 1
+%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
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+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-32.png %buildroot%_miconsdir/%iconname
+install theme/IM-INSTALLCDONE2.png %buildroot%_datadir/libDrakX/pixmaps/%imgname
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%update_menus
+
+%postun
+%clean_menus
+
+%files
+%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
+* Fri Dec 16 2005 Olivier Blin <oblin@mandriva.com> 0.1-1mdk
+- initial release