automatic version update by autodist [release 1.69.0-1mamba;Tue Jan 22 2019]

This commit is contained in:
Automatic Build System 2024-01-06 03:52:22 +01:00
parent 57ed1ccd60
commit 7a8ab606bb

View File

@ -1,8 +1,8 @@
%define pckver %(echo %version | tr . _)
%define pckmajver %(echo %version | cut -d. -f1-2 | tr . _)
Name: libboost
Version: 1.66.0
Release: 2mamba
Version: 1.69.0
Release: 1mamba
Summary: Free peer-reviewed portable C++ source libraries
Group: System/Libraries
Vendor: openmamba
@ -40,8 +40,8 @@ Ten Boost libraries will be included in the C++ Standards Committee's upcoming C
Group: Development/Libraries
Summary: Devel package for libboost
Requires: %{name} = %{version}-%{release}
Requires: python-boost = %{version}-%{release}
Requires: python3-boost = %{version}-%{release}
Requires: python27-boost = %{version}-%{release}
Requires: python36-boost = %{version}-%{release}
Provides: python-boost-devel
Obsoletes: python-boost-devel
@ -55,14 +55,14 @@ Ten Boost libraries will be included in the C++ Standards Committee's upcoming C
This is the devel package.
%package -n python-boost
%package -n python27-boost
Group: System/Libraries
Summary: Boost.Python library
Summary: Boost.Python library for Python 2.7
Provides: libboost-python
Obsoletes: libboost-python
Requires: %{name} = %{version}-%{release}
%description -n python-boost
%description -n python27-boost
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.
@ -72,12 +72,12 @@ Ten Boost libraries will be included in the C++ Standards Committee's upcoming C
This package contains then Boost.python library
%package -n python3-boost
%package -n python36-boost
Group: System/Libraries
Summary: Boost.Python3 library
Summary: Boost.Python library for Python 3.6
Requires: %{name} = %{version}-%{release}
%description -n python-boost
%description -n python36-boost
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.
@ -85,21 +85,22 @@ 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.
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.python3 library
This package contains then Boost.python library for Python 3.6.
%prep
%setup -q -n boost_%{pckver}
%setup -q -n boost_%{pckver} -a0
mv boost_%{pckver} boost_python
#%patch0 -p1
#%patch1 -p1
%build
# Build boost with python3
# Build boost with python36
./bootstrap.sh \
--with-icu \
--with-python-root=%{_prefix} \
--with-python-version=%{python3_version}
--with-python-version=%{python36_version}
sed -i "s|using python.*|using python : %{python3_version} : %{_prefix} : %{python3_inc} ;|" project-config.jam
sed -i "s|using python.*|using python : %{python36_version} : %{_prefix} : %{python36_inc} ;|" project-config.jam
echo "using mpi ;" >> project-config.jam
EXPAT_INCLUDE=%{_includedir} \
@ -118,53 +119,7 @@ EXPAT_LIBPATH=%{_libdir} \
cflags="-fPIC"
%endif
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
EXPAT_INCLUDE=%{_includedir} \
EXPAT_LIBPATH=%{_libdir} \
./bjam \
--prefix=%{buildroot}%{_prefix} \
--libdir=%{buildroot}%{_libdir} \
--execprefix=%{buildroot}%{_libexecdir} \
--includedir=%{buildroot}%{_includedir} \
--layout=tagged -d2 \
runtime-link=shared \
link=shared,static \
toolset=gcc \
variant=release \
threading=single,multi \
debug-symbols=on \
install
# Rebuild boost with Python 3 (to be safe when rebuilding not from scratch)
./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
EXPAT_INCLUDE=%{_includedir} \
EXPAT_LIBPATH=%{_libdir} \
./bjam \
-a \
--prefix=%{_prefix} \
--layout=tagged -d2 \
runtime-link=shared \
link=shared,static \
toolset=gcc \
variant=release \
threading=single,multi \
debug-symbols=on \
stage \
%ifarch x86_64
cflags="-fPIC"
%endif
cp stage/lib/libboost_python3.* %{buildroot}%{_libdir}/
cp stage/lib/libboost_python3-mt.* %{buildroot}%{_libdir}/
cd boost_python
# Rebuild boost with Python 2
rm -f user-config.jam
@ -191,8 +146,44 @@ EXPAT_LIBPATH=%{_libdir} \
cflags="-fPIC"
%endif
cp stage/lib/libboost_python.* %{buildroot}%{_libdir}/
cp stage/lib/libboost_python-mt.* %{buildroot}%{_libdir}/
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
EXPAT_INCLUDE=%{_includedir} \
EXPAT_LIBPATH=%{_libdir} \
./bjam \
--prefix=%{buildroot}%{_prefix} \
--libdir=%{buildroot}%{_libdir} \
--execprefix=%{buildroot}%{_libexecdir} \
--includedir=%{buildroot}%{_includedir} \
--layout=tagged -d2 \
runtime-link=shared \
link=shared,static \
toolset=gcc \
variant=release \
threading=single,multi \
debug-symbols=on \
install
cd boost_python
EXPAT_INCLUDE=%{_includedir} \
EXPAT_LIBPATH=%{_libdir} \
./bjam \
--prefix=%{buildroot}%{_prefix} \
--libdir=%{buildroot}%{_libdir} \
--execprefix=%{buildroot}%{_libexecdir} \
--includedir=%{buildroot}%{_includedir} \
--layout=tagged -d2 \
runtime-link=shared \
link=shared,static \
toolset=gcc \
variant=release \
threading=single,multi \
debug-symbols=on \
install
#cp stage/lib/libboost_python.* %{buildroot}%{_libdir}/
#cp stage/lib/libboost_python-mt.* %{buildroot}%{_libdir}/
#for f in %{buildroot}%{_libdir}/libboost_*-mt.so; do
# mv $f ${f/-mt}.%{version}
@ -224,17 +215,21 @@ cp stage/lib/libboost_python-mt.* %{buildroot}%{_libdir}/
%{_libdir}/*.a
%exclude %{_libdir}/mpi.so
%files -n python-boost
%files -n python27-boost
%defattr(-,root,root)
%{_libdir}/libboost_python.so.*
%{_libdir}/libboost_python-mt.so.*
%{_libdir}/libboost_python27*.so.*
%files -n python3-boost
%files -n python36-boost
%defattr(-,root,root)
%{_libdir}/libboost_python3.so.*
%{_libdir}/libboost_python3-mt.so.*
%{_libdir}/libboost_python36*.so.*
%changelog
* Tue Jan 22 2019 Automatic Build System <autodist@mambasoft.it> 1.69.0-1mamba
- automatic version update by autodist
* Fri Oct 05 2018 Automatic Build System <autodist@mambasoft.it> 1.68.0-1mamba
- automatic version update by autodist
* Sat Sep 01 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.66.0-2mamba
- move mpi.so from devel to main package