* static_partitioner class is now a fully supported feature. * async_node class is now a fully supported feature. * For 64-bit platforms, quadrupled the worst-case limit on the amount of memory the Intel TBB allocator can handle. * Added TBB_USE_GLIBCXX_VERSION macro to specify the version of GNU libstdc++ when it cannot be properly recognized, e.g. when used with Clang on Linux* OS. Inspired by a contribution from David A. * Added graph/stereo example to demostrate tbb::flow::async_msg. * Removed a few cases of excessive user data copying in the flow graph. * Reworked split_node to eliminate unnecessary overheads. * Added support for C++11 move semantics to the argument of tbb::parallel_do_feeder::add() method. * Added C++11 move constructor and assignment operator to tbb::combinable template class. * Added tbb::this_task_arena::max_concurrency() function and max_concurrency() method of class task_arena returning the maximal number of threads that can work inside an arena. * Deprecated tbb::task_arena::current_thread_index() static method; use tbb::this_task_arena::current_thread_index() function instead. - License changed to Apache-2.0 - Please see included CHANGES file for all changes. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tbb?expand=0&rev=19
151 lines
5.1 KiB
RPMSpec
151 lines
5.1 KiB
RPMSpec
#
|
|
# spec file for package tbb
|
|
#
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define so_ver 2
|
|
Name: tbb
|
|
Version: 2017_20160722
|
|
Release: 0
|
|
Summary: Threading Building Blocks (TBB)
|
|
License: Apache-2.0
|
|
Group: Development/Libraries/C and C++
|
|
Url: https://www.threadingbuildingblocks.org/
|
|
Source0: https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb%{version}oss_src.tgz
|
|
# PATCH-FIX-OPENSUSE optflags.patch -- Use rpm optflags
|
|
Patch1: optflags.patch
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: python-devel
|
|
BuildRequires: swig >= 3.0.6
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Threading Building Blocks (TBB) offers a rich and complete approach to
|
|
expressing parallelism in a C++ program. It is a library that helps you take
|
|
advantage of multi-core processor performance without having to be a threading
|
|
expert. Threading Building Blocks is not just a threads-replacement library. It
|
|
represents a higher-level, task-based parallelism that abstracts platform
|
|
details and threading mechanism for performance and scalability.
|
|
|
|
%package -n libtbb%{so_ver}
|
|
Summary: Threading Building Blocks (TBB)
|
|
Group: System/Libraries
|
|
Provides: %{name} = %{version}
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
%description -n libtbb%{so_ver}
|
|
Threading Building Blocks (TBB) offers a rich and complete approach to
|
|
expressing parallelism in a C++ program. It is a library that helps you take
|
|
advantage of multi-core processor performance without having to be a threading
|
|
expert. Threading Building Blocks is not just a threads-replacement library. It
|
|
represents a higher-level, task-based parallelism that abstracts platform
|
|
details and threading mechanism for performance and scalability.
|
|
|
|
%package -n libtbbmalloc%{so_ver}
|
|
Summary: Threading Building Blocks (TBB)
|
|
Group: System/Libraries
|
|
Provides: %{name} = %{version}
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
%description -n libtbbmalloc%{so_ver}
|
|
This subpackage contains the two TBB memory allocator templates that
|
|
are similar to the STL template class std::allocator. These two
|
|
templates, scalable_allocator<T> and cache_aligned_allocator<T>,
|
|
address critical issues in parallel programming: scalability and
|
|
false sharing.
|
|
|
|
%package devel
|
|
Summary: Development Files for Threading Building Blocks (TBB)
|
|
Group: Development/Libraries/C and C++
|
|
Requires: c++_compiler
|
|
Requires: libtbb%{so_ver} = %{version}
|
|
Requires: libtbbmalloc%{so_ver} = %{version}
|
|
|
|
%description devel
|
|
Threading Building Blocks (TBB) offers a rich and complete approach to
|
|
expressing parallelism in a C++ program. It is a library that helps you take
|
|
advantage of multi-core processor performance without having to be a threading
|
|
expert. Threading Building Blocks is not just a threads-replacement library. It
|
|
represents a higher-level, task-based parallelism that abstracts platform
|
|
details and threading mechanism for performance and scalability.
|
|
|
|
This package contains the header files needed for development with tbb.
|
|
|
|
%prep
|
|
%setup -q -n %{name}%{version}oss
|
|
%patch1 -p1
|
|
|
|
%build
|
|
make OPTFLAGS="%{optflags}" %{?_smp_mflags} tbb_build_prefix=obj
|
|
|
|
mkdir lib; pushd lib
|
|
ln -s ../build/obj_release/*.so* .
|
|
popd
|
|
|
|
export TBBROOT=$PWD
|
|
pushd python
|
|
make release
|
|
popd
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
pushd include
|
|
find tbb -type f -name \*.h -exec \
|
|
install -Dpm 644 {} %{buildroot}%{_includedir}/{} \
|
|
\;
|
|
popd
|
|
|
|
pushd build/obj_release
|
|
for file in libtbb{,malloc{,_proxy}}; do
|
|
install -Dpm 0755 ${file}.so.%{so_ver} %{buildroot}%{_libdir}
|
|
ln -s $file.so.%{so_ver} %{buildroot}%{_libdir}/$file.so
|
|
done
|
|
popd
|
|
|
|
pushd python
|
|
mkdir -p %{buildroot}%{python_sitelib}
|
|
install -m 0644 TBB.py %{buildroot}%{python_sitelib}
|
|
install -m 0755 _TBB.so %{buildroot}%{python_sitelib}
|
|
popd
|
|
|
|
%post -n libtbb%{so_ver} -p /sbin/ldconfig
|
|
%postun -n libtbb%{so_ver} -p /sbin/ldconfig
|
|
%post -n libtbbmalloc%{so_ver} -p /sbin/ldconfig
|
|
%postun -n libtbbmalloc%{so_ver} -p /sbin/ldconfig
|
|
|
|
%files -n libtbb%{so_ver}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libtbb.so.%{so_ver}*
|
|
%{python_sitelib}/*
|
|
|
|
%files -n libtbbmalloc%{so_ver}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libtbbmalloc.so.%{so_ver}*
|
|
%{_libdir}/libtbbmalloc_proxy.so.%{so_ver}*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc CHANGES LICENSE index.html
|
|
%doc doc/Release_Notes.txt doc/html/
|
|
%{_includedir}/tbb/
|
|
%{_libdir}/libtbb.so
|
|
%{_libdir}/libtbbmalloc.so
|
|
%{_libdir}/libtbbmalloc_proxy.so
|
|
|
|
%changelog
|