fix build for python3 [release 1.71.0-3mamba;Wed Nov 27 2019]
This commit is contained in:
parent
10eedbd78c
commit
d82b943b28
100
libboost.spec
100
libboost.spec
@ -1,15 +1,16 @@
|
|||||||
%define pckver %(echo %version | tr . _)
|
%define pckver %(echo %version | tr . _)
|
||||||
%define pckmajver %(echo %version | cut -d. -f1-2 | tr . _)
|
%define pckmajver %(echo %version | cut -d. -f1-2 | tr . _)
|
||||||
Name: libboost
|
Name: libboost
|
||||||
Version: 1.69.0
|
Version: 1.71.0
|
||||||
Release: 2mamba
|
Release: 3mamba
|
||||||
Summary: Free peer-reviewed portable C++ source libraries
|
Summary: Free peer-reviewed portable C++ source libraries
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
Distribution: openmamba
|
Distribution: openmamba
|
||||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
URL: http://boost.org/
|
URL: http://boost.org/
|
||||||
Source: http://download.sourceforge.net/sourceforge/boost/boost_%{pckver}.tar.bz2
|
Source: https://dl.bintray.com/boostorg/release/%{version}/source/boost_%{pckver}.tar.bz2
|
||||||
|
#Source: http://download.sourceforge.net/sourceforge/boost/boost_%{pckver}.tar.bz2
|
||||||
Patch0: libboost-1.57.0-moc-libqt4-4.8.6.patch
|
Patch0: libboost-1.57.0-moc-libqt4-4.8.6.patch
|
||||||
Patch1: libboost-1.58.0-python-3.3.patch
|
Patch1: libboost-1.58.0-python-3.3.patch
|
||||||
License: Boost Software License
|
License: Boost Software License
|
||||||
@ -41,7 +42,7 @@ Group: Development/Libraries
|
|||||||
Summary: Devel package for libboost
|
Summary: Devel package for libboost
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: python27-boost = %{version}-%{release}
|
Requires: python27-boost = %{version}-%{release}
|
||||||
Requires: python36-boost = %{version}-%{release}
|
Requires: python3-boost = %{version}-%{release}
|
||||||
Provides: python-boost-devel
|
Provides: python-boost-devel
|
||||||
Obsoletes: python-boost-devel
|
Obsoletes: python-boost-devel
|
||||||
|
|
||||||
@ -72,12 +73,12 @@ Ten Boost libraries will be included in the C++ Standards Committee's upcoming C
|
|||||||
|
|
||||||
This package contains then Boost.python library
|
This package contains then Boost.python library
|
||||||
|
|
||||||
%package -n python36-boost
|
%package -n python3-boost
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Summary: Boost.Python library for Python 3.6
|
Summary: Boost.Python library for Python 3
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
%description -n python36-boost
|
%description -n python3-boost
|
||||||
The Boost libraries provides free peer-reviewed portable C++ source libraries.
|
The Boost libraries provides free peer-reviewed portable C++ source libraries.
|
||||||
The emphasis is on libraries which work well with the C++ Standard Library.
|
The emphasis is on libraries which work well with the C++ Standard Library.
|
||||||
The libraries are intended to be widely useful, and are in regular use by thousands of programmers across a broad spectrum of applications.
|
The libraries are intended to be widely useful, and are in regular use by thousands of programmers across a broad spectrum of applications.
|
||||||
@ -85,27 +86,32 @@ The libraries are intended to be widely useful, and are in regular use by thousa
|
|||||||
A further goal is to establish "existing practice" and provide reference implementations so that Boost libraries are suitable for eventual standardization.
|
A further goal is to establish "existing practice" and provide reference implementations so that Boost libraries are suitable for eventual standardization.
|
||||||
Ten Boost libraries will be included in the C++ Standards Committee's upcoming C++ Standard Library Technical Report as a step toward becoming part of a future C++ Standard.
|
Ten Boost libraries will be included in the C++ Standards Committee's upcoming C++ Standard Library Technical Report as a step toward becoming part of a future C++ Standard.
|
||||||
|
|
||||||
This package contains then Boost.python library for Python 3.6.
|
This package contains then Boost.python library for Python 3.
|
||||||
|
|
||||||
|
%debug_package
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n boost_%{pckver} -a0
|
%setup -q -n boost_%{pckver} -a0 -D -T
|
||||||
|
:<< _EOF
|
||||||
|
|
||||||
mv boost_%{pckver} boost_python
|
mv boost_%{pckver} boost_python
|
||||||
#%patch0 -p1
|
#%patch0 -p1
|
||||||
#%patch1 -p1
|
#%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Build boost with python36
|
:<< _EOF
|
||||||
|
# Build boost with python3
|
||||||
./bootstrap.sh \
|
./bootstrap.sh \
|
||||||
--with-icu \
|
--with-icu \
|
||||||
--with-python-root=%{_prefix} \
|
--with-python-root=%{_prefix} \
|
||||||
--with-python-version=%{python36_version}
|
--with-python-version=%{python3_version}
|
||||||
|
|
||||||
sed -i "s|using python.*|using python : %{python36_version} : %{_prefix} : %{python36_inc} ;|" project-config.jam
|
sed -i "s|using python.*|using python : %{python3_version} : %{_prefix} : %{python3_inc} ;|" project-config.jam
|
||||||
echo "using mpi ;" >> project-config.jam
|
echo "using mpi ;" >> project-config.jam
|
||||||
|
|
||||||
EXPAT_INCLUDE=%{_includedir} \
|
EXPAT_INCLUDE=%{_includedir} \
|
||||||
EXPAT_LIBPATH=%{_libdir} \
|
EXPAT_LIBPATH=%{_libdir} \
|
||||||
./bjam \
|
./b2 \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--layout=system -d2 \
|
--layout=system -d2 \
|
||||||
runtime-link=shared \
|
runtime-link=shared \
|
||||||
@ -131,7 +137,7 @@ rm -f user-config.jam
|
|||||||
|
|
||||||
EXPAT_INCLUDE=%{_includedir} \
|
EXPAT_INCLUDE=%{_includedir} \
|
||||||
EXPAT_LIBPATH=%{_libdir} \
|
EXPAT_LIBPATH=%{_libdir} \
|
||||||
./bjam \
|
./b2 \
|
||||||
-a \
|
-a \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--layout=system -d2 \
|
--layout=system -d2 \
|
||||||
@ -151,7 +157,7 @@ EXPAT_LIBPATH=%{_libdir} \
|
|||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
EXPAT_INCLUDE=%{_includedir} \
|
EXPAT_INCLUDE=%{_includedir} \
|
||||||
EXPAT_LIBPATH=%{_libdir} \
|
EXPAT_LIBPATH=%{_libdir} \
|
||||||
./bjam \
|
./b2 \
|
||||||
--prefix=%{buildroot}%{_prefix} \
|
--prefix=%{buildroot}%{_prefix} \
|
||||||
--libdir=%{buildroot}%{_libdir} \
|
--libdir=%{buildroot}%{_libdir} \
|
||||||
--execprefix=%{buildroot}%{_libexecdir} \
|
--execprefix=%{buildroot}%{_libexecdir} \
|
||||||
@ -168,7 +174,7 @@ EXPAT_LIBPATH=%{_libdir} \
|
|||||||
cd boost_python
|
cd boost_python
|
||||||
EXPAT_INCLUDE=%{_includedir} \
|
EXPAT_INCLUDE=%{_includedir} \
|
||||||
EXPAT_LIBPATH=%{_libdir} \
|
EXPAT_LIBPATH=%{_libdir} \
|
||||||
./bjam \
|
./b2 \
|
||||||
--prefix=%{buildroot}%{_prefix} \
|
--prefix=%{buildroot}%{_prefix} \
|
||||||
--libdir=%{buildroot}%{_libdir} \
|
--libdir=%{buildroot}%{_libdir} \
|
||||||
--execprefix=%{buildroot}%{_libexecdir} \
|
--execprefix=%{buildroot}%{_libexecdir} \
|
||||||
@ -202,9 +208,43 @@ EXPAT_LIBPATH=%{_libdir} \
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/libboost_atomic.so.*
|
||||||
%{_libdir}/mpi.so
|
%{_libdir}/libboost_chrono.so.*
|
||||||
%exclude %{_libdir}/libboost_python*.so.*
|
%{_libdir}/libboost_container.so.*
|
||||||
|
%{_libdir}/libboost_context.so.*
|
||||||
|
%{_libdir}/libboost_contract.so.*
|
||||||
|
%{_libdir}/libboost_coroutine.so.*
|
||||||
|
%{_libdir}/libboost_date_time.so.*
|
||||||
|
%{_libdir}/libboost_fiber.so.*
|
||||||
|
%{_libdir}/libboost_filesystem.so.*
|
||||||
|
%{_libdir}/libboost_graph.so.*
|
||||||
|
%{_libdir}/libboost_graph_parallel.so.*
|
||||||
|
%{_libdir}/libboost_iostreams.so.*
|
||||||
|
%{_libdir}/libboost_locale.so.*
|
||||||
|
%{_libdir}/libboost_log.so.*
|
||||||
|
%{_libdir}/libboost_log_setup.so.*
|
||||||
|
%{_libdir}/libboost_math_c99.so.*
|
||||||
|
%{_libdir}/libboost_math_c99f.so.*
|
||||||
|
%{_libdir}/libboost_math_c99l.so.*
|
||||||
|
%{_libdir}/libboost_math_tr1.so.*
|
||||||
|
%{_libdir}/libboost_math_tr1f.so.*
|
||||||
|
%{_libdir}/libboost_math_tr1l.so.*
|
||||||
|
%{_libdir}/libboost_mpi.so.*
|
||||||
|
%{_libdir}/libboost_prg_exec_monitor.so.*
|
||||||
|
%{_libdir}/libboost_program_options.so.*
|
||||||
|
%{_libdir}/libboost_random.so.*
|
||||||
|
%{_libdir}/libboost_regex.so.*
|
||||||
|
%{_libdir}/libboost_serialization.so.*
|
||||||
|
%{_libdir}/libboost_stacktrace_addr2line.so.*
|
||||||
|
%{_libdir}/libboost_stacktrace_basic.so.*
|
||||||
|
%{_libdir}/libboost_stacktrace_noop.so.*
|
||||||
|
%{_libdir}/libboost_system.so.*
|
||||||
|
%{_libdir}/libboost_thread.so.*
|
||||||
|
%{_libdir}/libboost_timer.so.*
|
||||||
|
%{_libdir}/libboost_type_erasure.so.*
|
||||||
|
%{_libdir}/libboost_unit_test_framework.so.*
|
||||||
|
%{_libdir}/libboost_wave.so.*
|
||||||
|
%{_libdir}/libboost_wserialization.so.*
|
||||||
%doc LICENSE_1_0.txt
|
%doc LICENSE_1_0.txt
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
@ -213,17 +253,33 @@ EXPAT_LIBPATH=%{_libdir} \
|
|||||||
%{_includedir}/boost/*
|
%{_includedir}/boost/*
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/*.a
|
%{_libdir}/*.a
|
||||||
%exclude %{_libdir}/mpi.so
|
#%exclude %{_libdir}/mpi.so
|
||||||
|
%dir %{_libdir}/cmake/Boost-%{version}
|
||||||
|
%{_libdir}/cmake/Boost-%{version}/Boost*.cmake
|
||||||
|
%{_libdir}/cmake/Boost*.cmake
|
||||||
|
%{_libdir}/cmake/boost_*/*.cmake
|
||||||
|
|
||||||
%files -n python27-boost
|
%files -n python27-boost
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%ifnarch arm
|
||||||
|
%{_libdir}/libboost_numpy27.so.*
|
||||||
|
%endif
|
||||||
%{_libdir}/libboost_python27*.so.*
|
%{_libdir}/libboost_python27*.so.*
|
||||||
|
|
||||||
%files -n python36-boost
|
%files -n python3-boost
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/libboost_python36*.so.*
|
%{_libdir}/libboost_python3*.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Nov 27 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.71.0-3mamba
|
||||||
|
- fix build for python3
|
||||||
|
|
||||||
|
* Fri Nov 22 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.71.0-2mamba
|
||||||
|
- rebuilt with debug package and python3
|
||||||
|
|
||||||
|
* Sat Oct 26 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.71.0-1mamba
|
||||||
|
- update to 1.71.0
|
||||||
|
|
||||||
* Mon Feb 11 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.69.0-2mamba
|
* Mon Feb 11 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.69.0-2mamba
|
||||||
- rebuilt with --threading=multi and --layout=system
|
- rebuilt with --threading=multi and --layout=system
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user