packages: tbb/tbb-cxxflags.patch (NEW), tbb/tbb.spec (NEW) - new, based on ...

glen glen at pld-linux.org
Sun May 16 10:51:19 CEST 2010


Author: glen                         Date: Sun May 16 08:51:19 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, based on
  http://downloads.sourceforge.net/project/hphp/CentOS%205%2064bit/SRPM/tbb-2.2-1.20090809.src.rpm

---- Files affected:
packages/tbb:
   tbb-cxxflags.patch (NONE -> 1.1)  (NEW), tbb.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/tbb/tbb-cxxflags.patch
diff -u /dev/null packages/tbb/tbb-cxxflags.patch:1.1
--- /dev/null	Sun May 16 10:51:19 2010
+++ packages/tbb/tbb-cxxflags.patch	Sun May 16 10:51:14 2010
@@ -0,0 +1,15 @@
+--- tbb22_20090809oss_src/build/linux.gcc.inc	2007-09-28 22:13:21.000000000 +0200
++++ tbb22_20090809oss_src.pm/build/linux.gcc.inc	2007-12-19 16:56:13.000000000 +0100
+@@ -45,10 +45,10 @@ LIBS = -lpthread -lrt -ldl 
+ C_FLAGS = $(CPLUS_FLAGS)
+ 
+ ifeq ($(cfg), release)
+-        CPLUS_FLAGS = -DDO_ITT_NOTIFY -O2 -DUSE_PTHREAD
++        CPLUS_FLAGS = $(CXXFLAGS) -DDO_ITT_NOTIFY -O2 -DUSE_PTHREAD
+ endif
+ ifeq ($(cfg), debug)
+-        CPLUS_FLAGS = -DTBB_USE_DEBUG -DDO_ITT_NOTIFY -g -O0 -DUSE_PTHREAD
++        CPLUS_FLAGS = $(CXXFLAGS) -DTBB_USE_DEBUG -DDO_ITT_NOTIFY -g -O0 -DUSE_PTHREAD
+ endif
+ 
+ ASM=

================================================================
Index: packages/tbb/tbb.spec
diff -u /dev/null packages/tbb/tbb.spec:1.1
--- /dev/null	Sun May 16 10:51:19 2010
+++ packages/tbb/tbb.spec	Sun May 16 10:51:14 2010
@@ -0,0 +1,121 @@
+# $Revision$, $Date$
+%define		sourcebasename tbb%{major}%{minor}_%{releasedate}oss
+%define		major 	2
+%define		minor	2
+%define		releasedate 20090809
+%define		rel		1
+Summary:	The Threading Building Blocks library abstracts low-level threading details
+Name:		tbb
+Version:	%{major}.%{minor}
+Release:	0.%{releasedate}%{rel}
+License:	GPL v2 with exceptions
+Group:		Development/Tools
+URL:		http://www.threadingbuildingblocks.org/
+Source0:	http://threadingbuildingblocks.org/uploads/77/142/%{major}.%{minor}/%{sourcebasename}_src.tgz
+# Source0-md5:	c621053887c7ee86932da43e2deb3bff
+Source1:	http://www.threadingbuildingblocks.org/uploads/81/91/Latest%20Open%20Source%20Documentation/Design_Patterns.pdf
+# Source1-md5:	46062fef922d39abfd464bc06e02cdd8
+Source2:	http://www.threadingbuildingblocks.org/uploads/81/91/Latest%20Open%20Source%20Documentation/Getting_Started.pdf
+# Source2-md5:	b8f94104c47f9667e537b98bd940494a
+Source3:	http://www.threadingbuildingblocks.org/uploads/81/91/Latest%20Open%20Source%20Documentation/Reference.pdf
+# Source3-md5:	1481cbd378f4964691046d0ba570b374
+Source4:	http://www.threadingbuildingblocks.org/uploads/81/91/Latest%20Open%20Source%20Documentation/Tutorial.pdf
+# Source4-md5:	5bbdd1050c5dac5c1b782a6a98db0c46
+Patch1:		%{name}-cxxflags.patch
+BuildRequires:	libstdc++-devel
+BuildRequires:	net-tools
+# We need "arch" and "hostname" binaries:
+BuildRequires:	util-linux
+ExclusiveArch:	%{ix86} %{x8664} ia64
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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
+Requires:	%{name} = %{version}-%{release}
+
+%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
+
+cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
+
+%build
+%{__make} \
+	CXX="%{__cxx}" \
+	CXXFLAGS="%{rpmcxxflags}" \
+	tbb_build_prefix=obj
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
+
+cd build/obj_release
+for file in libtbb{,malloc}; do
+	install $file.so.2 $RPM_BUILD_ROOT%{_libdir}/$file.so.2.%{version}
+	ln -s $file.so.2.%{version} $RPM_BUILD_ROOT%{_libdir}/$file.so
+	ln -s $file.so.2.%{version} $RPM_BUILD_ROOT%{_libdir}/$file.so.2
+done
+cd -
+
+cd include
+find tbb -type f -name '*.h' -exec \
+	install -p -D -m 644 {} $RPM_BUILD_ROOT%{_includedir}/{} ';'
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc COPYING
+%doc doc/Release_Notes.txt
+%attr(755,root,root) %{_libdir}/libtbb.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libtbb.so.2
+%attr(755,root,root) %{_libdir}/libtbbmalloc.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libtbbmalloc.so.2
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/tbb
+%{_libdir}/libtbb.so
+%{_libdir}/libtbbmalloc.so
+
+%files doc
+%defattr(644,root,root,755)
+%doc *.pdf
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/05/16 08:51:14  glen
+- new, based on
+  http://downloads.sourceforge.net/project/hphp/CentOS%205%2064bit/SRPM/tbb-2.2-1.20090809.src.rpm
================================================================


More information about the pld-cvs-commit mailing list