File instlux.spec of Package instlux

#
# spec file for package instlux
#
# Copyright (c) 2014 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/
#


Name:           instlux
Url:            http://instlux.sourceforge.net/
Summary:        Lietukas installer for Windows
License:        GPL-2.0+
Group:          Productivity/Other
AutoReqProv:    off
%define instluxversion SVN62
Source0:        instlux-%{instluxversion}.tar.bz2
Source1:        license_hungarian.txt
Source2:        license_japanese.txt
Source3:        lietukas.ico
Patch0:         instlux-save-boot-timeout.patch
Patch1:         instlux.patch
#Patch1:         instlux-lietukas.patch
Version:        62
Release:        0

Patch2:         instlux-text-corrections.patch
Patch3:         instlux-installer-idempotency.patch
Patch4:         instlux-remove-whole-regkey.patch
Patch5:         instlux-windows-me-7-8-svr2008-2008r2-2012-10.patch
Patch6:         instlux-x64.patch
Patch7:         instlux-lang-ja.patch
Patch8:         instlux-uninstaller-uac.patch
Patch9:         instlux-uefi-detect.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64
BuildRequires:  grub4dos
BuildRequires:  nsis
BuildRequires:  nsis-cpuid
BuildRequires:  nsis-getversion
BuildRequires:  nsis-inetc
BuildRequires:  python

%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

%prep
%setup -q -n instlux-%{instluxversion}
%patch0
%patch1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1

%build
cp %{S:1} instlux/translations/hungarian
mkdir -p instlux/translations/japanese
cp %{S:2} instlux/translations/japanese
cp %{S:3} instlux/src/lietukas.ico
cd instlux
# copy grldr, grldr.mbr, grub.exe from grub4dos
cp /usr/lib/grub/i386-pc/{grldr,grldr.mbr,grub.exe} src/
./make_instlux.py
cd ..

%install
mkdir -p $RPM_BUILD_ROOT/CD1
#cp instlux/bin/Lietukas*.exe $RPM_BUILD_ROOT/CD1/
cp instlux/bin/*.exe $RPM_BUILD_ROOT/CD1/

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-, root, root)
%dir /CD1
/CD1/*.exe

%changelog
openSUSE Build Service is sponsored by