Import package vendor original specs for necessary manipulations.

Thu, 08 Jan 2009 01:12:39 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 08 Jan 2009 01:12:39 +0100
changeset 32
d5a681e1cbad
parent 31
bba786e365af
child 33
fa4856f209c2

Import package vendor original specs for necessary manipulations.

stlport/stlport.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/stlport/stlport.spec	Thu Jan 08 01:12:39 2009 +0100
     1.3 @@ -0,0 +1,108 @@
     1.4 +##
     1.5 +##  stlport.spec -- OpenPKG RPM Package Specification
     1.6 +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
     1.7 +##
     1.8 +##  Permission to use, copy, modify, and distribute this software for
     1.9 +##  any purpose with or without fee is hereby granted, provided that
    1.10 +##  the above copyright notice and this permission notice appear in all
    1.11 +##  copies.
    1.12 +##
    1.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    1.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    1.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    1.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    1.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    1.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    1.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    1.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    1.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    1.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    1.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    1.24 +##  SUCH DAMAGE.
    1.25 +##
    1.26 +
    1.27 +#   package information
    1.28 +Name:         stlport
    1.29 +Summary:      C++ Standard Template Library
    1.30 +URL:          http://www.stlport.org/
    1.31 +Vendor:       Boris Fomitchev et al.
    1.32 +Packager:     OpenPKG Foundation e.V.
    1.33 +Distribution: OpenPKG Community
    1.34 +Class:        EVAL
    1.35 +Group:        Language
    1.36 +License:      STLport
    1.37 +Version:      5.0.2
    1.38 +Release:      20080101
    1.39 +
    1.40 +#   package options
    1.41 +%option       with_debug  yes
    1.42 +
    1.43 +#   list of sources
    1.44 +Source0:      http://switch.dl.sourceforge.net/stlport/STLport-%{version}.tar.gz
    1.45 +
    1.46 +#   build information
    1.47 +Prefix:       %{l_prefix}
    1.48 +BuildRoot:    %{l_buildroot}
    1.49 +BuildPreReq:  OpenPKG, openpkg >= 20040130, gcc
    1.50 +PreReq:       OpenPKG, openpkg >= 20040130, gcc
    1.51 +AutoReq:      no
    1.52 +AutoReqProv:  no
    1.53 +
    1.54 +%description
    1.55 +    STLport is a reimplementation of the classic SGI C++ Standard
    1.56 +    Template Library (STL), introducing unique features like Debug mode
    1.57 +    and Safe STL. It offers higher portability while complying with
    1.58 +    standards and retaining full functionality.
    1.59 +
    1.60 +    The Standard Template Library (STL) is a C++ library of container
    1.61 +    classes, algorithms, and iterators providing many of the basic
    1.62 +    algorithms and data structures of computer science.
    1.63 +
    1.64 +%track
    1.65 +    prog stlport = {
    1.66 +        version   = %{version}
    1.67 +        url       = http://prdownloads.sourceforge.net/stlport/
    1.68 +        regex     = STLport-(\d+\.\d+\.\d+)\.tar\.gz
    1.69 +    }
    1.70 +
    1.71 +%prep
    1.72 +    %setup -q -n STLport
    1.73 +    %{l_shtool} subst \
    1.74 +        -e 's;\(define _STLP_NATIVE_INCLUDE_PATH\).*;\1 %{l_prefix}/include/g++;' \
    1.75 +        stlport/config/stl_gcc.h
    1.76 +    %{l_shtool} subst \
    1.77 +        -e 's;^\(# if defined (__QNXNTO__) || ( defined(__GNUC__)\) && defined(__APPLE__);\1;' \
    1.78 +        src/num_put_float.cpp
    1.79 +
    1.80 +%build
    1.81 +    buildtargets="release-static"
    1.82 +%if "%{with_debug}" == "yes"
    1.83 +      buildtargets="$buildtargets dbg-static stldbg-static"
    1.84 +%endif
    1.85 +    cd build/lib && %{l_make} %{l_mflags} -f gcc.mak $buildtargets
    1.86 +
    1.87 +%install
    1.88 +    rm -rf $RPM_BUILD_ROOT
    1.89 +    %{l_shtool} mkdir -f -p -m 755 \
    1.90 +        $RPM_BUILD_ROOT%{l_prefix}/include
    1.91 +    ( cd build/lib
    1.92 +      installtargets="install-release-static"
    1.93 +%if "%{with_debug}" == "yes"
    1.94 +      installtargets="$installtargets install-dbg-static install-stldbg-static"
    1.95 +%endif
    1.96 +      %{l_make} %{l_mflags} -f gcc.mak $installtargets \
    1.97 +          INSTALL="%{l_shtool}"" install -c" \
    1.98 +          INSTALL_LIB_DIR="$RPM_BUILD_ROOT%{l_prefix}/lib" \
    1.99 +          INSTALL_LIB_DIR_DBG="$RPM_BUILD_ROOT%{l_prefix}/lib" \
   1.100 +          INSTALL_LIB_DIR_STLDBG="$RPM_BUILD_ROOT%{l_prefix}/lib"
   1.101 +    ) || exit $?
   1.102 +    rm -rf stlport/BC50 stlport/config/new_compiler
   1.103 +    %{l_tar} cf - stlport | (cd $RPM_BUILD_ROOT%{l_prefix}/include && %{l_tar} xf -) || exit $?
   1.104 +    chmod -R a+r $RPM_BUILD_ROOT%{l_prefix}/include/stlport
   1.105 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   1.106 +
   1.107 +%files -f files
   1.108 +
   1.109 +%clean
   1.110 +    rm -rf $RPM_BUILD_ROOT
   1.111 +

mercurial