File instlux.spec of Package instlux
#
# spec file for package instlux
#
# Copyright (c) 2011 SUSE LINUX Products 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/
#
# norootforbuild
Name:           instlux
Summary:        Windows openSUSE installer
%define distroversion 12_2
Url:            http://en.opensuse.org/Instlux
Version:        12.2_SVN62
Release:        7
License:        GPL-2.0+
Group:          Metapackages
AutoReqProv:    off
Recommends:     instlux-net
Recommends:     instlux-local
Source0:        instlux-SVN62.tar.bz2
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.
Authors:
--------
    Jordi Massaguer
    jmassaguer at opentrends dot net
%package net
Summary:        Network openSUSE installer for Windows
Group:          Metapackages
License:        GPL-2.0+
%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.
Authors:
--------
    Jordi Massaguer
    jmassaguer at opentrends dot net
%package local
Summary:        Local openSUSE installer for Windows
Group:          Metapackages
License:        GPL-2.0+
%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.
Authors:
--------
    Jordi Massaguer
    jmassaguer at opentrends dot net
%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
%clean
rm -rf %buildroot
%files 
%defattr(-, root, root)
%dir %_defaultdocdir/%name
%doc %_defaultdocdir/%name/*
%files local
%defattr(-, root, root)
%dir /CD1
/CD1/openSUSE%{distroversion}_LOCAL.exe
%files net
%defattr(-, root, root)
%dir /CD1
/CD1/openSUSE%{distroversion}_NET.exe
%changelog