File mingw32-cross-nsis.spec of Package mingw32-cross-nsis
#
# spec file for package mingw32-cross-nsis
#
# 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/
#
# exclude external dependencies
%global __requires_exclude mingw32\(.*\.dll\)
%global __provides_exclude mingw32\(.*\.dll\)
%define sconsopts VERSION=%{version} PREFIX=%{_prefix} PREFIX_CONF=%{_sysconfdir} SKIPUTILS='NSIS Menu' STRIP_CP=false ZLIB_W32='/usr/i686-w64-mingw32/sys-root/mingw/lib'
Name: mingw32-cross-nsis
Version: 3.08
Release: 0
Summary: Nullsoft Scriptable Install System
License: Zlib
Group: Development/Libraries
Url: http://nsis.sourceforge.net/
Source0: http://sourceforge.net/projects/nsis/files/NSIS%203/%{version}/nsis-%{version}-src.tar.bz2
Source1000: %{name}-rpmlintrc
BuildRequires: gcc-c++
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-libgcc_s_sjlj1
BuildRequires: mingw32-libstdc++6
BuildRequires: mingw32-libwinpthread1
BuildRequires: mingw32-zlib-devel
BuildRequires: python3
BuildRequires: scons
BuildRequires: zlib-devel
Provides: mingw64-cross-nsis = %{version}-%{release}
Provides: nsis = %{version}-%{release}
%description
NSIS, the Nullsoft Scriptable Install System, is a script-driven
Windows installation system.
This package includes native linux binaries of makensis (etc.) and
all plugins.
%prep
%setup -q -n nsis-%{version}-src
%build
scons %{sconsopts}
%install
mkdir -p %{buildroot}
scons %{sconsopts} PREFIX_DEST=%{buildroot} install
mv %{buildroot}%{_datadir}/doc/nsis %{buildroot}%{_datadir}/doc/%{name}-%{version}
find %{buildroot}%{_datadir}/doc/%{name}-%{version} -type f -exec chmod -x '{}' \;
# install runtime dependencies
for i in libgcc_s_sjlj-1.dll libstdc++-6.dll libwinpthread-1.dll; do
cp %_mingw32_bindir/$i %{buildroot}%{_datadir}/nsis/Plugins/x86-ansi
done
%files
%defattr(-,root,root)
%doc %{_datadir}/doc/%{name}-%{version}
%config(noreplace) %{_sysconfdir}/nsisconf.nsh
%{_bindir}/*
%{_datadir}/nsis
%changelog