[boost/f16] Build math portion of Boost.TR1, package DSOs in boost-math
Petr Machata
pmachata at fedoraproject.org
Wed Jan 4 17:28:26 UTC 2012
commit eebc669ef4b4246482d9c14e690d47817d37c7d9
Author: Petr Machata <pmachata at redhat.com>
Date: Wed Jan 4 18:26:17 2012 +0100
Build math portion of Boost.TR1, package DSOs in boost-math
boost-1.47.0-mathlib.patch | 94 ++++++++++++++++++++++++++++++++++++++++++++
boost.spec | 19 ++++++---
2 files changed, 107 insertions(+), 6 deletions(-)
---
diff --git a/boost-1.47.0-mathlib.patch b/boost-1.47.0-mathlib.patch
new file mode 100644
index 0000000..ac02a65
--- /dev/null
+++ b/boost-1.47.0-mathlib.patch
@@ -0,0 +1,94 @@
+diff -up boost_1_47_0/libs/math/CMakeLists.txt\~ boost_1_47_0/libs/math/CMakeLists.txt
+--- boost_1_47_0/libs/math/CMakeLists.txt~ 2012-01-03 18:15:11.568913701 +0100
++++ boost_1_47_0/libs/math/CMakeLists.txt 2012-01-03 18:51:11.437962984 +0100
+@@ -15,7 +15,7 @@ set (lib_headers
+ # Add a library target to the build system
+ boost_library_project(
+ math
+- # SRCDIRS
++ SRCDIRS src/tr1
+ TESTDIRS test
+ HEADERS ${lib_headers}
+ # DOCDIRS
+diff -up boost_1_47_0/libs/math/src/tr1/CMakeLists.txt\~ boost_1_47_0/libs/math/src/tr1/CMakeLists.txt
+--- boost_1_47_0/libs/math/src/tr1/CMakeLists.txt~ 2012-01-03 18:50:07.514961526 +0100
++++ boost_1_47_0/libs/math/src/tr1/CMakeLists.txt 2012-01-03 18:47:32.803957995 +0100
+@@ -0,0 +1,76 @@
++boost_add_library(math_tr1
++
++ assoc_laguerre.cpp assoc_legendre.cpp beta.cpp
++ comp_ellint_1.cpp comp_ellint_2.cpp comp_ellint_3.cpp
++ cyl_bessel_i.cpp cyl_bessel_j.cpp cyl_bessel_k.cpp
++ cyl_neumann.cpp ellint_1.cpp ellint_2.cpp ellint_3.cpp
++ expint.cpp hermite.cpp laguerre.cpp legendre.cpp
++ riemann_zeta.cpp sph_bessel.cpp sph_legendre.cpp
++ sph_neumann.cpp
++
++ SHARED_COMPILE_FLAGS "-DBOOST_MATH_TR1_DYN_LINK=1"
++ COMPILE_FLAGS "-I${CMAKE_CURRENT_SOURCE_DIR}"
++)
++
++boost_add_library(math_tr1f
++
++ assoc_laguerref.cpp assoc_legendref.cpp betaf.cpp
++ comp_ellint_1f.cpp comp_ellint_2f.cpp comp_ellint_3f.cpp
++ cyl_bessel_if.cpp cyl_bessel_jf.cpp cyl_bessel_kf.cpp
++ cyl_neumannf.cpp ellint_1f.cpp ellint_2f.cpp ellint_3f.cpp
++ expintf.cpp hermitef.cpp laguerref.cpp legendref.cpp
++ riemann_zetaf.cpp sph_besself.cpp sph_legendref.cpp
++ sph_neumannf.cpp
++
++ SHARED_COMPILE_FLAGS "-DBOOST_MATH_TR1_DYN_LINK=1"
++ COMPILE_FLAGS "-I${CMAKE_CURRENT_SOURCE_DIR}"
++)
++
++boost_add_library(math_tr1l
++
++ assoc_laguerrel.cpp assoc_legendrel.cpp betal.cpp
++ comp_ellint_1l.cpp comp_ellint_2l.cpp comp_ellint_3l.cpp
++ cyl_bessel_il.cpp cyl_bessel_jl.cpp cyl_bessel_kl.cpp
++ cyl_neumannl.cpp ellint_1l.cpp ellint_2l.cpp ellint_3l.cpp
++ expintl.cpp hermitel.cpp laguerrel.cpp legendrel.cpp
++ riemann_zetal.cpp sph_bessell.cpp sph_legendrel.cpp
++ sph_neumannl.cpp
++
++ SHARED_COMPILE_FLAGS "-DBOOST_MATH_TR1_DYN_LINK=1"
++ COMPILE_FLAGS "-I${CMAKE_CURRENT_SOURCE_DIR}"
++)
++
++boost_add_library(math_c99
++
++ acosh.cpp asinh.cpp atanh.cpp cbrt.cpp copysign.cpp erfc.cpp
++ erf.cpp expm1.cpp fmax.cpp fmin.cpp fpclassify.cpp hypot.cpp
++ lgamma.cpp llround.cpp log1p.cpp lround.cpp nextafter.cpp
++ nexttoward.cpp round.cpp tgamma.cpp trunc.cpp
++
++ SHARED_COMPILE_FLAGS "-DBOOST_MATH_TR1_DYN_LINK=1"
++ COMPILE_FLAGS "-I${CMAKE_CURRENT_SOURCE_DIR}"
++)
++
++boost_add_library(math_c99f
++
++ acoshf.cpp asinhf.cpp atanhf.cpp cbrtf.cpp copysignf.cpp
++ erfcf.cpp erff.cpp expm1f.cpp fmaxf.cpp fminf.cpp
++ fpclassifyf.cpp hypotf.cpp lgammaf.cpp llroundf.cpp log1pf.cpp
++ lroundf.cpp nextafterf.cpp nexttowardf.cpp roundf.cpp
++ tgammaf.cpp truncf.cpp
++
++ SHARED_COMPILE_FLAGS "-DBOOST_MATH_TR1_DYN_LINK=1"
++ COMPILE_FLAGS "-I${CMAKE_CURRENT_SOURCE_DIR}"
++)
++
++boost_add_library(math_c99l
++
++ acoshl.cpp asinhl.cpp atanhl.cpp cbrtl.cpp copysignl.cpp
++ erfcl.cpp erfl.cpp expm1l.cpp fmaxl.cpp fminl.cpp
++ fpclassifyl.cpp hypotl.cpp lgammal.cpp llroundl.cpp log1pl.cpp
++ lroundl.cpp nextafterl.cpp nexttowardl.cpp roundl.cpp
++ tgammal.cpp truncl.cpp
++
++ SHARED_COMPILE_FLAGS "-DBOOST_MATH_TR1_DYN_LINK=1"
++ COMPILE_FLAGS "-I${CMAKE_CURRENT_SOURCE_DIR}"
++)
+
+Diff finished. Tue Jan 3 18:50:10 2012
diff --git a/boost.spec b/boost.spec
index 5705f4c..5361a28 100644
--- a/boost.spec
+++ b/boost.spec
@@ -28,7 +28,7 @@ Name: boost
Summary: The free peer-reviewed portable C++ source libraries
Version: 1.47.0
%define version_enc 1_47_0
-Release: 4%{?dist}
+Release: 5%{?dist}
License: Boost
# The CMake build framework (set of CMakeLists.txt and module.cmake files) is
@@ -98,6 +98,9 @@ Patch3: boost-1.47.0-exceptions.patch
# https://svn.boost.org/trac/boost/ticket/5934
Patch4: boost-1.47.0-tuple.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=771370
+Patch5: boost-1.47.0-mathlib.patch
+
%bcond_with tests
%bcond_with docs_generated
@@ -157,15 +160,13 @@ Run-Time support for Boost.IOStreams, a framework for defining streams,
stream buffers and i/o filters.
%package math
-Summary: Stub that used to contain boost math library
+Summary: Math functions for boost TR1 library
Group: System Environment/Libraries
%description math
-This package is a stub that used to contain run-time component of boost
-math library. Now that boost math library is header-only, this
-package is empty. It's kept around only so that during yum-assisted
-update, old libraries from boost-math package aren't left around.
+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
@@ -443,6 +444,7 @@ sed 's/_FEDORA_SONAME/%{sonamever}/' %{PATCH1} | %{__patch} -p0 --fuzz=0
%patch2 -p1
%patch3 -p0
%patch4 -p2
+%patch5 -p1
%build
# Support for building tests.
@@ -752,6 +754,7 @@ find $RPM_BUILD_ROOT%{_includedir}/ \( -name '*.pl' -o -name '*.sh' \) -exec %{_
%files math
%defattr(-, root, root, -)
%doc LICENSE_1_0.txt
+%{_libdir}/libboost_math*.so.%{sonamever}
%files test
%defattr(-, root, root, -)
@@ -895,6 +898,10 @@ find $RPM_BUILD_ROOT%{_includedir}/ \( -name '*.pl' -o -name '*.sh' \) -exec %{_
%{_bindir}/bjam
%changelog
+* Wed Jan 4 2012 Petr Machata <pmachata at redhat.com> - 1.47.0-5
+- Build math portion of Boost.TR1, package DSOs in boost-math.
+- Resolves: #771370
+
* Thu Nov 3 2011 Petr Machata <pmachata at redhat.com> - 1.47.0-4
- Use <boost/tr1/tuple> instead of C++11 header <tuple> in boost math.
- Resolves: #751210
More information about the scm-commits
mailing list