# TODO:
# - think about building MPI.
# - split shared libs from core package into -iostreams/-serialization.
-# - fix building context and corouting on x32 (patch1)
#
# Conditional build:
%bcond_without python2 # without boost-python2 support
Summary: The Boost C++ Libraries
Summary(pl.UTF-8): Biblioteki C++ "Boost"
Name: boost
-Version: 1.57.0
-Release: 5
+Version: 1.61.0
+Release: 2
License: Boost Software License and others
Group: Libraries
Source0: http://downloads.sourceforge.net/boost/%{name}_%{fver}.tar.bz2
-# Source0-md5: 1be49befbdd9a5ce9def2983ba3e7b76
+# Source0-md5: 6095876341956f65f9d35939ccea1a9f
Patch0: %{name}-link.patch
Patch1: %{name}-x32-context.patch
+Patch2: %{name}-clean-gcc-flags.patch
# FC Patches:
# https://svn.boost.org/trac/boost/ticket/5637
Patch203: %{name}-1.54.0-mpl-print.patch
-# https://svn.boost.org/trac/boost/ticket/8870
-Patch211: %{name}-1.54.0-spirit-unused_typedef.patch
-Patch212: %{name}-1.54.0-spirit-unused_typedef-2.patch
-# https://svn.boost.org/trac/boost/ticket/8878
-Patch218: %{name}-1.54.0-locale-unused_typedef.patch
# https://svn.boost.org/trac/boost/ticket/8881
Patch221: %{name}-1.54.0-mpi-unused_typedef.patch
-# https://svn.boost.org/trac/boost/ticket/8888
-Patch222: %{name}-1.54.0-python-unused_typedef.patch
-# https://svn.boost.org/trac/boost/ticket/9038
-Patch224: %{name}-1.54.0-pool-test_linking.patch
URL: http://www.boost.org/
BuildRequires: bzip2-devel
BuildRequires: expat-devel
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-chrono = %{version}-%{release}
-%ifnarch x32
Requires: %{name}-context = %{version}-%{release}
-%endif
Requires: %{name}-date_time = %{version}-%{release}
Requires: %{name}-filesystem = %{version}-%{release}
Requires: %{name}-graph = %{version}-%{release}
Summary(pl.UTF-8): Pliki programistyczne biblioteki Boost.Python dla Pythona 3
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
-Requires: %{name}-python3 = %{version}-%{release}
Requires: %{name}-python-devel-common = %{version}-%{release}
+Requires: %{name}-python3 = %{version}-%{release}
%description python3-devel
Boost.Python development files for Python 3.
%prep
%setup -q -n %{name}_%{fver}
%patch0 -p1
-#patch1 -p0
+%patch1 -p1
+%patch2 -p1
%patch203 -p0
-%patch211 -p1
-%patch212 -p1
-%patch218 -p1
%patch221 -p1
-%patch222 -p1
-%patch224 -p1
-
-# - don't know how to pass it through (b)jam -s (no way?)
-# due to oversophisticated build flags system.
-# - pass -fPIC due to <shared-linkable> removal.
-%{__sed} -i "s/<optimization>speed : -O3/<optimization>speed : ${CXXFLAGS:-%rpmcxxflags} -fPIC/" tools/build/src/tools/gcc.jam
-
-# cleanup -g switch to avoid override debuginfocflags.
-%{__sed} -i 's/<debug-symbols>on : -g/<debug-symbols>on :/' tools/build/src/tools/gcc.jam
-# link against shared expat library.
-#%{__sed} -i 's:find-static:find-shared:' libs/graph/build/Jamfile.v2
cat << EOF > tools/build/src/user-config.jam
-using gcc : %{cxx_version} : %{__cxx} ;
+using gcc : %{cxx_version} : %{__cxx} : <cflags>"%{rpmcflags} -fPIC" <cxxflags>"%{rpmcxxflags} -fPIC" <linkflags>"%{rpmldflags}" ;
EOF
# cleanup backups after patching
-without-libraries=python
./b2 \
-%ifarch x32
- --without-context \
- --without-coroutine \
-%endif
-d2 --toolset=gcc \
variant=release \
debug-symbols=on \
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libboost_atomic.so.*.*.*
%attr(755,root,root) %{_libdir}/libboost_container.so.*.*.*
-%ifnarch x32
%attr(755,root,root) %{_libdir}/libboost_coroutine.so.*.*.*
-%endif
%attr(755,root,root) %{_libdir}/libboost_iostreams.so.*.*.*
%attr(755,root,root) %{_libdir}/libboost_math_*.so.*.*.*
%attr(755,root,root) %{_libdir}/libboost_random.so.*.*.*
%attr(755,root,root) %{_libdir}/libboost_serialization.so.*.*.*
+%attr(755,root,root) %{_libdir}/libboost_type_erasure.so.*.*.*
%attr(755,root,root) %{_libdir}/libboost_wserialization.so.*.*.*
%files devel
%attr(755,root,root) %{_libdir}/libboost_atomic.so
%attr(755,root,root) %{_libdir}/libboost_chrono.so
%attr(755,root,root) %{_libdir}/libboost_container.so
-%ifnarch x32
%attr(755,root,root) %{_libdir}/libboost_context.so
%attr(755,root,root) %{_libdir}/libboost_coroutine.so
-%endif
%attr(755,root,root) %{_libdir}/libboost_date_time.so
%attr(755,root,root) %{_libdir}/libboost_filesystem.so
%attr(755,root,root) %{_libdir}/libboost_graph.so
%attr(755,root,root) %{_libdir}/libboost_system.so
%attr(755,root,root) %{_libdir}/libboost_thread.so
%attr(755,root,root) %{_libdir}/libboost_timer.so
+%attr(755,root,root) %{_libdir}/libboost_type_erasure.so
%attr(755,root,root) %{_libdir}/libboost_unit_test_framework.so
%attr(755,root,root) %{_libdir}/libboost_wave.so
%attr(755,root,root) %{_libdir}/libboost_wserialization.so
%{_libdir}/libboost_atomic.a
%{_libdir}/libboost_chrono.a
%{_libdir}/libboost_container.a
-%ifnarch x32
%{_libdir}/libboost_context.a
%{_libdir}/libboost_coroutine.a
-%endif
%{_libdir}/libboost_date_time.a
%{_libdir}/libboost_exception.a
%{_libdir}/libboost_filesystem.a
%{_libdir}/libboost_test_exec_monitor.a
%{_libdir}/libboost_timer.a
%{_libdir}/libboost_thread.a
+%{_libdir}/libboost_type_erasure.a
%{_libdir}/libboost_unit_test_framework.a
%{_libdir}/libboost_wave.a
%{_libdir}/libboost_wserialization.a
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libboost_chrono.so.*.*.*
-%ifnarch x32
%files context
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libboost_context.so.*.*.*
-%endif
%files date_time
%defattr(644,root,root,755)