Marcus Meissner
c7be8d3d1e
Copy from home:msmeissn:branches:devel:libraries:c_c++/tbb via accept of submit request 20510 revision 4. Request was accepted with message: added OBS-URL: https://build.opensuse.org/request/show/20510 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tbb?expand=0&rev=1
175 lines
5.7 KiB
RPMSpec
175 lines
5.7 KiB
RPMSpec
#
|
|
# 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: tbb
|
|
BuildRequires: gcc-c++
|
|
%define sourcedir tbb22_20090809oss
|
|
Url: http://threadingbuildingblocks.org/
|
|
License: GPL v2 only
|
|
Group: Development/Libraries/C and C++
|
|
AutoReqProv: on
|
|
Version: 22_20090809
|
|
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® 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
|
|
License: GPL v2 only
|
|
Group: Development/Libraries/C and C++
|
|
Summary: Threading Building Blocks (TBB)
|
|
Provides: %{name} < %{version}
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
%description -n libtbb2
|
|
Intel® 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
|
|
License: GPL v2 only
|
|
Group: Development/Libraries/C and C++
|
|
Summary: Threading Building Blocks (TBB)
|
|
Provides: %{name} < %{version}
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
%description -n libtbbmalloc2
|
|
Intel® 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
|
|
License: GPL v2 only
|
|
Group: Development/Libraries/C and C++
|
|
Summary: Threading Building Blocks (TBB)
|
|
Requires: /bin/sh, /bin/csh
|
|
Requires: c++_compiler
|
|
Requires: libtbb2, libtbbmalloc2
|
|
|
|
%description devel
|
|
Intel® 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
|
|
gmake OPTFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
%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
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%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
|
|
* Sat Sep 5 2009 andi@firstfloor.org
|
|
- update to 22_20090809oss, install machine/* includes
|
|
* Thu Sep 11 2008 skh@suse.de
|
|
- update to snapshot 21_20080825 (for details see CHANGES file in
|
|
package)
|
|
- remove obsolete patch tbb-build.patch
|
|
- split off libtbb2 and libtbbmalloc2 subpackages
|
|
* Wed Aug 13 2008 ro@suse.de
|
|
- add ExclusiveArch
|
|
* Mon Apr 28 2008 skh@suse.de
|
|
- update to source version tbb20_20080408oss_src
|
|
* Wed Feb 13 2008 dmueller@suse.de
|
|
- fix buildrequires
|
|
* Fri Feb 8 2008 skh@suse.de
|
|
- initial package from version 2.0, source version
|
|
tbb20_20080122oss_src
|