From: Richard W.M. Jones <"Richard W.M. Jones "> Date: Wed, 10 Sep 2008 19:02:30 +0000 (+0100) Subject: Very preliminary NSIS patch. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=ebacb8d0548435c44daca71268f2f78826b331a2;p=fedora-mingw.git Very preliminary NSIS patch. --- diff --git a/nsis/mingw-nsis.spec b/nsis/mingw-nsis.spec new file mode 100644 index 0000000..4a4e933 --- /dev/null +++ b/nsis/mingw-nsis.spec @@ -0,0 +1,88 @@ +Name: mingw-nsis +Version: 2.39 +Release: 1%{?dist} +Summary: MinGW Windows libxml2 XML processing library + +License: zlib and CPL +Group: Development/Libraries +URL: http://nsis.sourceforge.net/ +Source0: http://dl.sourceforge.net/sourceforge/nsis/nsis-%{version}-src.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Patch0: nsis-2.39-mingw-search.patch + +BuildRequires: mingw-filesystem >= 20 +BuildRequires: mingw-gcc +BuildRequires: mingw-binutils +BuildRequires: python +BuildRequires: scons >= 0.96.93 +BuildRequires: wxGTK-devel + + +%description +NSIS, the Nullsoft Scriptable Install System, is a script-driven +Windows installation system. + +This package includes native Fedora binaries of makensis (etc.) There +are no native NSIS plugins available. Complete Windows binaries and +plugins are in the mingw-nsis-win package, but you must run those +either on a Windows machine or under Wine. + + +%package win +Summary: Windows binaries for %{name} +Requires: %{name} = %{version}-%{release} +Group: Development/Libraries + +BuildArch: noarch + + +%description win +This package includes complete Windows binaries and plugins for +%{name}. + + +%prep +%setup -q -n nsis-%{version}-src +%patch0 -p1 + + +%build +scons \ + PREFIX=%{_prefix} PREFIX_CONF=%{_sysconfdir} + + +%install +rm -rf $RPM_BUILD_ROOT + +mkdir $RPM_BUILD_ROOT +scons \ + PREFIX=%{_prefix} PREFIX_CONF=%{_sysconfdir} \ + PREFIX_DEST=$RPM_BUILD_ROOT \ + install + +mv $RPM_BUILD_ROOT%{_docdir}/nsis $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} + +# It's not clear if we should move the Windows binaries +# to %{_mingw_sysroot} or leave them where they are. + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root) +%{_bindir}/* +%config(noreplace) %{_sysconfdir}/nsisconf.nsh +%{_includedir}/nsis +%doc %{_docdir}/%{name}-%{version} + +%files win +%defattr(-,root,root) +%{_datadir}/nsis + + +%changelog +* Fri Sep 5 2008 Richard W.M. Jones - 2.39-1 +- Initial RPM release. diff --git a/nsis/nsis-2.39-mingw-search.patch b/nsis/nsis-2.39-mingw-search.patch new file mode 100644 index 0000000..83d5cc2 --- /dev/null +++ b/nsis/nsis-2.39-mingw-search.patch @@ -0,0 +1,10 @@ +--- nsis-2.39-src/SCons/Tools/crossmingw.py.orig 2008-09-05 13:58:14.000000000 +0100 ++++ nsis-2.39-src/SCons/Tools/crossmingw.py 2008-09-05 13:58:32.000000000 +0100 +@@ -44,6 +44,7 @@ + + # This is what we search for to find mingw: + prefixes = SCons.Util.Split(""" ++ i686-pc-mingw32- + mingw32- + mingw32msvc- + i386-mingw32-