diff --git a/libboost.spec b/libboost.spec index 617b9b6..98eb2a9 100644 --- a/libboost.spec +++ b/libboost.spec @@ -2,7 +2,7 @@ %define pckmajver %(echo %version | cut -d. -f1-2 | tr . _) Name: libboost Version: 1.72.0 -Release: 1mamba +Release: 2mamba Summary: Free peer-reviewed portable C++ source libraries Group: System/Libraries Vendor: openmamba @@ -16,20 +16,26 @@ Patch1: libboost-1.58.0-python-3.3.patch License: Boost Software License ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel +BuildRequires: ldconfig BuildRequires: libbzip2-devel BuildRequires: libgcc BuildRequires: libicu-devel +BuildRequires: liblzma-devel BuildRequires: libmpi-devel BuildRequires: libstdc++6-devel BuildRequires: libz-devel +BuildRequires: libzstd-devel ## AUTOBUILDREQ-END -BuildRequires: libicu-devel >= 54 -BuildRequires: libpython27-devel +BuildRequires: libicu-devel >= 67.1 BuildRequires: libpython3-devel +BuildRequires: python-numpy-py3 +BuildRequires: openmpi-devel +%ifnarch aarch64 +BuildRequires: libpython27-devel BuildRequires: libpython36-devel BuildRequires: python-numpy -BuildRequires: python-numpy-py3 BuildRequires: python-numpy-py36 +%endif BuildRequires: boost-jam BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot @@ -47,9 +53,9 @@ Summary: Devel package for libboost Requires: %{name} = %{version}-%{release} Provides: python-boost-devel Obsoletes: python-boost-devel -Requires: python-boost-py27 = %{?epoch:%epoch:}%{version}-%{release} -Requires: python-boost-py3 = %{?epoch:%epoch:}%{version}-%{release} -Requires: python-boost-py36 = %{?epoch:%epoch:}%{version}-%{release} +#Requires: python-boost-py27 = %{?epoch:%epoch:}%{version}-%{release} +#Requires: python-boost-py3 = %{?epoch:%epoch:}%{version}-%{release} +#Requires: python-boost-py36 = %{?epoch:%epoch:}%{version}-%{release} %description devel The Boost libraries provide free peer-reviewed portable C++ source libraries. @@ -74,10 +80,8 @@ Requires: %{name} = %{version}-%{release} 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 libraries are intended to be widely useful, and are in regular use by thousands of programmers across a broad spectrum of applications. - 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. - This package contains then Boost.python library %package -n python-boost-py3 @@ -89,10 +93,8 @@ Requires: %{name} = %{version}-%{release} 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 libraries are intended to be widely useful, and are in regular use by thousands of programmers across a broad spectrum of applications. - 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. - This package contains then Boost.python library for Python 3. %package -n python-boost-py36 @@ -104,19 +106,16 @@ Requires: %{name} = %{version}-%{release} 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 libraries are intended to be widely useful, and are in regular use by thousands of programmers across a broad spectrum of applications. - 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. - This package contains then Boost.python library for Python 3.6. %debug_package %prep -%setup -q -n boost_%{pckver} -a0 -#-D -T -#:<< _EOF +%setup -q -n boost_%{pckver} -a0 -D -T +:<< _EOF mv boost_%{pckver} boost_python cp -a boost_python boost_python36 @@ -125,7 +124,7 @@ cp -a boost_python boost_python36 #%patch1 -p1 %build -#:<< _EOF +:<< _EOF # Build boost with python3 ./bootstrap.sh \ --with-icu \ @@ -152,6 +151,7 @@ EXPAT_LIBPATH=%{_libdir} \ cflags="-fPIC" %endif +%ifnarch aarch64 cd boost_python # Rebuild boost with Python 2 rm -f user-config.jam @@ -211,6 +211,8 @@ EXPAT_LIBPATH=%{_libdir} \ cflags="-fPIC" %endif +%endif + %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" EXPAT_INCLUDE=%{_includedir} \ @@ -230,6 +232,7 @@ EXPAT_LIBPATH=%{_libdir} \ debug-symbols=on \ install +%ifnarch aarch64 cd boost_python EXPAT_INCLUDE=%{_includedir} \ EXPAT_LIBPATH=%{_libdir} \ @@ -271,6 +274,7 @@ for _lib in python numpy; do ln -srL %{buildroot}%{_libdir}/libboost_${_lib}{27,}.so ln -srL %{buildroot}%{_libdir}/libboost_${_lib}3{7,}.so done +%endif %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -331,13 +335,6 @@ done %{_libdir}/cmake/Boost*.cmake %{_libdir}/cmake/boost_*/*.cmake -%files -n python-boost-py27 -%defattr(-,root,root) -%ifnarch arm -%{_libdir}/libboost_numpy27.so.* -%endif -%{_libdir}/libboost_python27*.so.* - %files -n python-boost-py3 %defattr(-,root,root) %{_libdir}/libboost_python37.so.* @@ -346,14 +343,26 @@ done %{_libdir}/libboost_numpy37.so.* %endif +%ifnarch aarch64 +%files -n python-boost-py27 +%defattr(-,root,root) +%ifnarch arm +%{_libdir}/libboost_numpy27.so.* +%endif +%{_libdir}/libboost_python27*.so.* + %files -n python-boost-py36 %defattr(-,root,root) %{_libdir}/libboost_python36.so.* %ifnarch arm %{_libdir}/libboost_numpy36.so.* %endif +%endif %changelog +* Sun Sep 06 2020 Silvan Calarco 1.72.0-2mamba +- rebuilt with libicu 67.1 + * Fri Jan 31 2020 Automatic Build System 1.72.0-1mamba - automatic version update by autodist