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:   20-Feb-2006 14:53:24
  Branch: HEAD                             Handle: 2006022013532300

  Added files:
    openpkg-src/git         git.spec

  Log:
    new package: git 1.2.2 (Distributed Version Control System)

  Summary:
    Revision    Changes     Path
    1.1         +135 -0     openpkg-src/git/git.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/git/git.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 git.spec
  --- /dev/null 2006-02-20 14:52:33 +0100
  +++ git.spec  2006-02-20 14:53:23 +0100
  @@ -0,0 +1,135 @@
  +##
  +##  git.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##  Copyright (c) 2000-2006 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 version
  +%define       V_git       1.2.2
  +%define       V_cogito    0.17rc2
  +%define       V_stgit     0.8.1
  +
  +#   package information
  +Name:         git
  +Summary:      Distributed Version Control System
  +URL:          http://git.or.cz/
  +Vendor:       Linus Torvalds, Junio C Hamano
  +Packager:     OpenPKG
  +Distribution: OpenPKG
  +Class:        EVAL
  +Group:        SCM
  +License:      GPL
  +Version:      %{V_git}
  +Release:      20060220
  +
  +#   list of sources
  +Source0:      http://www.kernel.org/pub/software/scm/git/git-%{V_git}.tar.gz
  +Source1:      
http://www.kernel.org/pub/software/scm/cogito/cogito-%{V_cogito}.tar.gz
  +Source2:      
http://homepage.ntlworld.com/cmarinas/stgit/stgit-%{V_stgit}.tar.gz
  +Patch0:       git.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc, make
  +PreReq:       OpenPKG, openpkg >= 20040130, diffutils, rcs, bash, perl, 
python
  +BuildPreReq:  zlib, openssl, curl, expat
  +PreReq:       zlib, openssl, curl, expat
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    GIT is a "directory content manager" designed to handle absolutely
  +    massive projects with speed and efficiency. GIT falls in the
  +    category of distributed source code management tools. Every GIT
  +    working directory is a full-fledged repository with full revision
  +    tracking capabilities, not dependent on network access to a central
  +    server.
  +
  +    This package contains both the low-level GIT core components and the
  +    high-level GIT frontends Cogito and StGIT.
  +
  +%track
  +    prog git:git = {
  +        version   = %{V_git}
  +        url       = http://www.kernel.org/pub/software/scm/git/
  +        regex     = git-(__VER__)\.tar\.gz
  +    }
  +    prog git:cogito = {
  +        version   = %{V_cogito}
  +        url       = http://www.kernel.org/pub/software/scm/cogito/
  +        regex     = cogito-(__VER__)\.tar\.gz
  +    }
  +    prog git:stgit = {
  +        version   = %{V_stgit}
  +        url       = http://homepage.ntlworld.com/cmarinas/stgit/
  +        regex     = stgit-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q -c
  +    %setup -q -T -D -a 1
  +    %setup -q -T -D -a 2
  +    %patch -p0
  +
  +%build
  +    ( cd git-%{V_git}
  +      ( echo "CC           := %{l_cc}"
  +        echo "ALL_CFLAGS   := %{l_cflags -O} %{l_cppflags} \$(ALL_CFLAGS)"
  +        echo "ALL_LDFLAGS  := %{l_ldflags} \$(ALL_LDFLAGS)"
  +        echo "CURLDIR       = %{l_prefix}"
  +        echo "OPENSSLDIR    = %{l_prefix}"
  +        echo "SHELL_PATH    = %{l_prefix}/bin/bash"
  +        echo "PERL_PATH     = %{l_prefix}/bin/perl"
  +        echo "PYTHON_PATH   = %{l_prefix}/bin/python"
  +        echo "prefix        = %{l_prefix}"
  +      ) >config.mak
  +      %{l_make} %{l_mflags}
  +    ) || exit $?
  +    ( cd cogito-%{V_cogito}
  +      %{l_make} %{l_mflags} \
  +          prefix=%{l_prefix}
  +    ) || exit $?
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    ( cd git-%{V_git}
  +      %{l_make} %{l_mflags} install \
  +          DESTDIR=$RPM_BUILD_ROOT
  +    ) || exit $?
  +    ( cd cogito-%{V_cogito}
  +      %{l_make} %{l_mflags} install \
  +          DESTDIR=$RPM_BUILD_ROOT \
  +          prefix=%{l_prefix}
  +    ) || exit $?
  +    ( cd stgit-%{V_stgit}
  +      %{l_prefix}/bin/python setup.py install \
  +          --root=$RPM_BUILD_ROOT \
  +          --prefix=%{l_prefix}
  +    ) || exit $?
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to