Summary: Open Source installer build tool for Windows applications Name: nsis Version: 2.34 Release: 1 License: zlib/libpng Group: Development/Tools URL: http://nsis.sourceforge.net/ Source0: http://downloads.sourceforge.net/nsis/%{name}-%{version}-src.tar.bz2 # Source0-md5: 60243c2562710eeac45bda1378e4c88c Source1: http://downloads.sourceforge.net/nsis/%{name}-%{version}.zip # Source1-md5: 565d17b3ff12dffcf678ec252a892c04 Patch0: optflags.patch BuildRequires: libstdc++-devel %ifarch %{x8664} BuildRequires: libstdc++32-devel %endif BuildRequires: scons >= 0.96.93 ExclusiveArch: %{ix86} %{x8664} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description NSIS (Nullsoft Scriptable Install System) is a professional Open Source system to create Windows installers. It is designed to be as small and flexible as possible and is therefore very suitable for Internet distribution. %prep %setup -q -n %{name}-%{version}-src -a1 %{__cp} -aux %{name}-%{version}/* . %patch0 -p1 %{__rm} -rf Docs/StrFunc %build # build & install must use exactly same args to cmake, so make shell wrapper # not to mistake. cat <<'EOF' > build.sh #!/bin/sh %scons "$@" \ APPEND_CCFLAGS="%{rpmcflags}" \ APPEND_CXXFLAGS="%{rpmcxxflags}" \ APPEND_LINKFLAGS="%{rpmldflags}" \ PREFIX=%{_prefix} \ PREFIX_DEST=$RPM_BUILD_ROOT \ PREFIX_CONF=%{_sysconfdir} \ SKIPSTUBS="all" \ SKIPPLUGINS="all" \ SKIPUTILS="Library/RegTool,UIs,Makensisw,zip2exe,MakeLangId,NSIS Menu" \ SKIPMISC="all" \ VERSION="%{version}" \ STRIP="false" EOF chmod a+rx build.sh ./build.sh %install rm -rf $RPM_BUILD_ROOT ./build.sh install rm -r $RPM_BUILD_ROOT%{_datadir}/doc/nsis install -d $RPM_BUILD_ROOT%{_datadir}/nsis cp -fr Bin Contrib Include Menu Plugins Stubs $RPM_BUILD_ROOT%{_datadir}/nsis install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc COPYING Docs %config(noreplace) %{_sysconfdir}/nsisconf.nsh %attr(755,root,root) %{_bindir}/GenPat %attr(755,root,root) %{_bindir}/LibraryLocal %attr(755,root,root) %{_bindir}/makensis %{_datadir}/nsis %{_examplesdir}/%{name}-%{version}