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:   03-Sep-2007 09:26:04
  Branch: HEAD                             Handle: 2007090308260200

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

  Log:
    new package: ustl 1.1.0 (Micro C++ Standard Template Library (STL))

  Summary:
    Revision    Changes     Path
    1.1         +24 -0      openpkg-src/ustl/ustl.patch
    1.1         +98 -0      openpkg-src/ustl/ustl.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/ustl/ustl.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 ustl.patch
  --- /dev/null 2007-09-03 09:26:03 +0200
  +++ ustl.patch        2007-09-03 09:26:03 +0200
  @@ -0,0 +1,24 @@
  +Index: bsconf.c
  +--- bsconf.c.orig    2007-09-02 21:49:02 +0200
  ++++ bsconf.c 2007-09-03 09:20:00 +0200
  +@@ -780,6 +780,7 @@
  +     Substitute ("-Winline", "-Wno-inline");
  +     }
  + 
  ++#if 0
  +     if ((g_SysType == sys_Linux) | (g_SysType == sys_Bsd))
  +     Substitute ("@SHBLDFL@", "-shared -Wl,-soname=${LIBSOLNK}");
  +     else if (g_SysType == sys_Mac)
  +@@ -787,9 +788,12 @@
  +     else if (g_SysType == sys_Sun)
  +     Substitute ("@SHBLDFL@", "-G");
  +     else {
  ++#endif
  +     Substitute ("BUILD_SHARED\t= 1 ", "#BUILD_SHARED\t= 1");
  +     Substitute ("#BUILD_STATIC\t= 1", "BUILD_STATIC\t= 1 ");
  ++#if 0
  +     }
  ++#endif
  + 
  +     if (g_SysType == sys_Mac) {
  +     Substitute (" @libgcc_eh@", "");
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/ustl/ustl.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 ustl.spec
  --- /dev/null 2007-09-03 09:26:03 +0200
  +++ ustl.spec 2007-09-03 09:26:03 +0200
  @@ -0,0 +1,98 @@
  +##
  +##  ustl.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 version
  +%define       V_major 1.1
  +%define       V_minor 0
  +
  +#   package information
  +Name:         ustl
  +Summary:      Micro C++ Standard Template Library (STL)
  +URL:          http://ustl.sourceforge.net/
  +Vendor:       Mike Sharov
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        Language
  +License:      MIT
  +Version:      %{V_major}.%{V_minor}
  +Release:      20070903
  +
  +#   list of sources
  +Source0:      
http://switch.dl.sourceforge.net/ustl/ustl-%{V_major}.%{V_minor}.tar.bz2
  +Source1:      
http://switch.dl.sourceforge.net/ustl/ustl-docs-%{V_major}.%{V_minor}.tar.bz2
  +Patch0:       ustl.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20060823, gcc, gcc::with_cxx = yes
  +PreReq:       OpenPKG, openpkg >= 20060823, gcc, gcc::with_cxx = yes
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    The C++ Standard Template Library (STL) is a collection of common
  +    containers and algorithms in C++ template form. uSTL is a low
  +    footprint implementation of STL.
  +
  +%track
  +    prog ustl = {
  +        version   = %{version}
  +        url       = http://prdownloads.sourceforge.net/ustl/
  +        regex     = ustl-(__VER__)\.tar\.bz2
  +    }
  +
  +%prep
  +    %setup -q -n ustl-%{V_major}
  +    %setup -q -n ustl-%{V_major} -T -D -b 1
  +    %patch -p0
  +
  +%build
  +    %{l_shtool} subst \
  +        -e 's;/bin/bash;%{l_bash};g' \
  +        configure
  +    CC="%{l_cc}" \
  +    CXX="%{l_cxx}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CXXFLAGS="%{l_cxxflags -O}" \
  +    ./configure \
  +        --prefix=%{l_prefix}
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install \
  +        prefix=$RPM_BUILD_ROOT%{l_prefix} \
  +        exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
  +        BINDIR=$RPM_BUILD_ROOT%{l_prefix}/bin \
  +        INCDIR=$RPM_BUILD_ROOT%{l_prefix}/include \
  +        LIBDIR=$RPM_BUILD_ROOT%{l_prefix}/lib
  +    %{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                     [email protected]

Reply via email to