File instlux.spec of Package instlux

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

# %if 0%{?suse_version} >= 1500 && !0%{?skelcd_compat}
%define skelcdpath /usr/lib/skelcd
# %endif

Name:           instlux
Version:        15.6.2
Release:        0
License:        GPL-2.0+
Summary:        Windows openSUSE installer
Url:            https://github.com/belphegor-belbel/instlux
Group:          Productivity/Other
Source0:        %{name}-%{version}.tar.xz
Source1:        README
Source2:        autorun.inf
BuildRequires:  grub4dos nsis nsis-cpuid
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description

%prep
%setup -q

%build
%{__cp} %{_usr}/lib/grub/i386-pc/{grldr,grldr.mbr,grub.exe} .
makensis openSUSE_installer.nsi

%install
mkdir -p $RPM_BUILD_ROOT/%{_usr}/lib/skelcd/CD1
cp openSUSE_installer.exe %{SOURCE2} $RPM_BUILD_ROOT/%{_usr}/lib/skelcd/CD1
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}
cp %{SOURCE1} $RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}

%files
%defattr(-, root, root)
%dir %_defaultdocdir/%name
%doc %_defaultdocdir/%name/*
%if %{defined skelcdpath}
%dir %{skelcdpath}
%endif
%{?skelcdpath}/CD1

%changelog

openSUSE Build Service is sponsored by