OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   23-Jan-2008 22:50:49
  Branch: HEAD                             Handle: 2008012321504800

  Added files:
    openpkg-src/nant        nant.patch nant.spec

  Log:
    new package: nant 0.85 (NAnt is a free .NET build tool)

  Summary:
    Revision    Changes     Path
    1.1         +64 -0      openpkg-src/nant/nant.patch
    1.1         +83 -0      openpkg-src/nant/nant.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/nant/nant.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 nant.patch
  --- /dev/null 2008-01-23 22:50:36 +0100
  +++ nant.patch        2008-01-23 22:50:48 +0100
  @@ -0,0 +1,64 @@
  +excerpt from 
http://ftp.debian.org/debian/pool/main/n/nant/nant_0.85-2.diff.gz
  +Index: src/NAnt.Core/Task.cs
  +--- src/NAnt.Core/Task.cs.orig       2005-10-21 19:13:06 +0200
  ++++ src/NAnt.Core/Task.cs    2007-09-15 20:46:04 +0200
  +@@ -400,7 +400,6 @@
  +         #region Protected Instance Methods
  + 
  +         /// <summary><note>Deprecated (to be deleted).</note></summary>
  +-        [Obsolete("Deprecated- Use InitializeTask instead")]
  +         protected override void InitializeElement(XmlNode elementNode) {
  +             // Just defer for now so that everything just works
  +             InitializeTask(elementNode);
  +@@ -415,4 +414,4 @@
  + 
  +         #endregion Protected Instance Methods
  +     }
  +-}
  +\ No newline at end of file
  ++}
  +Index: Makefile
  +--- Makefile.orig    2005-12-11 09:47:54 +0100
  ++++ Makefile 2007-09-15 21:18:00 +0200
  +@@ -40,7 +40,7 @@
  +     rm -fR build bootstrap
  + 
  + install: bootstrap
  +-    $(NANT) -f:NAnt.build install -D:install.prefix="$(prefix)"
  ++    $(NANT) -f:NAnt.build install-openpkg 
-D:install.buildroot="$(buildroot)"
  + 
  + run-test: bootstrap
  +     $(NANT) -f:NAnt.build test
  +
  +Index: NAnt.build
  +--- NAnt.build.orig  2006-10-14 16:01:34 +0200
  ++++ NAnt.build       2007-09-15 22:51:30 +0200
  +@@ -780,7 +780,7 @@
  +         </if>
  +         <property name="install.bindir" 
value="${path::combine(install.realprefix, 'bin')}"/>
  +         <property name="install.share" 
value="${path::combine(install.realprefix, 'share')}"/>
  +-        <property name="install.copylocation" value="${path::combine 
(install.share, 'NAnt')}"/>
  ++        <property name="install.copylocation" value="${path::combine 
(install.share, 'nant')}"/>
  +         <property name="prefix" value="${pkg-config::get-variable('mono', 
'prefix')}"/>
  +         <echo message="Installing NAnt to '${install.copylocation}' ..." />
  +         
  +@@ -805,6 +805,18 @@
  +         <echo file="${wrapper}" append="true">exec ${path::combine(prefix, 
'bin')}/mono ${path::combine(install.copylocation, 'bin')}/NAnt.exe "$@"</echo>
  +         <exec program="chmod" commandline="a+x 
${path::combine(install.bindir, 'nant')}"/>
  +     </target>
  ++
  ++    <target name="install-openpkg" depends="build">
  ++        <echo message="Installing NAnt to '${install.buildroot}' ..." />
  ++        <copy todir="${install.buildroot}/share/nant" overwrite="true">
  ++            <fileset basedir="${build.dir}">
  ++                <include name="bin/**/*" />
  ++                <include name="doc/**/*" />
  ++                <exclude name="bin/nant.tests.config" />
  ++                <exclude name="bin/*.Tests.*" />
  ++            </fileset>
  ++        </copy>
  ++    </target>
  +     
  +     <target name="rpm" depends="init, build">
  +         <echo message="Build dir: ${build.dir}"/>
  +
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/nant/nant.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 nant.spec
  --- /dev/null 2008-01-23 22:50:36 +0100
  +++ nant.spec 2008-01-23 22:50:48 +0100
  @@ -0,0 +1,83 @@
  +##
  +##  nant.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
  +##
  +##  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:         nant
  +Summary:      NAnt is a free .NET build tool
  +URL:          http://nant.sourceforge.net/
  +Vendor:       Gerry Shaw et al.
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        Building
  +License:      GPL
  +Version:      0.85
  +Release:      20080123
  +
  +#   list of sources
  +Source0:      
http://switch.dl.sourceforge.net/nant/nant-%{version}-src.tar.gz
  +Patch0:       nant.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20060823, mono, make, pkgconfig
  +PreReq:       OpenPKG, openpkg >= 20060823, mono
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    NAnt is a free .NET build tool. In theory it is kind of like make without
  +    make's wrinkles. In practice it's a lot like Ant.
  +
  +%track
  +    prog nant = {
  +        version   = %{version}
  +        url       = http://nant.sourceforge.net/release/
  +        regex     = (__VER__)/
  +    }
  +
  +%prep
  +    %setup -q
  +    %patch -p0
  +
  +%build
  +    %{l_make} %{l_mflags} bootstrap
  +    %{l_make} %{l_mflags} build-nant
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install buildroot=$RPM_BUILD_ROOT%{l_prefix}
  +    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/bin
  +    ( echo '#!%{l_bash}'
  +      echo '%{l_prefix}/bin/mono %{l_prefix}/share/nant/bin/NAnt.exe "$@"'
  +    ) >$RPM_BUILD_ROOT%{l_prefix}/bin/nant
  +    chmod 775 $RPM_BUILD_ROOT%{l_prefix}/bin/nant
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to