659a09c
%define sconsopts VERSION=%{version} PREFIX=%{_prefix} PREFIX_CONF=%{_sysconfdir} SKIPUTILS='NSIS Menu' STRIP_CP=false
2bd99d4
%define _default_patch_fuzz 2
2bd99d4
2bd99d4
Name:           mingw32-nsis
Kevin Kofler 1823302
Version:        2.46
31ca9f9
Release:        5%{?dist}
2bd99d4
Summary:        Nullsoft Scriptable Install System
2bd99d4
2bd99d4
License:        zlib and CPL
2bd99d4
Group:          Development/Libraries
2bd99d4
URL:            http://nsis.sourceforge.net/
2bd99d4
Source0:        http://dl.sourceforge.net/sourceforge/nsis/nsis-%{version}-src.tar.bz2
2bd99d4
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2bd99d4
06a7c9a
# This patch fixes NSIS to actually build 64-bit versions.
06a7c9a
# Originally from Debian, updated by Kevin Kofler.
06a7c9a
Patch0:         nsis-2.43-64bit-fixes.patch
05ba69e
# Use RPM_OPT_FLAGS for the natively-built parts
5880714
Patch1:         nsis-2.43-rpm-opt.patch
fb99389
# Make plugins not depend on libgcc_s_sjlj-1.dll (#553971)
fb99389
Patch2:         nsis-2.45-static-libgcc.patch
Kevin Kofler 7ee9c51
# Make plugins not depend on libstdc++-6.dll (#734905)
Kevin Kofler 7ee9c51
Patch3:         nsis-2.46-static-libstdc++.patch
31ca9f9
# Missing #include <unistd.h> to get close(2) function.
31ca9f9
Patch4:         nsis-2.46-missing-unistd-include.patch
2bd99d4
2bd99d4
BuildRequires:  mingw32-filesystem >= 40
2bd99d4
BuildRequires:  mingw32-gcc
2bd99d4
BuildRequires:  mingw32-gcc-c++
2bd99d4
BuildRequires:  mingw32-binutils
2bd99d4
BuildRequires:  python
2bd99d4
BuildRequires:  scons
2bd99d4
06a7c9a
# Don't build NSIS Menu as it doesn't actually work on POSIX systems: 1. it
06a7c9a
# doesn't find its index.html file without patching, 2. it has various links to
06a7c9a
# .exe files such as the makensisw.exe W32 GUI which are not available in the
06a7c9a
# POSIX version at all and 3. the documentation links have backslashes in the
06a7c9a
# URLs and the relative paths are wrong. Almost none of the links worked when I
06a7c9a
# tested it (after patching problem 1.).
06a7c9a
# Also removes unnecessary wxGTK dependency for this otherwise GUI-less package.
06a7c9a
# (Does it really make sense to drag in wxGTK just to display a HTML file?)
dfdedbf
# If you really want to reenable this, it needs a lot of fixing. Oh, and it'd
dfdedbf
# need a .desktop file too.
06a7c9a
# -- Kevin Kofler
06a7c9a
# BuildRequires:  wxGTK-devel
06a7c9a
06a7c9a
# upgrade path for CalcForge users
06a7c9a
Obsoletes:      nsis < %{version}-%{release}
06a7c9a
Provides:       nsis = %{version}-%{release}
06a7c9a
Obsoletes:      nsis-data < %{version}-%{release}
06a7c9a
Provides:       nsis-data = %{version}-%{release}
2bd99d4
2bd99d4
2bd99d4
%description
2bd99d4
NSIS, the Nullsoft Scriptable Install System, is a script-driven
2bd99d4
Windows installation system.
2bd99d4
2bd99d4
This package includes native Fedora binaries of makensis (etc.) and
659a09c
all plugins.
2bd99d4
2bd99d4
2bd99d4
%prep
2bd99d4
%setup -q -n nsis-%{version}-src
2bd99d4
2bd99d4
%patch0 -p1 -b .64bit
5880714
%patch1 -p1 -b .rpmopt
fb99389
%patch2 -p1 -b .static-libgcc
Kevin Kofler 7ee9c51
%patch3 -p1 -b .static-libstdc++
31ca9f9
%patch4 -p1 -b .missing-unistd-include
2bd99d4
2bd99d4
2bd99d4
%build
2bd99d4
scons %{sconsopts}
2bd99d4
2bd99d4
2bd99d4
%install
2bd99d4
rm -rf $RPM_BUILD_ROOT
2bd99d4
2bd99d4
mkdir $RPM_BUILD_ROOT
2bd99d4
scons %{sconsopts} PREFIX_DEST=$RPM_BUILD_ROOT install
2bd99d4
2bd99d4
mv $RPM_BUILD_ROOT%{_docdir}/nsis $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
2bd99d4
2bd99d4
2bd99d4
%clean
2bd99d4
rm -rf $RPM_BUILD_ROOT
2bd99d4
2bd99d4
2bd99d4
%files
2bd99d4
%defattr(-,root,root)
2bd99d4
%doc %{_docdir}/%{name}-%{version}
2bd99d4
%config(noreplace) %{_sysconfdir}/nsisconf.nsh
2bd99d4
%{_bindir}/*
2bd99d4
#{_includedir}/nsis
2bd99d4
%{_datadir}/nsis
2bd99d4
2bd99d4
2bd99d4
%changelog
31ca9f9
* Mon Jan 16 2012 Richard W.M. Jones <rjones@redhat.com> - 2.46-5
31ca9f9
- Missing #include <unistd.h> to get close(2) function.
31ca9f9
2bf4081
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.46-4
2bf4081
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2bf4081
Kevin Kofler 7ee9c51
* Thu Sep 08 2011 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.46-3
Kevin Kofler 7ee9c51
- Make plugins not depend on libstdc++-6.dll (#734905)
Kevin Kofler 7ee9c51
dbfca12
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.46-2
dbfca12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
dbfca12
Kevin Kofler 1823302
* Wed Aug 11 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.46-1
Kevin Kofler 1823302
- Update to 2.46 (#544675)
Kevin Kofler 1823302
fb99389
* Mon Jan 11 2010 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.45-3
fb99389
- Make plugins not depend on libgcc_s_sjlj-1.dll (#553971)
fb99389
ddc2491
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.45-2
ddc2491
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ddc2491
659a09c
* Tue Jul 21 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.45-1
659a09c
- Update to 2.45 (#512429)
659a09c
659a09c
* Tue Jun 30 2009 Stu Tomlinson <stu@nosnilmot.com> - 2.44-2
659a09c
- Re-enable System.dll plugin, inline Microsoft assembler code was
659a09c
  replaced in 2.42 (#509234)
659a09c
e9539c7
* Sat Mar 14 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.44-1
3471425
- Update to 2.44 (#488522)
3471425
5880714
* Tue Mar  3 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.43-6
5880714
- Don't build the MinGW parts with debugging information, NSIS corrupts the
5880714
  debugging information in the stubs when building installers from them
5880714
- Drop debian-debug-opt patch, all its changes are either taken care of by our
ddba79f
  rpm-opt patch, unwanted (see above) or unneeded
5880714
05ba69e
* Wed Feb 25 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.43-5
05ba69e
- Use RPM_OPT_FLAGS for the natively-built parts
05ba69e
06a7c9a
* Wed Feb 25 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 2.43-4
5880714
- Updated 64bit-fixes patch (remove some more -m32 use)
5880714
- Drop ExclusiveArch, not needed with the above
5880714
- Obsoletes/Provides nsis and nsis-data for migration path from CalcForge
5880714
- Disable NSIS Menu (does not work on *nix, see specfile comment for details)
5880714
- Drop BR wxGTK-devel
06a7c9a
b74cd05
* Sat Feb 21 2009 Richard W.M. Jones <rjones@redhat.com> - 2.43-3
b74cd05
- Restore ExclusiveArch line (Levente Farkas).
b74cd05
2bd99d4
* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 2.43-2
2bd99d4
- Rebuild for mingw32-gcc 4.4
2bd99d4
2bd99d4
* Fri Feb 13 2009 Levente Farkas <lfarkas@lfarkas.org> - 2.43-1
2bd99d4
- update to the latest upstream
2bd99d4
2bd99d4
* Wed Jan 14 2009 Levente Farkas <lfarkas@lfarkas.org> - 2.42-1
2bd99d4
- update to the latest upstream
2bd99d4
- a few small changes
2bd99d4
2bd99d4
* Fri Oct 17 2008 Richard W.M. Jones <rjones@redhat.com> - 2.39-5
2bd99d4
- Fix the Summary line.
2bd99d4
2bd99d4
* Wed Oct  8 2008 Richard W.M. Jones <rjones@redhat.com> - 2.39-4
2bd99d4
- Initial RPM release.