diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-04-23 08:42:25 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-04-23 08:44:15 +0900 |
commit | 4e164fa35cacb425e77cb5989a76540949bf02e0 (patch) | |
tree | 552828f3e86aef170c57fc3ce3b1d1e35985b09c | |
parent | 0f4640a69f10b356ca5834201baca4932ad1f8b4 (diff) | |
download | boost-submit/tizen/20210523.235807.tar.gz boost-submit/tizen/20210523.235807.tar.bz2 boost-submit/tizen/20210523.235807.zip |
change support python versionHEADsubmit/tizen_base/20210527.070954submit/tizen/20210523.235807submit/tizen/20210520.002613submit/tizen/20210504.011235submit/tizen/20210423.000231accepted/tizen/unified/20210526.010216accepted/tizen/unified/20210526.010136accepted/tizen/base/20210527.075417tizenaccepted/tizen_unified
python2 -> python3
Change-Id: Ia3ce7fbddf0c2041840386706ac66df436c06fbe
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
-rw-r--r-- | packaging/boost.spec | 34 |
1 files changed, 23 insertions, 11 deletions
diff --git a/packaging/boost.spec b/packaging/boost.spec index 901f0d7e2f..4f8b6ded4e 100644 --- a/packaging/boost.spec +++ b/packaging/boost.spec @@ -16,7 +16,7 @@ %define boost_libs1 boost-date-time boost-filesystem boost-graph %define boost_libs2 boost-iostreams boost-math boost-test -%define boost_libs3 boost-program-options boost-python boost-serialization +%define boost_libs3 boost-program-options boost-python3 boost-serialization %define boost_libs4 boost-system boost-thread %define boost_libs5 boost-wave boost-regex boost-contract %define boost_libs6 boost-random boost-chrono boost-locale @@ -57,8 +57,7 @@ BuildRequires: bzip2-devel BuildRequires: zlib-devel BuildRequires: expat-devel BuildRequires: libicu-devel -BuildRequires: python -BuildRequires: python-devel +BuildRequires: pkgconfig(python3) BuildRequires: xz BuildRequires: fdupes Url: http://www.boost.org @@ -275,13 +274,13 @@ Provides: boost-program-options This package contains the Boost::ProgramOptions Runtime libraries. -%package -n boost-python +%package -n boost-python3 Summary: Boost::Python Runtime Libraries Group: System/Libraries Requires: boost-license -Provides: boost-python +Provides: boost-python3 -%description -n boost-python +%description -n boost-python3 This package contains the Boost::Python Runtime libraries. %package -n boost-serialization @@ -417,8 +416,8 @@ fi export LONG_DOUBLE_FLAGS="--disable-long-double" %endif BJAM_CONFIG="-d2 -j$JOBS -sICU_PATH=%{_prefix}" -PYTHON_VERSION=$(python -c 'import sys; print sys.version[:3]') -PYTHON_FLAGS="--with-python-root=/usr --with-python-version=$PYTHON_VERSION" +PYTHON_VERSION=$(python3 -c 'import sys; print (sys.version[:3])') +PYTHON_FLAGS=" --with-python-root=/usr/lib/python${PYTHON_VERSION} --with-python-version=${PYTHON_VERSION}" export REGEX_FLAGS="--with-icu" export EXPAT_INCLUDE=/usr/include EXPAT_LIBPATH=%{_libdir} export PYTHON_FLAGS @@ -471,6 +470,19 @@ using mpi ; EOF %endif + +cat << EOF >>user-config.jam + +using python + : ${PYTHON_VERSION} + : /usr/bin/python3 + : %{_includedir}/python${PYTHON_VERSION}m + : + : + ; + +EOF + # perform the compilation ./b2 %{?_smp_mflags} --prefix=%{_prefix} --libdir=%{_libdir} \ --user-config=./user-config.jam ${CFLAGS:+cflags="$CFLAGS"} \ @@ -567,7 +579,7 @@ rm -rf %{buildroot}%{_libdir}/cmake %post -n boost-log -p /sbin/ldconfig %post -n boost-test -p /sbin/ldconfig %post -n boost-program-options -p /sbin/ldconfig -%post -n boost-python -p /sbin/ldconfig +%post -n boost-python3 -p /sbin/ldconfig %post -n boost-regex -p /sbin/ldconfig %post -n boost-serialization -p /sbin/ldconfig %post -n boost-thread -p /sbin/ldconfig @@ -607,7 +619,7 @@ rm -rf %{buildroot}%{_libdir}/cmake %postun -n boost-log -p /sbin/ldconfig %postun -n boost-test -p /sbin/ldconfig %postun -n boost-program-options -p /sbin/ldconfig -%postun -n boost-python -p /sbin/ldconfig +%postun -n boost-python3 -p /sbin/ldconfig %postun -n boost-regex -p /sbin/ldconfig %postun -n boost-serialization -p /sbin/ldconfig %postun -n boost-thread -p /sbin/ldconfig @@ -747,7 +759,7 @@ rm -rf %{buildroot}%{_libdir}/cmake %license LICENSE_1_0.txt %{_libdir}/libboost_program_options*.so.* -%files -n boost-python +%files -n boost-python3 %manifest %{name}.manifest %defattr(-, root, root, -) %license LICENSE_1_0.txt |