2016-05-06 15:01:55 +00:00
|
|
|
%global releasedate 20160413
|
2016-02-20 18:44:58 +00:00
|
|
|
%global major 4
|
|
|
|
%global minor 4
|
2016-05-06 15:01:55 +00:00
|
|
|
%global update 4
|
2016-02-20 18:44:58 +00:00
|
|
|
%global dotver %{major}.%{minor}
|
|
|
|
%global sourcebasename tbb%{major}%{minor}_%{releasedate}oss
|
2012-06-07 19:51:18 +00:00
|
|
|
|
2016-02-20 18:44:58 +00:00
|
|
|
%global sourcefilename %{sourcebasename}_src.tgz
|
2008-02-13 18:01:54 +00:00
|
|
|
|
2014-01-12 14:30:52 +00:00
|
|
|
Name: tbb
|
2008-02-13 18:01:54 +00:00
|
|
|
Summary: The Threading Building Blocks library abstracts low-level threading details
|
2011-07-26 14:41:37 +00:00
|
|
|
Version: %{dotver}
|
2016-05-06 15:01:55 +00:00
|
|
|
Release: 6.%{releasedate}%{?dist}
|
2008-02-13 18:01:54 +00:00
|
|
|
License: GPLv2 with exceptions
|
2014-01-12 14:30:52 +00:00
|
|
|
Group: Development/Tools
|
|
|
|
URL: http://threadingbuildingblocks.org/
|
2011-07-26 14:41:37 +00:00
|
|
|
|
2015-01-19 19:28:45 +00:00
|
|
|
Source0: http://threadingbuildingblocks.org/sites/default/files/software_releases/source/%{sourcebasename}_src.tgz
|
2012-06-07 19:51:18 +00:00
|
|
|
# These two are downstream sources.
|
|
|
|
Source6: tbb.pc
|
|
|
|
Source7: tbbmalloc.pc
|
|
|
|
Source8: tbbmalloc_proxy.pc
|
|
|
|
|
2013-06-06 18:18:15 +00:00
|
|
|
# Propagate CXXFLAGS variable into flags used when compiling C++.
|
2016-01-15 22:15:44 +00:00
|
|
|
# This is so that RPM_OPT_FLAGS are respected.
|
|
|
|
Patch1: tbb-4.4-cxxflags.patch
|
2013-06-06 18:18:15 +00:00
|
|
|
|
2016-01-15 22:15:44 +00:00
|
|
|
# For 32-bit x86 only, don't assume that the mfence instruction is available.
|
|
|
|
# It was added with SSE2. This patch causes a lock xchg instruction to be
|
|
|
|
# emitted for non-SSE2 builds, and the mfence instruction to be emitted for
|
|
|
|
# SSE2-enabled builds.
|
2011-10-19 15:48:45 +00:00
|
|
|
Patch2: tbb-4.0-mfence.patch
|
2012-08-28 12:20:50 +00:00
|
|
|
|
2013-12-03 11:21:02 +00:00
|
|
|
# Don't snip -Wall from C++ flags. Add -fno-strict-aliasing, as that
|
|
|
|
# uncovers some static-aliasing warnings.
|
|
|
|
# Related: https://bugzilla.redhat.com/show_bug.cgi?id=1037347
|
2015-01-19 19:28:45 +00:00
|
|
|
Patch3: tbb-4.3-dont-snip-Wall.patch
|
2013-12-03 11:21:02 +00:00
|
|
|
|
2016-02-20 18:44:58 +00:00
|
|
|
BuildRequires: gcc-c++
|
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
|
2016-01-15 22:15:44 +00:00
|
|
|
Provides: bundled(jquery)
|
2008-02-13 18:01:54 +00:00
|
|
|
|
|
|
|
%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
|
2013-12-03 11:21:02 +00:00
|
|
|
%patch3 -p1
|
2008-02-13 18:01:54 +00:00
|
|
|
|
2016-02-20 18:44:58 +00:00
|
|
|
# For repeatable builds, don't query the hostname or architecture
|
|
|
|
sed -i 's/`hostname -s`" ("`uname -m`/fedorabuild" ("%{_arch}/' \
|
|
|
|
build/version_info_linux.sh
|
2016-01-15 22:15:44 +00:00
|
|
|
|
2008-02-13 18:01:54 +00:00
|
|
|
%build
|
2016-01-15 22:15:44 +00:00
|
|
|
%ifarch %{ix86}
|
|
|
|
# Build an SSE2-enabled version so the mfence instruction can be used
|
|
|
|
cp -a build build.orig
|
2016-04-05 04:33:30 +00:00
|
|
|
make %{?_smp_mflags} tbb_build_prefix=obj cpp0x=1 \
|
|
|
|
CXXFLAGS="$RPM_OPT_FLAGS -march=pentium4 -msse2 -fno-delete-null-pointer-checks" \
|
|
|
|
LDFLAGS="$RPM_LD_FLAGS"
|
2016-01-15 22:15:44 +00:00
|
|
|
mv build build.sse2
|
|
|
|
mv build.orig build
|
|
|
|
%endif
|
|
|
|
|
2016-04-05 04:33:30 +00:00
|
|
|
make %{?_smp_mflags} tbb_build_prefix=obj cpp0x=1 \
|
|
|
|
CXXFLAGS="$RPM_OPT_FLAGS -fno-delete-null-pointer-checks" \
|
|
|
|
LDFLAGS="$RPM_LD_FLAGS"
|
2012-06-07 19:51:18 +00:00
|
|
|
for file in %{SOURCE6} %{SOURCE7} %{SOURCE8}; do
|
2016-01-15 22:15:44 +00:00
|
|
|
base=$(basename ${file})
|
|
|
|
sed 's/_FEDORA_VERSION/%{major}.%{minor}.%{update}/' ${file} > ${base}
|
|
|
|
touch -r ${file} ${base}
|
2012-06-07 19:51:18 +00:00
|
|
|
done
|
2008-02-13 18:01:54 +00:00
|
|
|
|
2014-09-25 12:08:32 +00:00
|
|
|
%check
|
|
|
|
%ifarch ppc64le
|
2016-04-05 04:33:30 +00:00
|
|
|
make test tbb_build_prefix=obj cpp0x=1 \
|
|
|
|
CXXFLAGS="$RPM_OPT_FLAGS -fno-delete-null-pointer-checks"
|
2014-09-25 12:08:32 +00:00
|
|
|
%endif
|
|
|
|
|
2008-02-13 18:01:54 +00:00
|
|
|
%install
|
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
|
|
|
|
2016-01-15 22:15:44 +00:00
|
|
|
%ifarch %{ix86}
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/sse2
|
|
|
|
pushd build.sse2/obj_release
|
|
|
|
for file in libtbb{,malloc{,_proxy}}; do
|
|
|
|
install -p -D -m 755 ${file}.so.2 $RPM_BUILD_ROOT/%{_libdir}/sse2
|
|
|
|
done
|
|
|
|
popd
|
|
|
|
%endif
|
|
|
|
|
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
|
2013-10-03 11:12:03 +00:00
|
|
|
find tbb -type f ! -name \*.htm\* -exec \
|
2008-02-13 18:01:54 +00:00
|
|
|
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
|
|
|
|
|
|
|
|
%files
|
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
|
2016-01-15 22:15:44 +00:00
|
|
|
%ifarch %{ix86}
|
|
|
|
%{_libdir}/sse2/*.so.2
|
|
|
|
%endif
|
2008-02-13 18:01:54 +00:00
|
|
|
|
|
|
|
%files devel
|
2013-05-22 13:32:02 +00:00
|
|
|
%doc CHANGES
|
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
|
2013-05-22 13:32:02 +00:00
|
|
|
%doc doc/Release_Notes.txt
|
|
|
|
%doc doc/html
|
2008-02-13 18:01:54 +00:00
|
|
|
|
|
|
|
%changelog
|
2016-05-06 15:01:55 +00:00
|
|
|
* Fri May 6 2016 Jerry James <loganjerry@gmail.com> - 4.4-6.20160413
|
|
|
|
- Rebase to 4.4u4
|
|
|
|
|
2016-04-05 04:33:30 +00:00
|
|
|
* Mon Apr 4 2016 Jerry James <loganjerry@gmail.com> - 4.4-5.20160316
|
|
|
|
- Add -fno-delete-null-pointer-checks to fix optimized code
|
|
|
|
|
2016-03-18 19:08:06 +00:00
|
|
|
* Fri Mar 18 2016 Jerry James <loganjerry@gmail.com> - 4.4-4.20160316
|
|
|
|
- Updated upstream tarball
|
|
|
|
- Link with RPM_LD_FLAGS
|
|
|
|
|
2016-02-20 18:44:58 +00:00
|
|
|
* Sat Feb 20 2016 Jerry James <loganjerry@gmail.com> - 4.4-3.20160128
|
|
|
|
- Rebase to 4.4u3
|
|
|
|
|
2016-02-05 01:18:55 +00:00
|
|
|
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.4-2.20151115
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2016-01-15 22:15:44 +00:00
|
|
|
* Fri Jan 15 2016 Jerry James <loganjerry@gmail.com> - 4.4-1.20151115
|
|
|
|
- Rebase to 4.4u2
|
|
|
|
- Fix the mfence patch to actually emit a memory barrier (bz 1288314)
|
|
|
|
- Build an sse2 version for i386 for better performance on capable CPUs
|
|
|
|
- Enable use of C++0x features
|
|
|
|
- Drop out-of-date CHANGES.txt from git
|
|
|
|
|
2015-06-19 02:32:18 +00:00
|
|
|
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.3-3.20141204
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-05-02 16:07:39 +00:00
|
|
|
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 4.3-2.20141204
|
|
|
|
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
|
|
2015-01-19 19:28:45 +00:00
|
|
|
* Mon Jan 19 2015 Petr Machata <pmachata@redhat.com> - 4.3-1.20141204
|
|
|
|
- Rebase to 4.3u2
|
|
|
|
- Drop ExclusiveArch
|
|
|
|
|
2014-09-25 12:08:32 +00:00
|
|
|
* Thu Sep 25 2014 Karsten Hopp <karsten@redhat.com> 4.1-9.20130314
|
|
|
|
- enable ppc64le and run 'make test' on that new arch
|
|
|
|
|
2014-08-18 04:52:25 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-8.20130314
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-08 08:09:51 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-7.20130314
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-01-12 14:30:52 +00:00
|
|
|
* Sun Jan 12 2014 Peter Robinson <pbrobinson@fedoraproject.org> 4.1-6.20130314
|
|
|
|
- Build on aarch64, minor spec cleanups
|
|
|
|
|
2013-12-03 11:21:02 +00:00
|
|
|
* Tue Dec 3 2013 Petr Machata <pmachata@redhat.com> - 4.1-5.20130314
|
|
|
|
- Fix building with -Werror=format-security (tbb-4.1-dont-snip-Wall.patch)
|
|
|
|
|
2013-10-03 11:12:03 +00:00
|
|
|
* Thu Oct 3 2013 Petr Machata <pmachata@redhat.com> - 4.1-4.20130314
|
|
|
|
- Fix %%install to also install include files that are not named *.h
|
|
|
|
|
2013-08-04 03:22:27 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.1-3.20130314
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-05-28 15:11:11 +00:00
|
|
|
* Tue May 28 2013 Petr Machata <pmachata@redhat.com> - 4.1-3.20130314
|
|
|
|
- Enable ARM arches
|
|
|
|
|
2013-05-28 15:11:00 +00:00
|
|
|
* Wed May 22 2013 Petr Machata <pmachata@redhat.com> - 4.1-2.20130314
|
2013-05-22 15:01:44 +00:00
|
|
|
- Fix mfence patch. Since the __TBB_full_memory_fence macro was
|
|
|
|
function-call-like, it stole () intended for function invocation.
|
|
|
|
|
2013-05-22 13:32:02 +00:00
|
|
|
* Wed May 22 2013 Petr Machata <pmachata@redhat.com> - 4.1-1.20130314
|
|
|
|
- Rebase to 4.1 update 3
|
|
|
|
|
2013-02-15 01:19:29 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-7.20120408
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-08-28 12:20:50 +00:00
|
|
|
* Tue Aug 28 2012 Petr Machata <pmachata@redhat.com> - 4.0-6.20120408
|
|
|
|
- Fix build on PowerPC
|
|
|
|
|
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.
|