Search
SailfishOS Open Build Service
>
Projects
>
home:vgrade
:
ethereum
>
boost
> _service:tar_git:boost.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File _service:tar_git:boost.spec of Package boost
%ifnarch %{ix86} x86_64 # Avoid using Boost.Context on non-x86 arches. s390 is not # supported at all and there were _syntax errors_ in PPC code. This # should be enabled on a case-by-case basis as the arches are tested # and fixed. %bcond_with context %else %bcond_without context %endif %bcond_with python3 Name: boost Summary: The free peer-reviewed portable C++ source libraries Version: 1.55.0 Release: 1 License: Boost and MIT and Python %define toplev_dirname %{name}_1_55_0 URL: http://www.boost.org Group: System/Libraries Source0: boost_1_55_0.tar.bz2 Source1: ver.py Source2: libboost_thread-mt.so Source101: boost-rpmlintrc # https://svn.boost.org/trac/boost/ticket/6150 Patch0: boost-1.50.0-fix-non-utf8-files.patch # Add a manual page for bjam, based on the on-line documentation: # http://www.boost.org/boost-build2/doc/html/bbv2/overview.html Patch1: boost-1.48.0-add-bjam-man-page.patch # https://bugzilla.redhat.com/show_bug.cgi?id=828856 # https://bugzilla.redhat.com/show_bug.cgi?id=828857 Patch2: boost-1.50.0-pool.patch # https://svn.boost.org/trac/boost/ticket/8844 Patch3: boost-1.54.0-bind-static_assert.patch # https://svn.boost.org/trac/boost/ticket/8847 Patch4: boost-1.54.0-concept-unused_typedef.patch # https://svn.boost.org/trac/boost/ticket/5637 Patch5: boost-1.54.0-mpl-print.patch # https://svn.boost.org/trac/boost/ticket/8859 Patch6: boost-1.54.0-static_warning-unused_typedef.patch # https://svn.boost.org/trac/boost/ticket/8853 Patch7: boost-1.54.0-tuple-unused_typedef.patch # https://svn.boost.org/trac/boost/ticket/8854 Patch8: boost-1.54.0-random-unused_typedef.patch # https://svn.boost.org/trac/boost/ticket/8856 Patch9: boost-1.54.0-date_time-unused_typedef.patch Patch10: boost-1.54.0-date_time-unused_typedef-2.patch # https://svn.boost.org/trac/boost/ticket/8870 Patch11: boost-1.54.0-spirit-unused_typedef.patch Patch12: boost-1.54.0-spirit-unused_typedef-2.patch # https://svn.boost.org/trac/boost/ticket/8871 Patch13: boost-1.54.0-numeric-unused_typedef.patch # https://svn.boost.org/trac/boost/ticket/8878 Patch14: boost-1.54.0-locale-unused_typedef.patch # https://svn.boost.org/trac/boost/ticket/8879 Patch15: boost-1.54.0-property_tree-unused_typedef.patch # https://svn.boost.org/trac/boost/ticket/8888 Patch16: boost-1.54.0-python-unused_typedef.patch # https://svn.boost.org/trac/boost/ticket/9038 Patch17: boost-1.54.0-pool-test_linking.patch # This was already fixed upstream, so no tracking bug. Patch18: boost-1.54.0-pool-max_chunks_shadow.patch # https://svn.boost.org/trac/boost/ticket/8725 Patch19: boost-1.55.0-program_options-class_attribute.patch # Fixed upstream on Oct 4 00:26:49 2013. Patch20: boost-1.55.0-archive-init_order.patch # https://github.com/boostorg/xpressive/pull/1 Patch21: boost-1.55.0-xpressive-unused_typedefs.patch # Fixed upstream on Aug 20 05:11:14 2013. Patch22: boost-1.55.0-spirit-unused_typedefs.patch %define sonamever %{version} BuildRequires: libstdc++-devel BuildRequires: bzip2-libs BuildRequires: bzip2-devel BuildRequires: zlib-devel BuildRequires: python-devel %if %{with python3} BuildRequires: python3-devel %endif BuildRequires: libicu-devel BuildRequires: chrpath BuildRequires: fdupes %bcond_with tests %bcond_with docs_generated %description Boost provides free peer-reviewed portable C++ source libraries. The emphasis is on libraries which work well with the C++ Standard Library, in the hopes of establishing "existing practice" for extensions and providing reference implementations so that the Boost libraries are suitable for eventual standardization. (Some of the libraries have already been included in the C++ 2011 standard and others have been proposed to the C++ Standards Committee for inclusion in future standards.) %package atomic Summary: Run-Time component of boost atomic library Group: System/Libraries %description atomic Run-Time support for Boost.Atomic, a library that provides atomic data types and operations on these data types, as well as memory ordering constraints required for coordinating multiple threads through atomic variables. %package chrono Summary: Run-Time component of boost chrono library Group: System/Libraries %description chrono Run-Time support for Boost.Chrono, a set of useful time utilities. %if %{with context} %package context Summary: Run-Time component of boost context library Group: System/Libraries %description context Run-Time support for Boost Context %package coroutine Summary: Run-Time component of boost coroutine library Group: System/Libraries %description coroutine Run-Time support for Boost.Coroutine, a library that provides generalized subroutines which allow multiple entry points for suspending and resuming execution. %endif %package date-time Summary: Run-Time component of boost date-time library Group: System/Libraries %description date-time Run-Time support for Boost Date Time, set of date-time libraries based on generic programming concepts. %package filesystem Summary: Run-Time component of boost filesystem library Group: System/Libraries %description filesystem Run-Time support for the Boost Filesystem Library, which provides portable facilities to query and manipulate paths, files, and directories. %package graph Summary: Run-Time component of boost graph library Group: System/Libraries %description graph Run-Time support for the BGL graph library. BGL interface and graph components are generic, in the same sense as the the Standard Template Library (STL). %package iostreams Summary: Run-Time component of boost iostreams library Group: System/Libraries %description iostreams Run-Time support for Boost.IOStreams, a framework for defining streams, stream buffers and i/o filters. %package locale Summary: Run-Time component of boost locale library Group: System/Libraries %description locale Run-Time support for Boost.Locale, a set of localization and Unicode handling tools. %package log Summary: Run-Time component of boost logging library Group: System/Libraries %description log Boost.Log library aims to make logging significantly easier for the application developer. It provides a wide range of out-of-the-box tools along with public interfaces for extending the library. %package math Summary: Math functions for boost TR1 library Group: System/Libraries %description math Run-Time support for C99 and C++ TR1 C-style Functions from math portion of Boost.TR1. %package program-options Summary: Run-Time component of boost program_options library Group: System/Libraries %description program-options Run-Time support of boost program options library, which allows program developers to obtain (name, value) pairs from the user, via conventional methods such as command line and configuration file. %package python Summary: Run-Time component of boost python library Group: System/Libraries %description python The Boost Python Library is a framework for interfacing Python and C++. It allows you to quickly and seamlessly expose C++ classes functions and objects to Python, and vice versa, using no special tools -- just your C++ compiler. This package contains run-time support for Boost Python Library. %if %{with python3} %package python3 Summary: Run-Time component of boost python library for Python 3 Group: System/Libraries %description python3 The Boost Python Library is a framework for interfacing Python and C++. It allows you to quickly and seamlessly expose C++ classes functions and objects to Python, and vice versa, using no special tools -- just your C++ compiler. This package contains run-time support for Boost Python Library compiled for Python 3. %endif %package random Summary: Run-Time component of boost random library Group: System/Libraries %description random Run-Time support for boost random library. %package regex Summary: Run-Time component of boost regular expression library Group: System/Libraries %description regex Run-Time support for boost regular expression library. %package serialization Summary: Run-Time component of boost serialization library Group: System/Libraries %description serialization Run-Time support for serialization for persistence and marshaling. %package signals Summary: Run-Time component of boost signals and slots library Group: System/Libraries %description signals Run-Time support for managed signals & slots callback implementation. %package system Summary: Run-Time component of boost system support library Group: System/Libraries %description system Run-Time component of Boost operating system support library, including the diagnostics support that will be part of the C++0x standard library. %package test Summary: Run-Time component of boost test library Group: System/Libraries %description test Run-Time support for simple program testing, full unit testing, and for program execution monitoring. %package thread Summary: Run-Time component of boost thread library Group: System/Libraries %description thread Run-Time component Boost.Thread library, which provides classes and functions for managing multiple threads of execution, and for synchronizing data between the threads or providing separate copies of data specific to individual threads. %package timer Summary: Run-Time component of boost timer library Group: System/Libraries %description timer "How long does my C++ code take to run?" The Boost Timer library answers that question and does so portably, with as little as one #include and one additional line of code. %package wave Summary: Run-Time component of boost C99/C++ pre-processing library Group: System/Libraries %description wave Run-Time support for the Boost.Wave library, a Standards conforming, and highly configurable implementation of the mandated C99/C++ pre-processor functionality. %package devel Summary: The Boost C++ headers and shared development libraries Group: Development/Libraries Requires: boost-chrono = %{version}-%{release} %if %{with context} Requires: boost-context = %{version}-%{release} Requires: boost-coroutine = %{version}-%{release} %endif Requires: boost-date-time = %{version}-%{release} Requires: boost-filesystem = %{version}-%{release} Requires: boost-graph = %{version}-%{release} Requires: boost-iostreams = %{version}-%{release} Requires: boost-locale = %{version}-%{release} Requires: boost-log = %{version}-%{release} Requires: boost-math = %{version}-%{release} Requires: boost-program-options = %{version}-%{release} Requires: boost-python = %{version}-%{release} %if %{with python3} Requires: boost-python3 = %{version}-%{release} %endif Requires: boost-random = %{version}-%{release} Requires: boost-regex = %{version}-%{release} Requires: boost-serialization = %{version}-%{release} Requires: boost-signals = %{version}-%{release} Requires: boost-system = %{version}-%{release} Requires: boost-test = %{version}-%{release} Requires: boost-thread = %{version}-%{release} Requires: boost-timer = %{version}-%{release} Requires: boost-wave = %{version}-%{release} Provides: boost-python-devel = %{version}-%{release} %if %{with python3} Provides: boost-python3-devel = %{version}-%{release} %endif %description devel Headers and shared object symbolic links for the Boost C++ libraries. %package static Summary: The Boost C++ static development libraries Group: Development/Libraries Requires: boost-devel = %{version}-%{release} %description static Static Boost C++ libraries. %package doc Summary: HTML documentation for the Boost C++ libraries Group: Documentation %description doc This package contains the documentation in the HTML format of the Boost C++ libraries. The documentation provides the same content as that on the Boost web page (http://www.boost.org/doc/libs/1_40_0). %package build Summary: Cross platform build system for C++ projects Group: Development/Tools Requires: boost-jam BuildArch: noarch %description build Boost.Build is an easy way to build C++ projects, everywhere. You name your pieces of executable and libraries and list their sources. Boost.Build takes care about compiling your sources with the right options, creating static and shared libraries, making pieces of executable, and other chores -- whether you're using GCC, MSVC, or a dozen more supported C++ compilers -- on Windows, OSX, Linux and commercial UNIX systems. %package jam Summary: A low-level build tool Group: Development/Tools %description jam Boost.Jam (BJam) is the low-level build engine tool for Boost.Build. Historically, Boost.Jam is based on on FTJam and on Perforce Jam but has grown a number of significant features and is now developed independently %prep %setup -q -n %{toplev_dirname} %patch0 -p1 %patch1 -p1 %patch2 -p0 %patch3 -p1 %patch4 -p1 %patch5 -p0 %patch6 -p1 %patch7 -p0 %patch8 -p0 %patch9 -p0 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %patch16 -p1 %patch17 -p1 %patch18 -p1 %patch19 -p1 %patch20 -p1 %patch21 -p1 %patch22 -p1 # At least python2_version needs to be a macro so that it's visible in # %%install as well. %global python2_version %(/usr/bin/python2 %{SOURCE1}) %if %{with python3} %global python3_version %(/usr/bin/python3 %{SOURCE1}) %global python3_abiflags %(/usr/bin/python3-config --abiflags) %endif %build : PYTHON2_VERSION=%{python2_version} %if %{with python3} : PYTHON3_VERSION=%{python3_version} : PYTHON3_ABIFLAGS=%{python3_abiflags} %endif cat >> ./tools/build/v2/user-config.jam << EOF # There are many strict aliasing warnings, and it's not feasible to go # through them all at this time. using gcc : : : <compileflags>-fno-strict-aliasing ; %if %{with python3} # This _adds_ extra python version. It doesn't replace whatever # python 2.X is default on the system. using python : %{python3_version} : /usr/bin/python3 : /usr/include/python%{python3_version}%{python3_abiflags} ; %endif EOF ./bootstrap.sh --with-toolset=gcc --with-icu # N.B. When we build the following with PCH, parts of boost (math # library in particular) end up being built second time during # installation. Unsure why that is, but all sub-builds need to be # built with pch=off to avoid this. # # The "python=2.*" bit tells jam that we want to _also_ build 2.*, not # just 3.*. When omitted, it just builds for python 3 twice, once # calling the library libboost_python and once libboost_python3. I # assume this is for backward compatibility for apps that are used to # linking against -lboost_python, for when 2->3 transition is # eventually done. echo ============================= build serial ================== ./b2 -d+2 -q %{?_smp_mflags} --layout=tagged \ --without-mpi --without-graph_parallel --build-dir=serial \ %if !%{with context} --without-context --without-coroutine \ %endif variant=release threading=single,multi debug-symbols=on pch=off \ python=%{python2_version} stage echo ============================= build Boost.Build ================== (cd tools/build/v2 ./bootstrap.sh --with-toolset=gcc) %check : %install rm -rf $RPM_BUILD_ROOT cd %{_builddir}/%{toplev_dirname} echo ============================= install serial ================== ./b2 -d+2 -q %{?_smp_mflags} --layout=tagged \ --without-mpi --without-graph_parallel --build-dir=serial \ %if !%{with context} --without-context --without-coroutine \ %endif --prefix=$RPM_BUILD_ROOT%{_prefix} \ --libdir=$RPM_BUILD_ROOT%{_libdir} \ variant=release threading=single,multi debug-symbols=on pch=off \ python=%{python2_version} install # Override DSO symlink with a linker script. See the linker script # itself for details of why we need to do this. [ -f $RPM_BUILD_ROOT%{_libdir}/libboost_thread-mt.so ] # Must be present rm -f $RPM_BUILD_ROOT%{_libdir}/libboost_thread-mt.so install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_libdir}/ echo ============================= install Boost.Build ================== (cd tools/build/v2 ./b2 --prefix=$RPM_BUILD_ROOT%{_prefix} install # Fix some permissions chmod -x $RPM_BUILD_ROOT%{_datadir}/boost-build/build/alias.py chmod +x $RPM_BUILD_ROOT%{_datadir}/boost-build/tools/doxproc.py # We don't want to distribute this rm -f $RPM_BUILD_ROOT%{_bindir}/b2 # Not a real file rm -f $RPM_BUILD_ROOT%{_datadir}/boost-build/build/project.ann.py # Empty file rm -f $RPM_BUILD_ROOT%{_datadir}/boost-build/tools/doxygen/windows-paths-check.hpp # Install the manual page %{__install} -p -m 644 doc/bjam.1 -D $RPM_BUILD_ROOT%{_mandir}/man1/bjam.1 ) # Install documentation files (HTML pages) within the temporary place echo ============================= install documentation ================== # Prepare the place to temporary store the generated documentation rm -rf %{boost_docdir} && %{__mkdir_p} %{boost_docdir}/html DOCPATH=%{boost_docdir} find libs doc more -type f \( -name \*.htm -o -name \*.html \) \ | sed -n '/\//{s,/[^/]*$,,;p}' \ | sort -u > tmp-doc-directories sed "s:^:$DOCPATH/:" tmp-doc-directories \ | xargs --no-run-if-empty %{__install} -d cat tmp-doc-directories | while read tobeinstalleddocdir; do find $tobeinstalleddocdir -mindepth 1 -maxdepth 1 -name \*.htm\* \ | xargs %{__install} -p -m 644 -t $DOCPATH/$tobeinstalleddocdir done rm -f tmp-doc-directories %{__install} -p -m 644 -t $DOCPATH LICENSE_1_0.txt index.htm index.html # Resolve spurious-executable-perm rpmlint error find %{buildroot} -type f -name "*.hpp" -exec chmod 644 {} \; %fdupes %{buildroot}/ %fdupes %{buildroot}/%{_libdir}/ %fdupes %{buildroot}/%{_datadir}/ %clean rm -rf $RPM_BUILD_ROOT # MPI subpackages don't need the ldconfig magic. They are hidden by # default, in MPI back-end-specific directory, and only show to the # user after the relevant environment module has been loaded. # rpmlint will report that as errors, but it is fine. %post atomic -p /sbin/ldconfig %postun atomic -p /sbin/ldconfig %post chrono -p /sbin/ldconfig %postun chrono -p /sbin/ldconfig %if %{with context} %post context -p /sbin/ldconfig %postun context -p /sbin/ldconfig %post coroutine -p /sbin/ldconfig %postun coroutine -p /sbin/ldconfig %endif %post date-time -p /sbin/ldconfig %postun date-time -p /sbin/ldconfig %post filesystem -p /sbin/ldconfig %postun filesystem -p /sbin/ldconfig %post graph -p /sbin/ldconfig %postun graph -p /sbin/ldconfig %post iostreams -p /sbin/ldconfig %postun iostreams -p /sbin/ldconfig %post locale -p /sbin/ldconfig %postun locale -p /sbin/ldconfig %post log -p /sbin/ldconfig %postun log -p /sbin/ldconfig %post math -p /sbin/ldconfig %postun math -p /sbin/ldconfig %post program-options -p /sbin/ldconfig %postun program-options -p /sbin/ldconfig %post python -p /sbin/ldconfig %postun python -p /sbin/ldconfig %if %{with python3} %post python3 -p /sbin/ldconfig %postun python3 -p /sbin/ldconfig %endif %post random -p /sbin/ldconfig %postun random -p /sbin/ldconfig %post regex -p /sbin/ldconfig %postun regex -p /sbin/ldconfig %post serialization -p /sbin/ldconfig %postun serialization -p /sbin/ldconfig %post signals -p /sbin/ldconfig %postun signals -p /sbin/ldconfig %post system -p /sbin/ldconfig %postun system -p /sbin/ldconfig %post test -p /sbin/ldconfig %postun test -p /sbin/ldconfig %post thread -p /sbin/ldconfig %postun thread -p /sbin/ldconfig %post timer -p /sbin/ldconfig %postun timer -p /sbin/ldconfig %post wave -p /sbin/ldconfig %postun wave -p /sbin/ldconfig %files atomic %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_atomic-mt.so.%{sonamever} %files chrono %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_chrono*.so.%{sonamever} %if %{with context} %files context %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_context.so.%{sonamever} %{_libdir}/libboost_context-mt.so.%{sonamever} %files coroutine %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_coroutine.so.%{sonamever} %{_libdir}/libboost_coroutine-mt.so.%{sonamever} %endif %files date-time %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_date_time*.so.%{sonamever} %files filesystem %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_filesystem*.so.%{sonamever} %files graph %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_graph.so.%{sonamever} %{_libdir}/libboost_graph-mt.so.%{sonamever} %files iostreams %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_iostreams*.so.%{sonamever} %files locale %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_locale*.so.%{sonamever} %files log %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_log.so.%{sonamever} %{_libdir}/libboost_log-mt.so.%{sonamever} %{_libdir}/libboost_log_setup.so.%{sonamever} %{_libdir}/libboost_log_setup-mt.so.%{sonamever} %files math %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_math*.so.%{sonamever} %files test %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_prg_exec_monitor*.so.%{sonamever} %{_libdir}/libboost_unit_test_framework*.so.%{sonamever} %files program-options %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_program_options*.so.%{sonamever} %files python %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_python.so.%{sonamever} %{_libdir}/libboost_python-mt.so.%{sonamever} %if %{with python3} %files python3 %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_python3.so.%{sonamever} %{_libdir}/libboost_python3-mt.so.%{sonamever} %endif %files random %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_random*.so.%{sonamever} %files regex %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_regex*.so.%{sonamever} %files serialization %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_serialization*.so.%{sonamever} %{_libdir}/libboost_wserialization*.so.%{sonamever} %files signals %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_signals*.so.%{sonamever} %files system %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_system*.so.%{sonamever} %files thread %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_thread*.so.%{sonamever} %files timer %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_timer*.so.%{sonamever} %files wave %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/libboost_wave*.so.%{sonamever} %files doc %defattr(-, root, root, -) %doc %{boost_docdir}/* %files devel %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_includedir}/%{name} %{_libdir}/libboost_*.so %files static %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_libdir}/*.a %files build %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_datadir}/boost-build/ %files jam %defattr(-, root, root, -) %doc LICENSE_1_0.txt %{_bindir}/bjam %{_mandir}/man1/bjam.1*