Import package vendor original specs for necessary manipulations.

Thu, 09 Aug 2012 18:52:06 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 09 Aug 2012 18:52:06 +0200
changeset 496
c4f4c533995f
parent 495
01294b31a79e
child 497
3695593c147a

Import package vendor original specs for necessary manipulations.

boost/boost.patch file | annotate | diff | comparison | revisions
boost/boost.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/boost/boost.patch	Thu Aug 09 18:52:06 2012 +0200
     1.3 @@ -0,0 +1,44 @@
     1.4 +Index: boost/test/impl/execution_monitor.ipp
     1.5 +--- boost/test/impl/execution_monitor.ipp.orig	2009-11-28 10:19:18.000000000 +0100
     1.6 ++++ boost/test/impl/execution_monitor.ipp	2011-06-08 21:40:48.000000000 +0200
     1.7 +@@ -353,6 +353,7 @@
     1.8 +         break;
     1.9 +     }
    1.10 + 
    1.11 ++#if 0
    1.12 +     switch( m_sig_info->si_signo ) {
    1.13 +     case SIGILL:
    1.14 +         switch( m_sig_info->si_code ) {
    1.15 +@@ -508,11 +509,13 @@
    1.16 +     case SIGCHLD:
    1.17 +         switch( m_sig_info->si_code ) {
    1.18 + #ifndef BOOST_TEST_LIMITED_SIGNAL_DETAILS
    1.19 ++#ifdef CLD_EXITED
    1.20 +         case CLD_EXITED:
    1.21 +             report_error( execution_exception::system_error,
    1.22 +                           "child has exited; pid: %d; uid: %d; exit value: %d",
    1.23 +                           (int)m_sig_info->si_pid, (int)m_sig_info->si_uid, (int)m_sig_info->si_status );
    1.24 +             break;
    1.25 ++#endif
    1.26 +         case CLD_KILLED:
    1.27 +             report_error( execution_exception::system_error,
    1.28 +                           "child was killed; pid: %d; uid: %d; exit value: %d",
    1.29 +@@ -608,6 +611,7 @@
    1.30 +     default:
    1.31 +         report_error( execution_exception::system_error, "unrecognized signal" );
    1.32 +     }
    1.33 ++#endif
    1.34 + }
    1.35 + 
    1.36 + //____________________________________________________________________________//
    1.37 +@@ -817,8 +821,10 @@
    1.38 + {
    1.39 +     return info->si_signo == SIGCHLD
    1.40 + #ifndef BOOST_TEST_LIMITED_SIGNAL_DETAILS
    1.41 ++#ifdef CLD_EXITED
    1.42 +             && info->si_code == CLD_EXITED 
    1.43 + #endif
    1.44 ++#endif
    1.45 + #ifdef BOOST_TEST_IGNORE_NON_ZERO_CHILD_CODE
    1.46 +             ;
    1.47 + #else
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/boost/boost.spec	Thu Aug 09 18:52:06 2012 +0200
     2.3 @@ -0,0 +1,154 @@
     2.4 +##
     2.5 +##  boost.spec -- OpenPKG RPM Package Specification
     2.6 +##  Copyright (c) 2000-2012 OpenPKG Foundation e.V. <http://openpkg.net/>
     2.7 +##
     2.8 +##  Permission to use, copy, modify, and distribute this software for
     2.9 +##  any purpose with or without fee is hereby granted, provided that
    2.10 +##  the above copyright notice and this permission notice appear in all
    2.11 +##  copies.
    2.12 +##
    2.13 +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
    2.14 +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
    2.15 +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
    2.16 +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
    2.17 +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    2.18 +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    2.19 +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    2.20 +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
    2.21 +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
    2.22 +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
    2.23 +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    2.24 +##  SUCH DAMAGE.
    2.25 +##
    2.26 +
    2.27 +#   package version
    2.28 +%define       V_openpkg    1.49.0
    2.29 +%define       V_dist       1_49_0
    2.30 +
    2.31 +#   package information
    2.32 +Name:         boost
    2.33 +Summary:      Peer-Reviewed Portable C++ Libraries
    2.34 +URL:          http://www.boost.org/
    2.35 +Vendor:       Boost Community
    2.36 +Packager:     OpenPKG Foundation e.V.
    2.37 +Distribution: OpenPKG Community
    2.38 +Class:        EVAL
    2.39 +Group:        Language
    2.40 +License:      Boost Software License
    2.41 +Version:      %{V_openpkg}
    2.42 +Release:      20120722
    2.43 +
    2.44 +#   package options
    2.45 +%option       with_debug     yes
    2.46 +%option       with_optimize  yes
    2.47 +%option       with_threads   yes
    2.48 +%option       with_zlib      yes
    2.49 +%option       with_bzip2     yes
    2.50 +
    2.51 +#   list of sources
    2.52 +Source0:      http://switch.dl.sourceforge.net/boost/boost_%{V_dist}.tar.bz2
    2.53 +Patch0:       boost.patch
    2.54 +
    2.55 +#   build information
    2.56 +BuildPreReq:  OpenPKG, openpkg >= 20100101, gcc, gcc::with_cxx = yes
    2.57 +PreReq:       OpenPKG, openpkg >= 20100101
    2.58 +%if "%{with_zlib}" == "yes"
    2.59 +BuildPreReq:  zlib
    2.60 +PreReq:       zlib
    2.61 +%endif
    2.62 +%if "%{with_bzip2}" == "yes"
    2.63 +BuildPreReq:  bzip2
    2.64 +PreReq:       bzip2
    2.65 +%endif
    2.66 +
    2.67 +%description
    2.68 +    Boost provides peer-reviewed portable C++ class libraries, placing
    2.69 +    emphasis on libraries which work well with the C++ Standard
    2.70 +    Library. The libraries are intended to be widely useful, and are in
    2.71 +    regular use by thousands of programmers across a broad spectrum of
    2.72 +    applications.
    2.73 +
    2.74 +    Aiming to provide missing functionality in current standards,
    2.75 +    Boost was begun by members of the C++ Standards Committee Library
    2.76 +    Working Group. Today, logic from a subset of the boost collection is
    2.77 +    under review by the ISO C++ Standards Committee and considered for
    2.78 +    inclusion in its future standards documents.
    2.79 +
    2.80 +%track
    2.81 +    prog boost = {
    2.82 +        version   = %{V_dist}
    2.83 +        url       = http://sourceforge.net/projects/boost/files/
    2.84 +        regex     = boost_(\d+_\d+\_\d+)\.tar\.bz2
    2.85 +    }
    2.86 +
    2.87 +%prep
    2.88 +    %setup -q -n boost_%{V_dist}
    2.89 +    %patch -p0
    2.90 +
    2.91 +%build
    2.92 +    #   bootstrap bjam(1), the boost build system
    2.93 +    ./bootstrap.sh \
    2.94 +        --prefix=%{l_prefix} \
    2.95 +        --exec-prefix=%{l_prefix} \
    2.96 +        --includedir=%{l_prefix}/include \
    2.97 +        --libdir=%{l_prefix}/lib \
    2.98 +        --without-libraries=python
    2.99 +
   2.100 +    %{l_shtool} mkdir -p obj
   2.101 +
   2.102 +    #   configure build options for bjam(1) -sBUILD parameter
   2.103 +    debugopts="release"
   2.104 +    optimizeopts="<optimization>off"
   2.105 +    threadopts="<threading>single"
   2.106 +%if "%{with_debug}" == "yes"
   2.107 +    debugopts="$debugopts debug"
   2.108 +%endif
   2.109 +%if "%{with_optimize}" == "yes"
   2.110 +    optimizeopts="<optimization>speed <inlining>full"
   2.111 +%endif
   2.112 +%if "%{with_threads}" == "yes"
   2.113 +    threadopts="<threading>single/multi"
   2.114 +%endif
   2.115 +
   2.116 +    #   build all libraries
   2.117 +    ./b2 --toolset=gcc --layout=system --builddir=obj "-sBUILD=$debugopts $optimizeopts $threadopts" \
   2.118 +%if "%{with_zlib}" == "yes"
   2.119 +        "-sNO_COMPRESSION=0" "-sZLIB_INCLUDE=%{l_prefix}/include" "-sZLIB_LIBPATH=%{l_prefix}/lib" \
   2.120 +%else
   2.121 +        "-sNOZLIB=1" \
   2.122 +%endif
   2.123 +%if "%{with_bzip2}" == "yes"
   2.124 +        "-sNO_COMPRESSION=0" "-sBZIP2_INCLUDE=%{l_prefix}/include" "-sBZIP2_LIBPATH=%{l_prefix}/lib" \
   2.125 +%else
   2.126 +        "-sNOBZIP2=1" \
   2.127 +%endif
   2.128 +        link=static stage
   2.129 +
   2.130 +%install
   2.131 +    ./bjam --toolset=gcc --layout=system --prefix=$RPM_BUILD_ROOT%{l_prefix} \
   2.132 +%if "%{with_zlib}" == "yes"
   2.133 +        "-sNO_COMPRESSION=0" "-sZLIB_INCLUDE=%{l_prefix}/include" "-sZLIB_LIBPATH=%{l_prefix}/lib" \
   2.134 +%else
   2.135 +        "-sNOZLIB=1" \
   2.136 +%endif
   2.137 +%if "%{with_bzip2}" == "yes"
   2.138 +        "-sNO_COMPRESSION=0" "-sBZIP2_INCLUDE=%{l_prefix}/include" "-sBZIP2_LIBPATH=%{l_prefix}/lib" \
   2.139 +%else
   2.140 +        "-sNOBZIP2=1" \
   2.141 +%endif
   2.142 +        install
   2.143 +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/include/boost-*
   2.144 +    find $RPM_BUILD_ROOT%{l_prefix}/lib/ \
   2.145 +        -name "*.so" -print -o \
   2.146 +        -name "libboost_*.so.%{V_openpkg}" \
   2.147 +        -print | xargs rm -f
   2.148 +    %{l_shtool} mkdir -f -p -m 755 \
   2.149 +        $RPM_BUILD_ROOT%{l_prefix}/bin
   2.150 +    %{l_shtool} install -c -m 755 \
   2.151 +        bjam $RPM_BUILD_ROOT%{l_prefix}/bin/
   2.152 +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
   2.153 +
   2.154 +%files -f files
   2.155 +
   2.156 +%clean
   2.157 +

mercurial