2012-06-07 19:51:18 +00:00
|
|
|
%define releasedate 20120408
|
2011-10-19 15:48:45 +00:00
|
|
|
%define major 4
|
2011-07-26 14:41:37 +00:00
|
|
|
%define minor 0
|
2012-06-07 19:51:18 +00:00
|
|
|
%define update 4
|
2011-07-26 14:41:37 +00:00
|
|
|
%define dotver %{major}.%{minor}
|
2008-06-13 12:55:48 +00:00
|
|
|
%define sourcebasename tbb%{major}%{minor}_%{releasedate}oss
|
2012-06-07 19:51:18 +00:00
|
|
|
|
2008-06-13 12:55:48 +00:00
|
|
|
%define sourcefilename %{sourcebasename}_src.tgz
|
2008-02-13 18:01:54 +00:00
|
|
|
|
|
|
|
Summary: The Threading Building Blocks library abstracts low-level threading details
|
|
|
|
Name: tbb
|
2011-07-26 14:41:37 +00:00
|
|
|
Version: %{dotver}
|
2012-07-21 22:50:52 +00:00
|
|
|
Release: 5.%{releasedate}%{?dist}
|
2008-02-13 18:01:54 +00:00
|
|
|
License: GPLv2 with exceptions
|
|
|
|
Group: Development/Tools
|
|
|
|
URL: http://threadingbuildingblocks.org/
|
2012-06-07 19:51:18 +00:00
|
|
|
Source0: http://threadingbuildingblocks.org/uploads/77/185/4.0%%20update%%204/tbb40_20120408oss_src.tgz
|
2011-07-26 14:41:37 +00:00
|
|
|
|
|
|
|
# Upstream regularly replaces the "Latest" documentation with what's
|
|
|
|
# actually Latest at that point. These sources may no longer match
|
|
|
|
# what's uploaded anymore.
|
|
|
|
%define docurl http://threadingbuildingblocks.org/uploads/81/91/Latest%%20Open%%20Source%%20Documentation/
|
|
|
|
%define source_1 CHANGES.txt
|
|
|
|
%define source_2 Getting_Started.pdf
|
|
|
|
%define source_3 Reference.pdf
|
|
|
|
%define source_4 Tutorial.pdf
|
|
|
|
%define source_5 Design_Patterns.pdf
|
|
|
|
Source1: %{docurl}/%{source_1}
|
|
|
|
Source2: %{docurl}/%{source_2}
|
|
|
|
Source3: %{docurl}/%{source_3}
|
|
|
|
Source4: %{docurl}/%{source_4}
|
|
|
|
Source5: %{docurl}/%{source_5}
|
|
|
|
|
2012-06-07 19:51:18 +00:00
|
|
|
# These two are downstream sources.
|
|
|
|
Source6: tbb.pc
|
|
|
|
Source7: tbbmalloc.pc
|
|
|
|
Source8: tbbmalloc_proxy.pc
|
|
|
|
|
2011-07-26 14:41:37 +00:00
|
|
|
Patch1: tbb-3.0-cxxflags.patch
|
2011-10-19 15:48:45 +00:00
|
|
|
Patch2: tbb-4.0-mfence.patch
|
2008-02-13 18:01:54 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: libstdc++-devel
|
|
|
|
# We need "arch" and "hostname" binaries:
|
|
|
|
BuildRequires: util-linux net-tools
|
2012-04-05 13:30:21 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64 ia64 ppc ppc64
|
2008-02-13 18:01:54 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Threading Building Blocks (TBB) is a C++ runtime library that
|
|
|
|
abstracts the low-level threading details necessary for optimal
|
|
|
|
multi-core performance. It uses common C++ templates and coding style
|
|
|
|
to eliminate tedious threading implementation work.
|
|
|
|
|
|
|
|
TBB requires fewer lines of code to achieve parallelism than other
|
|
|
|
threading models. The applications you write are portable across
|
|
|
|
platforms. Since the library is also inherently scalable, no code
|
|
|
|
maintenance is required as more processor cores become available.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: The Threading Building Blocks C++ headers and shared development libraries
|
|
|
|
Group: Development/Libraries
|
2011-07-26 14:41:37 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2008-02-13 18:01:54 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Header files and shared object symlinks for the Threading Building
|
|
|
|
Blocks (TBB) C++ libraries.
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: The Threading Building Blocks documentation
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
PDF documentation for the user of the Threading Building Block (TBB)
|
|
|
|
C++ library.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{sourcebasename}
|
|
|
|
%patch1 -p1
|
2010-06-10 16:03:20 +00:00
|
|
|
%patch2 -p1
|
2008-02-13 18:01:54 +00:00
|
|
|
|
|
|
|
%build
|
2008-06-13 12:55:48 +00:00
|
|
|
make %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS" tbb_build_prefix=obj
|
2012-06-07 19:51:18 +00:00
|
|
|
for file in %{SOURCE6} %{SOURCE7} %{SOURCE8}; do
|
|
|
|
sed 's/_FEDORA_VERSION/%{major}.%{minor}.%{update}/' ${file} \
|
|
|
|
> $(basename ${file})
|
|
|
|
done
|
2011-07-26 14:41:37 +00:00
|
|
|
cp -p "%{SOURCE1}" "%{SOURCE2}" "%{SOURCE3}" "%{SOURCE4}" "%{SOURCE5}" .
|
2008-02-13 18:01:54 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2008-06-13 12:55:48 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_includedir}
|
2008-02-13 18:01:54 +00:00
|
|
|
|
2008-06-13 12:55:48 +00:00
|
|
|
pushd build/obj_release
|
2012-06-07 19:51:18 +00:00
|
|
|
for file in libtbb{,malloc{,_proxy}}; do
|
2008-06-13 12:55:48 +00:00
|
|
|
install -p -D -m 755 ${file}.so.2 $RPM_BUILD_ROOT/%{_libdir}
|
|
|
|
ln -s $file.so.2 $RPM_BUILD_ROOT/%{_libdir}/$file.so
|
2008-02-13 18:01:54 +00:00
|
|
|
done
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd include
|
|
|
|
find tbb -type f -name \*.h -exec \
|
|
|
|
install -p -D -m 644 {} $RPM_BUILD_ROOT/%{_includedir}/{} \
|
|
|
|
\;
|
|
|
|
popd
|
|
|
|
|
2012-06-07 19:51:18 +00:00
|
|
|
for file in %{SOURCE6} %{SOURCE7} %{SOURCE8}; do
|
|
|
|
install -p -D -m 644 $(basename ${file}) \
|
|
|
|
$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/$(basename ${file})
|
|
|
|
done
|
|
|
|
|
2008-02-13 18:01:54 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2011-07-26 14:41:37 +00:00
|
|
|
%doc COPYING doc/Release_Notes.txt
|
2008-02-13 18:01:54 +00:00
|
|
|
%{_libdir}/*.so.2
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2011-07-26 14:41:37 +00:00
|
|
|
%doc %{source_1}
|
2008-02-13 18:01:54 +00:00
|
|
|
%{_includedir}/tbb
|
|
|
|
%{_libdir}/*.so
|
2012-06-07 19:51:18 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2008-02-13 18:01:54 +00:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
2009-11-03 15:37:55 +00:00
|
|
|
%doc %{source_2}
|
|
|
|
%doc %{source_3}
|
|
|
|
%doc %{source_4}
|
2011-07-26 14:41:37 +00:00
|
|
|
%doc %{source_5}
|
2008-02-13 18:01:54 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-07-21 22:50:52 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-5.20120408
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-06-07 19:51:18 +00:00
|
|
|
* Thu Jun 7 2012 Petr Machata <pmachata@redhat.com> - 4.0-4.20120408
|
|
|
|
- Rebase to 4.0 update 4
|
|
|
|
- Refresh Getting_Started.pdf, Reference.pdf, Tutorial.pdf
|
|
|
|
- Provide pkg-config files
|
|
|
|
- Resolves: #825402
|
|
|
|
|
2012-04-05 13:30:21 +00:00
|
|
|
* Thu Apr 05 2012 Karsten Hopp <karsten@redhat.com> 4.0-3.20110809
|
|
|
|
- tbb builds now on PPC(64)
|
|
|
|
|
2012-01-14 06:22:02 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-2.20110809
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-19 15:48:45 +00:00
|
|
|
* Tue Oct 18 2011 Petr Machata <pmachata@redhat.com> - 4.0-1.20110809
|
|
|
|
- Rebase to 4.0
|
|
|
|
- Port the mfence patch
|
|
|
|
- Refresh the documentation bundle
|
|
|
|
|
2011-07-26 14:41:37 +00:00
|
|
|
* Tue Jul 26 2011 Petr Machata <pmachata@redhat.com> - 3.0-1.20110419
|
|
|
|
- Rebase to 3.0-r6
|
|
|
|
- Port both patches
|
|
|
|
- Package Design_Patterns.pdf
|
|
|
|
- Thanks to Richard Shaw for initial rebase patch
|
|
|
|
- Resolves: #723043
|
|
|
|
|
2011-02-09 18:09:02 +00:00
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-3.20090809
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-06-10 16:03:20 +00:00
|
|
|
* Thu Jun 10 2010 Petr Machata <pmachata@redhat.com> - 2.2-2.20090809
|
|
|
|
- Replace mfence instruction with xchg to make it run on ia32-class
|
|
|
|
machines without SSE2.
|
|
|
|
- Resolves: #600654
|
|
|
|
|
2009-11-03 15:37:55 +00:00
|
|
|
* Tue Nov 3 2009 Petr Machata <pmachata@redhat.com> - 2.2-1.20090809
|
|
|
|
- New upstream 2.2
|
|
|
|
- Resolves: #521571
|
|
|
|
|
2009-07-27 05:33:26 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-3.20080605
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-25 18:35:42 +00:00
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2.20080605
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-06-13 12:55:48 +00:00
|
|
|
* Fri Jun 13 2008 Petr Machata <pmachata@redhat.com> - 2.1-1.20080605
|
|
|
|
- New upstream 2.1
|
|
|
|
- Drop soname patch, parallel make patch, and GCC 4.3 patch
|
|
|
|
|
2008-02-13 18:01:54 +00:00
|
|
|
* Wed Feb 13 2008 Petr Machata <pmachata@redhat.com> - 2.0-4.20070927
|
|
|
|
- Review fixes
|
|
|
|
- Use updated URL
|
|
|
|
- More timestamp preservation
|
|
|
|
- Initial import into Fedora CVS
|
|
|
|
|
|
|
|
* Mon Feb 11 2008 Petr Machata <pmachata@redhat.com> - 2.0-3.20070927
|
|
|
|
- Review fixes
|
|
|
|
- Preserve timestamp of installed files
|
|
|
|
- Fix soname not to contain "debug"
|
|
|
|
|
|
|
|
* Tue Feb 5 2008 Petr Machata <pmachata@redhat.com> - 2.0-2.20070927
|
|
|
|
- Review fixes
|
|
|
|
- GCC 4.3 patchset
|
|
|
|
- Add BR util-linux net-tools
|
|
|
|
- Add full URL to Source0
|
|
|
|
- Build in debug mode to work around problems with GCC 4.3
|
|
|
|
|
|
|
|
* Mon Dec 17 2007 Petr Machata <pmachata@redhat.com> - 2.0-1.20070927
|
|
|
|
- Initial package.
|
|
|
|
- Using SONAME patch from Debian.
|