rebuilt with python3 == 3.11 [release 1.83.0-2mamba;Fri Oct 13 2023]
This commit is contained in:
parent
d314b4228a
commit
1affb694a0
@ -2,7 +2,7 @@
|
|||||||
%define pckmajver %(echo %version | cut -d. -f1-2 | tr . _)
|
%define pckmajver %(echo %version | cut -d. -f1-2 | tr . _)
|
||||||
Name: libboost
|
Name: libboost
|
||||||
Version: 1.83.0
|
Version: 1.83.0
|
||||||
Release: 1mamba
|
Release: 2mamba
|
||||||
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
|
||||||
@ -26,7 +26,7 @@ BuildRequires: libz-devel
|
|||||||
BuildRequires: libzstd-devel
|
BuildRequires: libzstd-devel
|
||||||
## AUTOBUILDREQ-END
|
## AUTOBUILDREQ-END
|
||||||
BuildRequires: libicu-devel >= 67.1
|
BuildRequires: libicu-devel >= 67.1
|
||||||
BuildRequires: libpython3-devel
|
BuildRequires: libpython3-devel >= 3.11
|
||||||
BuildRequires: python-numpy-py3
|
BuildRequires: python-numpy-py3
|
||||||
BuildRequires: openmpi-devel
|
BuildRequires: openmpi-devel
|
||||||
BuildRequires: boost-jam
|
BuildRequires: boost-jam
|
||||||
@ -46,7 +46,6 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|||||||
Provides: python-boost-devel
|
Provides: python-boost-devel
|
||||||
Obsoletes: python-boost-devel < 1.78.0-2mamba
|
Obsoletes: python-boost-devel < 1.78.0-2mamba
|
||||||
Requires: python-boost-py3 = %{?epoch:%epoch:}%{version}-%{release}
|
Requires: python-boost-py3 = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
Requires: python-boost-py310 = %{?epoch:%epoch:}%{version}-%{release}
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The Boost libraries provide free peer-reviewed portable C++ source libraries.
|
The Boost libraries provide free peer-reviewed portable C++ source libraries.
|
||||||
@ -88,7 +87,7 @@ This package contains then Boost.python library for Python 3.10.
|
|||||||
%setup -q -n boost_%{pckver} -a0
|
%setup -q -n boost_%{pckver} -a0
|
||||||
#-D -T
|
#-D -T
|
||||||
#:<< _EOF
|
#:<< _EOF
|
||||||
mv boost_%{pckver} boost_python37
|
mv boost_%{pckver} boost_python310
|
||||||
|
|
||||||
#%patch0 -p1
|
#%patch0 -p1
|
||||||
#%patch1 -p1
|
#%patch1 -p1
|
||||||
@ -96,11 +95,41 @@ mv boost_%{pckver} boost_python37
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
#:<< _EOF
|
#:<< _EOF
|
||||||
# Build boost with python310
|
# Build boost with python3
|
||||||
./bootstrap.sh \
|
./bootstrap.sh \
|
||||||
--with-icu \
|
--with-icu \
|
||||||
--with-python-root=%{_prefix} \
|
--with-python-root=%{_prefix} \
|
||||||
--with-python-version=%{python310_version}
|
--with-python-version=%{python3_version}
|
||||||
|
|
||||||
|
sed -i "s|using python.*|using python : %{python3_version} : %{_prefix} : %{python3_inc} ;|" project-config.jam
|
||||||
|
echo "using mpi ;" >> project-config.jam
|
||||||
|
|
||||||
|
EXPAT_INCLUDE=%{_includedir} \
|
||||||
|
EXPAT_LIBPATH=%{_libdir} \
|
||||||
|
./b2 \
|
||||||
|
--prefix=%{_prefix} \
|
||||||
|
--layout=system -d2 \
|
||||||
|
python=%{python3_version} \
|
||||||
|
runtime-link=shared \
|
||||||
|
link=shared,static \
|
||||||
|
toolset=gcc \
|
||||||
|
variant=release \
|
||||||
|
threading=multi \
|
||||||
|
debug-symbols=on \
|
||||||
|
stage \
|
||||||
|
%ifarch x86_64
|
||||||
|
cflags="-fPIC"
|
||||||
|
%endif
|
||||||
|
|
||||||
|
cd boost_python310
|
||||||
|
# Rebuild boost with Python 3.10
|
||||||
|
rm -f user-config.jam
|
||||||
|
|
||||||
|
./bootstrap.sh \
|
||||||
|
--with-icu \
|
||||||
|
--with-python-root=%{_prefix} \
|
||||||
|
--with-python-version=%{python310_version} \
|
||||||
|
--with-libraries=python
|
||||||
|
|
||||||
sed -i "s|using python.*|using python : %{python310_version} : %{_prefix} : %{python310_inc} ;|" project-config.jam
|
sed -i "s|using python.*|using python : %{python310_version} : %{_prefix} : %{python310_inc} ;|" project-config.jam
|
||||||
echo "using mpi ;" >> project-config.jam
|
echo "using mpi ;" >> project-config.jam
|
||||||
@ -108,6 +137,7 @@ echo "using mpi ;" >> project-config.jam
|
|||||||
EXPAT_INCLUDE=%{_includedir} \
|
EXPAT_INCLUDE=%{_includedir} \
|
||||||
EXPAT_LIBPATH=%{_libdir} \
|
EXPAT_LIBPATH=%{_libdir} \
|
||||||
./b2 \
|
./b2 \
|
||||||
|
-a \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--layout=system -d2 \
|
--layout=system -d2 \
|
||||||
python=%{python310_version} \
|
python=%{python310_version} \
|
||||||
@ -122,40 +152,9 @@ EXPAT_LIBPATH=%{_libdir} \
|
|||||||
cflags="-fPIC"
|
cflags="-fPIC"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
cd boost_python37
|
|
||||||
# Rebuild boost with Python 3.7
|
|
||||||
rm -f user-config.jam
|
|
||||||
|
|
||||||
./bootstrap.sh \
|
|
||||||
--with-icu \
|
|
||||||
--with-python-root=%{_prefix} \
|
|
||||||
--with-python-version=%{python3_version} \
|
|
||||||
--with-libraries=python
|
|
||||||
|
|
||||||
sed -i "s|using python.*|using python : %{python3_version} : %{_prefix} : %{python3_inc} ;|" project-config.jam
|
|
||||||
echo "using mpi ;" >> project-config.jam
|
|
||||||
|
|
||||||
EXPAT_INCLUDE=%{_includedir} \
|
|
||||||
EXPAT_LIBPATH=%{_libdir} \
|
|
||||||
./b2 \
|
|
||||||
-a \
|
|
||||||
--prefix=%{_prefix} \
|
|
||||||
--layout=system -d2 \
|
|
||||||
python=%{python3_version} \
|
|
||||||
runtime-link=shared \
|
|
||||||
link=shared,static \
|
|
||||||
toolset=gcc \
|
|
||||||
variant=release \
|
|
||||||
threading=multi \
|
|
||||||
debug-symbols=on \
|
|
||||||
stage \
|
|
||||||
%ifarch x86_64
|
|
||||||
cflags="-fPIC"
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
cd boost_python37
|
cd boost_python310
|
||||||
EXPAT_INCLUDE=%{_includedir} \
|
EXPAT_INCLUDE=%{_includedir} \
|
||||||
EXPAT_LIBPATH=%{_libdir} \
|
EXPAT_LIBPATH=%{_libdir} \
|
||||||
./b2 \
|
./b2 \
|
||||||
@ -164,7 +163,7 @@ EXPAT_LIBPATH=%{_libdir} \
|
|||||||
--execprefix=%{buildroot}%{_libexecdir} \
|
--execprefix=%{buildroot}%{_libexecdir} \
|
||||||
--includedir=%{buildroot}%{_includedir} \
|
--includedir=%{buildroot}%{_includedir} \
|
||||||
--layout=system -d2 \
|
--layout=system -d2 \
|
||||||
python=%{python3_version} \
|
python=%{python310_version} \
|
||||||
runtime-link=shared \
|
runtime-link=shared \
|
||||||
link=shared,static \
|
link=shared,static \
|
||||||
toolset=gcc \
|
toolset=gcc \
|
||||||
@ -183,7 +182,7 @@ EXPAT_LIBPATH=%{_libdir} \
|
|||||||
--execprefix=%{buildroot}%{_libexecdir} \
|
--execprefix=%{buildroot}%{_libexecdir} \
|
||||||
--includedir=%{buildroot}%{_includedir} \
|
--includedir=%{buildroot}%{_includedir} \
|
||||||
--layout=system -d2 \
|
--layout=system -d2 \
|
||||||
python=%{python310_version} \
|
python=%{python3_version} \
|
||||||
runtime-link=shared \
|
runtime-link=shared \
|
||||||
link=shared,static \
|
link=shared,static \
|
||||||
toolset=gcc \
|
toolset=gcc \
|
||||||
@ -195,7 +194,7 @@ EXPAT_LIBPATH=%{_libdir} \
|
|||||||
# https://github.com/boostorg/python/issues/203#issuecomment-391477685
|
# https://github.com/boostorg/python/issues/203#issuecomment-391477685
|
||||||
for _lib in python mpi_python numpy; do
|
for _lib in python mpi_python numpy; do
|
||||||
ln -srL %{buildroot}%{_libdir}/libboost_${_lib}{27,}.so
|
ln -srL %{buildroot}%{_libdir}/libboost_${_lib}{27,}.so
|
||||||
ln -srL %{buildroot}%{_libdir}/libboost_${_lib}3{10,}.so
|
ln -srL %{buildroot}%{_libdir}/libboost_${_lib}3{11,}.so
|
||||||
done
|
done
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
@ -226,19 +225,22 @@ done
|
|||||||
|
|
||||||
%files -n python-boost-py3
|
%files -n python-boost-py3
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
#%{_libdir}/boost-python3.7/mpi.so
|
%{_libdir}/boost-python3.11/mpi.so
|
||||||
%{_libdir}/libboost_python37.so.*
|
%{_libdir}/libboost_python311.so.*
|
||||||
#%{_libdir}/libboost_mpi_python37.so.*
|
%{_libdir}/libboost_mpi_python311.so.*
|
||||||
%{_libdir}/libboost_numpy37.so.*
|
%{_libdir}/libboost_numpy311.so.*
|
||||||
|
|
||||||
%files -n python-boost-py310
|
%files -n python-boost-py310
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_libdir}/boost-python3.10/mpi.so
|
#%{_libdir}/boost-python3.10/mpi.so
|
||||||
%{_libdir}/libboost_python310.so.*
|
%{_libdir}/libboost_python310.so.*
|
||||||
%{_libdir}/libboost_mpi_python310.so.*
|
#%{_libdir}/libboost_mpi_python310.so.*
|
||||||
%{_libdir}/libboost_numpy310.so.*
|
%{_libdir}/libboost_numpy310.so.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 13 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.83.0-2mamba
|
||||||
|
- rebuilt with python3 == 3.11
|
||||||
|
|
||||||
* Sat Aug 12 2023 Automatic Build System <autodist@mambasoft.it> 1.83.0-1mamba
|
* Sat Aug 12 2023 Automatic Build System <autodist@mambasoft.it> 1.83.0-1mamba
|
||||||
- automatic version update by autodist
|
- automatic version update by autodist
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user