2009-09-16 13:20:34 +02:00
|
|
|
|
#
|
|
|
|
|
# spec file for package tbb (Version 21_20080825)
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2008 SUSE LINUX Products 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
Name: tbb
|
|
|
|
|
BuildRequires: gcc-c++
|
2011-08-15 01:37:08 +02:00
|
|
|
|
%define sourcedir tbb30_20110704oss
|
2009-09-16 13:20:34 +02:00
|
|
|
|
Url: http://threadingbuildingblocks.org/
|
|
|
|
|
License: GPL v2 only
|
|
|
|
|
Group: Development/Libraries/C and C++
|
2011-08-15 01:37:08 +02:00
|
|
|
|
Version: 30_20110704
|
2009-09-16 13:20:34 +02:00
|
|
|
|
Release: 1.45
|
|
|
|
|
Summary: Threading Building Blocks (TBB)
|
|
|
|
|
Source0: %{sourcedir}_src.tgz
|
|
|
|
|
Patch0: optflags.patch
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
PreReq: %install_info_prereq
|
|
|
|
|
ExclusiveArch: %ix86 ia64 x86_64
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Intel<EFBFBD> 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 libtbb2
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Summary: Threading Building Blocks (TBB)
|
2011-08-15 01:37:08 +02:00
|
|
|
|
Provides: %{name} = %{version}
|
2009-09-16 13:20:34 +02:00
|
|
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
|
|
|
|
|
|
%description -n libtbb2
|
|
|
|
|
Intel<EFBFBD> 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 libtbbmalloc2
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Summary: Threading Building Blocks (TBB)
|
2011-08-15 01:37:08 +02:00
|
|
|
|
Provides: %{name} = %{version}
|
2009-09-16 13:20:34 +02:00
|
|
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
|
|
|
|
|
|
%description -n libtbbmalloc2
|
|
|
|
|
Intel<EFBFBD> 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 devel
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Summary: Threading Building Blocks (TBB)
|
|
|
|
|
Requires: /bin/sh, /bin/csh
|
|
|
|
|
Requires: c++_compiler
|
2011-08-15 01:37:08 +02:00
|
|
|
|
Requires: libtbb2 = %{version} libtbbmalloc2 = %{version}
|
2009-09-16 13:20:34 +02:00
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
Intel<EFBFBD> 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 %{sourcedir}
|
|
|
|
|
%patch0
|
|
|
|
|
|
|
|
|
|
%build
|
2012-01-29 02:34:18 +01:00
|
|
|
|
gmake OPTFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}
|
2009-09-16 13:20:34 +02:00
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_includedir}/%{name}/machine
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/%{name}
|
|
|
|
|
# sic!
|
|
|
|
|
install $RPM_BUILD_DIR/%{sourcedir}/include/tbb/*.h $RPM_BUILD_ROOT/%{_includedir}/%{name}
|
|
|
|
|
install $RPM_BUILD_DIR/%{sourcedir}/include/tbb/machine/linux*.h $RPM_BUILD_ROOT/%{_includedir}/%{name}/machine
|
|
|
|
|
install $RPM_BUILD_DIR/%{sourcedir}/build/linux*release/*.so.2 $RPM_BUILD_ROOT/%{_libdir}
|
|
|
|
|
pushd $RPM_BUILD_ROOT/%{_libdir}
|
|
|
|
|
ln -s libtbb.so.2 libtbb.so
|
|
|
|
|
ln -s libtbbmalloc.so.2 libtbbmalloc.so
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
%post -n libtbb2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n libtbb2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%post -n libtbbmalloc2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -n libtbbmalloc2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc CHANGES COPYING index.html
|
|
|
|
|
|
|
|
|
|
%files -n libtbb2
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/libtbb.so.2
|
|
|
|
|
|
|
|
|
|
%files -n libtbbmalloc2
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_libdir}/libtbbmalloc.so.2
|
|
|
|
|
%{_libdir}/libtbbmalloc_proxy.so.2
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%dir %{_includedir}/tbb
|
|
|
|
|
%attr(755,root,root) %{_includedir}/tbb/machine
|
|
|
|
|
%attr(644,root,root) %{_includedir}/tbb/*.h
|
|
|
|
|
%attr(644,root,root) %{_includedir}/tbb/machine/*.h
|
|
|
|
|
%{_libdir}/libtbb.so
|
|
|
|
|
%{_libdir}/libtbbmalloc.so
|
|
|
|
|
|
|
|
|
|
%changelog
|