Name: nsis Version: 2.34 Release: 1 Vendor: CalcForge RPM Repository (http://repo.calcforge.org) Packager: Tyler Cassidy URL: http://nsis.sourceforge.net/ Source: %{name}-%{version}-src.tar.bz2 # Fix build scripts to honor RPM_OPT_FLAGS Patch0: nsis-2.34-RPM_OPT_FLAGS.diff # 64-bit fixes from Debian # Andreas Jochens , Andreas Barth , # Steve Langasek , Paul Wise # extracted from http://ftp.debian.org/debian/pool/main/n/nsis/nsis_2.33-1.diff.gz and updated for 2.34 Patch1: nsis-2.34-64bit-fixes.diff Group: Development/Tools License: zlib/libpng BuildRequires: scons >= 0.96.93 Requires: nsis-data = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Summary: NSIS is an Open Source installer build tool for Windows applications %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 -n nsis-%{version}-src %patch0 -p1 %patch1 -p1 %build scons 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 %install # master dir stuff if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi mkdir -p $RPM_BUILD_ROOT # install makensis binary scons 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 install # remove files duplicated from nsis-data rm -rf $RPM_BUILD_ROOT%{_datadir}/nsis rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/nsis/Docs/StrFunc rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/nsis/Examples %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-, root, root) %{_bindir}/makensis %{_bindir}/LibraryLocal %{_bindir}/GenPat %config(noreplace) %{_sysconfdir}/nsisconf.nsh %doc %{_datadir}/doc/nsis/COPYING %doc %{_datadir}/doc/nsis/Docs/* %changelog * Thu Jan 29 2009 Tyler Cassidy 2.42-1 - Updated to NSIS 2.34 * Thu Jul 12 2007 Tyler Cassidy 2.28-1 - Updated to NSIS 2.28 * Sun Jul 8 2007 Tyler Cassidy 2.27-1 - Modified for CentOS 5 * Mon May 28 2007 Kevin Kofler 2.27-2 - Fix Changelog format and Vendor tag - Remove redundant python BR and unneeded python and upx Requires - SCons only needs to be >= 0.96.93 - Require exact version for nsis-data - Don't Obsolete/Conflict/Provide the package itself - Summary should not end with a dot - Capitalize "Open Source" - More official description from upstream website - Change Group to Development/Tools - Change Packager as I intend to maintain this myself from now on - Don't package files which conflict with nsis-data - Mark documentation files as such - Build native versions of LibraryLocal and GenPat - Use macros instead of hardcoded directory names - Install nsisconf.nsh to sysconfdir and mark it config(noreplace) - Fix build scripts to honor RPM_OPT_FLAGS - Set STRIP=false - Apply 64-bit fixes from Debian - Add URL and use full Source URL * Thu May 24 2007 Tyler Cassidy 2.27-1 - First Build, NSIS 2.27