File instlux.spec of Package instlux
#
# spec file for package instlux
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: instlux
Summary: Windows openSUSE installer
License: GPL-2.0+
Group: Metapackages
%define distroversion 42_2
Url: http://en.opensuse.org/Instlux
Version: 42.2_SVN62
Release: 0
AutoReqProv: off
Recommends: instlux-net
Recommends: instlux-local
BuildRequires: recode
Source1: openSUSE%{distroversion}_LOCAL.exe
Source2: openSUSE%{distroversion}_NET.exe
Source6: %name-README.BUILD
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86 x86_64
%description
Find your place in the Linux world by upgrading your windows to a Linux
system the easiest possible way: running an installer on your Windows.
This package as meta package contains the instlux CD content.
%package net
Summary: Network openSUSE installer for Windows
Group: Metapackages
%description net
Find your place in the Linux world by upgrading your windows to a Linux
system the easiest possible way: running an installer on your Windows.
This package as meta package contains the instlux CD content for
installing an openSUSE system over the network.
%package local
Summary: Local openSUSE installer for Windows
Group: Metapackages
%description local
Find your place in the Linux world by upgrading your windows to a Linux
system the easiest possible way: running an installer on your Windows.
This package as meta package contains the instlux CD content for
installation from a local media.
%prep
%build
%install
# create a short README for the pseudo main package
mkdir -p %buildroot%_defaultdocdir/%name/
cat > %buildroot%_defaultdocdir/%name/README << EOF
Instlux allows a windows user start installing openSUSE from Windows, without
configuring the BIOS.
Instlux is based on Marc Herberts web page[1] and was started as a
sourceforge.net[2] project on October 2005.
Instlux is included in openSUSE since 10.3.
[1]: http://marc.herbert.free.fr/linux/win2linstall.html
[2]: http://instlux.svn.sourceforge.net/
Have a lot of fun!
EOF
install -m644 %{S:6} %buildroot%_defaultdocdir/%name/README.BUILD
mkdir -p %buildroot/CD1
install -m644 %{S:1} %buildroot/CD1/openSUSE%{distroversion}_LOCAL.exe
install -m644 %{S:2} %buildroot/CD1/openSUSE%{distroversion}_NET.exe
echo "[autorun]" > %buildroot/CD1/autorun.inf
echo "label = openSUSE %{distroversion}" >> %buildroot/CD1/autorun.inf
echo "icon = susego.ico" >> %buildroot/CD1/autorun.inf
echo "open = openSUSE%{distroversion}_LOCAL.exe" >> %buildroot/CD1/autorun.inf
recode utf8..dos %buildroot/CD1/autorun.inf
%files
%defattr(-, root, root)
%dir %_defaultdocdir/%name
%doc %_defaultdocdir/%name/*
%files local
%defattr(-, root, root)
%dir /CD1
/CD1/openSUSE%{distroversion}_LOCAL.exe
/CD1/autorun.inf
%files net
%defattr(-, root, root)
%dir /CD1
/CD1/openSUSE%{distroversion}_NET.exe
%changelog