OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall Root: /v/openpkg/cvs Email: [email protected] Module: openpkg-src Date: 22-Mar-2009 01:05:12 Branch: HEAD Handle: 2009032200051200 Added files: openpkg-src/nsis nsis.spec Log: new package: nsis 2.44 (NullSoft Installer System) Summary: Revision Changes Path 1.1 +117 -0 openpkg-src/nsis/nsis.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/nsis/nsis.spec ============================================================================ $ cvs diff -u -r0 -r1.1 nsis.spec --- /dev/null 2009-03-22 01:04:54 +0100 +++ nsis.spec 2009-03-22 01:05:12 +0100 @@ -0,0 +1,117 @@ +## +## nsis.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: nsis +Summary: NullSoft Installer System +URL: http://nsis.sourceforge.net/ +Vendor: NullSoft +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: EVAL +Group: System +License: GPL +Version: 2.44 +Release: 20090322 + +# list of sources +Source0: http://switch.dl.sourceforge.net/sourceforge/nsis/nsis-%{version}-src.tar.bz2 +Source1: http://switch.dl.sourceforge.net/sourceforge/nsis/nsis-%{version}.zip +Patch0: nsis.patch + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, infozip, scons, gcc, gcc::with_cxx = yes +PreReq: OpenPKG, openpkg >= 20060823 +AutoReq: no +AutoReqProv: no + +%description + NSIS, the Nullsoft Scriptable Install System, is a script-driven + Windows installation system. + +%track + prog nsis = { + version = %{version} + url = http://prdownloads.sourceforge.net/nsis/ + regex = nsis-(__VER__)-src\.tar\.bz2 + } + +%prep + %setup -q -n nsis-%{version}-src + unzip -q -x %{SOURCE1} + %patch -p0 + +%build + export OPENPKG_CCFLAGS="%{l_cxxflags -O} %{l_cppflags}" + export OPENPKG_LINKFLAGS="%{l_ldflags} -liconv" + scons \ + PREFIX=%{l_prefix}/share/nsis \ + PREFIX_CONF=%{l_prefix}/etc/nsis \ + PREFIX_DATA=%{l_prefix}/share/nsis \ + SKIPSTUBS=all \ + SKIPPLUGINS=all \ + SKIPUTILS=all \ + SKIPMISC=all \ + NSIS_CONFIG_CONST_DATA_PATH=no \ + makensis + +%install + rm -rf $RPM_BUILD_ROOT + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/bin \ + $RPM_BUILD_ROOT%{l_prefix}/etc/nsis \ + $RPM_BUILD_ROOT%{l_prefix}/share/nsis + %{l_shtool} install -c -m 644 \ + nsisconf.nsh $RPM_BUILD_ROOT%{l_prefix}/etc/nsis/ + mv "nsis-%{version}/Contrib/Modern UI" \ + "nsis-%{version}/Contrib/Modern-UI" + mv "nsis-%{version}/Contrib/Modern UI 2" \ + "nsis-%{version}/Contrib/Modern-UI-2" + mv "nsis-%{version}/Contrib/Language files" \ + "nsis-%{version}/Contrib/Language-files" + rm -rf nsis-%{version}/Examples + rm -rf nsis-%{version}/Docs + rm -f nsis-%{version}/nsisconf.nsh + rm -f nsis-%{version}/makensis.exe + rm -f nsis-%{version}/makensisw.exe + rm -f nsis-%{version}/COPYING + cp -rp nsis-%{version}/* \ + $RPM_BUILD_ROOT%{l_prefix}/share/nsis/ + %{l_shtool} install -c -s -m 755 \ + build/release/makensis/makensis \ + $RPM_BUILD_ROOT%{l_prefix}/share/nsis/ + ( echo "#!/bin/sh" + echo "exec %{l_prefix}/share/nsis/makensis \${1+\"\...@\"}" + ) >$RPM_BUILD_ROOT%{l_prefix}/bin/makensis + chmod 755 $RPM_BUILD_ROOT%{l_prefix}/bin/makensis + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ + %{l_files_std} \ + '%config %{l_prefix}/etc/nsis/*' + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT + @@ . ______________________________________________________________________ OpenPKG http://openpkg.org CVS Repository Commit List [email protected]
