forked from pool/boost
Accepting request 258282 from home:mhamann:branches:devel:libraries:c_c++
Added the boost_python3 library (the existing boost_python library only supports Python 2). This fixes https://bugzilla.novell.com/show_bug.cgi?id=838970. The name of the new package (libboost_python3-%{lib_appendix}) does not completely follow the naming scheme of the other boost libraries as the "3" at the end collides with the appendix. OBS-URL: https://build.opensuse.org/request/show/258282 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=137
This commit is contained in:
parent
cfab8e8d45
commit
f558ae0164
@ -14,6 +14,7 @@ libboost_mpi1_56_0
|
|||||||
libboost_test1_56_0
|
libboost_test1_56_0
|
||||||
libboost_program_options1_56_0
|
libboost_program_options1_56_0
|
||||||
libboost_python1_56_0
|
libboost_python1_56_0
|
||||||
|
libboost_python3-1_56_0
|
||||||
libboost_random1_56_0
|
libboost_random1_56_0
|
||||||
libboost_serialization1_56_0
|
libboost_serialization1_56_0
|
||||||
libboost_signals1_56_0
|
libboost_signals1_56_0
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 2 12:17:18 UTC 2014 - michael.hamann@kit.edu
|
||||||
|
|
||||||
|
- Added boost_python3 for boost 1.56.0, config based on
|
||||||
|
https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/boost
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Sep 27 12:45:11 UTC 2014 - dmitry_r@opensuse.org
|
Sat Sep 27 12:45:11 UTC 2014 - dmitry_r@opensuse.org
|
||||||
|
|
||||||
|
24
boost.spec
24
boost.spec
@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
%define boost_libs1 libboost_date_time%{lib_appendix} libboost_filesystem%{lib_appendix} libboost_graph%{lib_appendix}
|
%define boost_libs1 libboost_date_time%{lib_appendix} libboost_filesystem%{lib_appendix} libboost_graph%{lib_appendix}
|
||||||
%define boost_libs2 libboost_iostreams%{lib_appendix} libboost_math%{lib_appendix} libboost_test%{lib_appendix}
|
%define boost_libs2 libboost_iostreams%{lib_appendix} libboost_math%{lib_appendix} libboost_test%{lib_appendix}
|
||||||
%define boost_libs3 libboost_program_options%{lib_appendix} libboost_python%{lib_appendix} libboost_serialization%{lib_appendix}
|
%define boost_libs3 libboost_program_options%{lib_appendix} libboost_python%{lib_appendix} libboost_python3-%{lib_appendix} libboost_serialization%{lib_appendix}
|
||||||
%define boost_libs4 libboost_signals%{lib_appendix} libboost_system%{lib_appendix} libboost_thread%{lib_appendix}
|
%define boost_libs4 libboost_signals%{lib_appendix} libboost_system%{lib_appendix} libboost_thread%{lib_appendix}
|
||||||
%define boost_libs5 libboost_wave%{lib_appendix} libboost_regex%{lib_appendix} libboost_regex%{lib_appendix}
|
%define boost_libs5 libboost_wave%{lib_appendix} libboost_regex%{lib_appendix} libboost_regex%{lib_appendix}
|
||||||
%define boost_libs6 libboost_random%{lib_appendix} libboost_chrono%{lib_appendix} libboost_locale%{lib_appendix}
|
%define boost_libs6 libboost_random%{lib_appendix} libboost_chrono%{lib_appendix} libboost_locale%{lib_appendix}
|
||||||
@ -96,8 +96,10 @@ BuildRequires: libbz2-devel
|
|||||||
BuildRequires: libexpat-devel
|
BuildRequires: libexpat-devel
|
||||||
BuildRequires: libicu-devel >= 4.4
|
BuildRequires: libicu-devel >= 4.4
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python3-devel
|
||||||
BuildRequires: xorg-x11-devel
|
BuildRequires: xorg-x11-devel
|
||||||
#!BuildIgnore: python
|
#!BuildIgnore: python
|
||||||
|
#!BuildIgnore: python3
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
%if %build_mpi
|
%if %build_mpi
|
||||||
BuildRequires: openmpi-devel
|
BuildRequires: openmpi-devel
|
||||||
@ -317,6 +319,15 @@ Requires: boost-license%{lib_appendix}
|
|||||||
%description -n libboost_python%{lib_appendix}
|
%description -n libboost_python%{lib_appendix}
|
||||||
This package contains the Boost::Python Runtime libraries.
|
This package contains the Boost::Python Runtime libraries.
|
||||||
|
|
||||||
|
%package -n libboost_python3-%{lib_appendix}
|
||||||
|
Summary: Boost::Python3 Runtime Libraries
|
||||||
|
Group: System/Libraries
|
||||||
|
Requires: boost-license%{lib_appendix}
|
||||||
|
|
||||||
|
%description -n libboost_python3-%{lib_appendix}
|
||||||
|
This package contains the Boost::Python3 Runtime libraries
|
||||||
|
|
||||||
|
|
||||||
%package -n libboost_serialization%{lib_appendix}
|
%package -n libboost_serialization%{lib_appendix}
|
||||||
Summary: Boost::Serialization Runtime Libraries
|
Summary: Boost::Serialization Runtime Libraries
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
@ -448,7 +459,9 @@ export LONG_DOUBLE_FLAGS="--disable-long-double"
|
|||||||
%endif
|
%endif
|
||||||
BJAM_CONFIG="-d2 -j$JOBS -sICU_PATH=%{_prefix}"
|
BJAM_CONFIG="-d2 -j$JOBS -sICU_PATH=%{_prefix}"
|
||||||
PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]')
|
PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]')
|
||||||
|
PYTHON3_VERSION=$(python3 -c 'import sys; print(sys.version[:3])')
|
||||||
PYTHON_FLAGS="--with-python-root=/usr --with-python-version=$PYTHON_VERSION"
|
PYTHON_FLAGS="--with-python-root=/usr --with-python-version=$PYTHON_VERSION"
|
||||||
|
PYTHON3_INCLUDE=$(python3 -c "import sysconfig; print(sysconfig.get_path('include'))")
|
||||||
export REGEX_FLAGS="--with-icu"
|
export REGEX_FLAGS="--with-icu"
|
||||||
export EXPAT_INCLUDE=/usr/include EXPAT_LIBPATH=%{_libdir}
|
export EXPAT_INCLUDE=/usr/include EXPAT_LIBPATH=%{_libdir}
|
||||||
export PYTHON_FLAGS
|
export PYTHON_FLAGS
|
||||||
@ -491,6 +504,8 @@ using mpi ;
|
|||||||
EOF
|
EOF
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
echo "using python : $PYTHON3_VERSION : /usr/bin/python3 : $PYTHON3_INCLUDE : %{_libdir} ;" >>user-config.jam
|
||||||
|
|
||||||
# perform the compilation
|
# perform the compilation
|
||||||
./b2 --prefix=%{_prefix} --libdir=%{_libdir} --user-config=./user-config.jam
|
./b2 --prefix=%{_prefix} --libdir=%{_libdir} --user-config=./user-config.jam
|
||||||
|
|
||||||
@ -575,6 +590,7 @@ rm -f %{buildroot}%{_libdir}/*.a
|
|||||||
%post -n libboost_test%{lib_appendix} -p /sbin/ldconfig
|
%post -n libboost_test%{lib_appendix} -p /sbin/ldconfig
|
||||||
%post -n libboost_program_options%{lib_appendix} -p /sbin/ldconfig
|
%post -n libboost_program_options%{lib_appendix} -p /sbin/ldconfig
|
||||||
%post -n libboost_python%{lib_appendix} -p /sbin/ldconfig
|
%post -n libboost_python%{lib_appendix} -p /sbin/ldconfig
|
||||||
|
%post -n libboost_python3-%{lib_appendix} -p /sbin/ldconfig
|
||||||
%post -n libboost_regex%{lib_appendix} -p /sbin/ldconfig
|
%post -n libboost_regex%{lib_appendix} -p /sbin/ldconfig
|
||||||
%post -n libboost_serialization%{lib_appendix} -p /sbin/ldconfig
|
%post -n libboost_serialization%{lib_appendix} -p /sbin/ldconfig
|
||||||
%post -n libboost_signals%{lib_appendix} -p /sbin/ldconfig
|
%post -n libboost_signals%{lib_appendix} -p /sbin/ldconfig
|
||||||
@ -603,6 +619,7 @@ rm -f %{buildroot}%{_libdir}/*.a
|
|||||||
%postun -n libboost_test%{lib_appendix} -p /sbin/ldconfig
|
%postun -n libboost_test%{lib_appendix} -p /sbin/ldconfig
|
||||||
%postun -n libboost_program_options%{lib_appendix} -p /sbin/ldconfig
|
%postun -n libboost_program_options%{lib_appendix} -p /sbin/ldconfig
|
||||||
%postun -n libboost_python%{lib_appendix} -p /sbin/ldconfig
|
%postun -n libboost_python%{lib_appendix} -p /sbin/ldconfig
|
||||||
|
%postun -n libboost_python3-%{lib_appendix} -p /sbin/ldconfig
|
||||||
%postun -n libboost_regex%{lib_appendix} -p /sbin/ldconfig
|
%postun -n libboost_regex%{lib_appendix} -p /sbin/ldconfig
|
||||||
%postun -n libboost_serialization%{lib_appendix} -p /sbin/ldconfig
|
%postun -n libboost_serialization%{lib_appendix} -p /sbin/ldconfig
|
||||||
%postun -n libboost_signals%{lib_appendix} -p /sbin/ldconfig
|
%postun -n libboost_signals%{lib_appendix} -p /sbin/ldconfig
|
||||||
@ -687,9 +704,14 @@ rm -f %{buildroot}%{_libdir}/*.a
|
|||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%{_libdir}/libboost_program_options*.so.*
|
%{_libdir}/libboost_program_options*.so.*
|
||||||
|
|
||||||
|
%files -n libboost_python3-%{lib_appendix}
|
||||||
|
%defattr(-, root, root, -)
|
||||||
|
%{_libdir}/libboost_python3*.so.*
|
||||||
|
|
||||||
%files -n libboost_python%{lib_appendix}
|
%files -n libboost_python%{lib_appendix}
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
%{_libdir}/libboost_python*.so.*
|
%{_libdir}/libboost_python*.so.*
|
||||||
|
%exclude %{_libdir}/libboost_python3*.so.*
|
||||||
|
|
||||||
%files -n libboost_serialization%{lib_appendix}
|
%files -n libboost_serialization%{lib_appendix}
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user