packages: tbb/tbb.spec, tbb/tbb.pc.in (NEW) - updated to 3.0_127 - added .p...

qboosh qboosh at pld-linux.org
Sun Jan 23 20:19:03 CET 2011


Author: qboosh                       Date: Sun Jan 23 19:19:03 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated to 3.0_127
- added .pc file (based on Debian package)
- pl

---- Files affected:
packages/tbb:
   tbb.spec (1.1 -> 1.2) , tbb.pc.in (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/tbb/tbb.spec
diff -u packages/tbb/tbb.spec:1.1 packages/tbb/tbb.spec:1.2
--- packages/tbb/tbb.spec:1.1	Sun May 16 10:51:14 2010
+++ packages/tbb/tbb.spec	Sun Jan 23 20:18:57 2011
@@ -1,18 +1,17 @@
 # $Revision$, $Date$
-%define		sourcebasename tbb%{major}%{minor}_%{releasedate}oss
-%define		major 	2
-%define		minor	2
-%define		releasedate 20090809
-%define		rel		1
+%define		major 	3
+%define		minor	0
+%define		micro	127
+%define		sourcebasename tbb%{major}%{minor}_%{micro}oss
 Summary:	The Threading Building Blocks library abstracts low-level threading details
+Summary(pl.UTF-8):	Threading Building Blocks - biblioteka abstrahująca niskopoziomowe szczegóły obsługi wątków
 Name:		tbb
-Version:	%{major}.%{minor}
-Release:	0.%{releasedate}%{rel}
-License:	GPL v2 with exceptions
+Version:	%{major}.%{minor}.%{micro}
+Release:	1
+License:	GPL v2 with runtime exception
 Group:		Development/Tools
-URL:		http://www.threadingbuildingblocks.org/
-Source0:	http://threadingbuildingblocks.org/uploads/77/142/%{major}.%{minor}/%{sourcebasename}_src.tgz
-# Source0-md5:	c621053887c7ee86932da43e2deb3bff
+Source0:	http://www.threadingbuildingblocks.org/uploads/78/162/3.0%20update%204/%{sourcebasename}_src.tgz
+# Source0-md5:	c911f74f3d207358bb5554614b276c39
 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
@@ -21,9 +20,12 @@
 # Source3-md5:	1481cbd378f4964691046d0ba570b374
 Source4:	http://www.threadingbuildingblocks.org/uploads/81/91/Latest%20Open%20Source%20Documentation/Tutorial.pdf
 # Source4-md5:	5bbdd1050c5dac5c1b782a6a98db0c46
+Source5:	%{name}.pc.in
 Patch1:		%{name}-cxxflags.patch
+URL:		http://www.threadingbuildingblocks.org/
 BuildRequires:	libstdc++-devel
 BuildRequires:	net-tools
+BuildRequires:	sed >= 4.0
 # We need "arch" and "hostname" binaries:
 BuildRequires:	util-linux
 ExclusiveArch:	%{ix86} %{x8664} ia64
@@ -37,11 +39,24 @@
 
 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.
+supported platforms. Since the library is also inherently scalable, no
+code maintenance is required as more processor cores become available.
+
+%description -l pl.UTF-8
+Threading Building Blocks (TBB) to biblioteka uruchomieniowa C++
+abstrahująca niskopoziomowe szczegóły obsługi wątków potrzebne dla
+optymalnej wydajności na procesorach wielordzeniowych. Wykorzystuje
+szablony C++ w celu wyeliminowania nudnej pracy nad wielowątkowością.
+
+TBB wymaga mniej linii kodu do osiągnięcia równoległości niż inne
+modele wątkowania. Aplikacje są przenośne między obsługiwanymi
+platformami. Biblioteka jest skalowalna, więc nie jest wymagane
+modyfikowanie kodu wraz z dostępnością większej liczby rdzeni
+procesor.
 
 %package devel
-Summary:	The Threading Building Blocks C++ headers and shared development libraries
+Summary:	The Threading Building Blocks C++ headers
+Summary(pl.UTF-8):	Pliki nagłówkowe C++ bibliotek Threading Building Blocks
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 
@@ -49,23 +64,34 @@
 Header files and shared object symlinks for the Threading Building
 Blocks (TBB) C++ libraries.
 
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i dowiązania symboliczne dla bibliotek C++ Threading
+Building Blocks.
+
 %package doc
 Summary:	The Threading Building Blocks documentation
+Summary(pl.UTF-8):	Dokumentacja bibliotek Threading Building Blocks
 Group:		Documentation
 
 %description doc
 PDF documentation for the user of the Threading Building Block (TBB)
 C++ library.
 
+%description doc -l pl.UTF-8
+Dokumentacja w formacie PDF dla użytkowników biblioteki C++ Threading
+Building Blocks (TBB).
+
 %prep
 %setup -q -n %{sourcebasename}
 %patch1 -p1
 
 cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .
 
+sed -i -e 's/-march=pentium4//' build/linux.gcc.inc
+
 %build
 %{__make} \
-	CXX="%{__cxx}" \
+	CPLUS="%{__cxx}" \
 	CXXFLAGS="%{rpmcxxflags}" \
 	tbb_build_prefix=obj
 
@@ -74,10 +100,10 @@
 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
+for file in tbb tbbmalloc tbbmalloc_proxy ; do
+	install lib${file}.so.2 $RPM_BUILD_ROOT%{_libdir}/lib${file}.so.2.%{version}
+	ln -s lib${file}.so.2.%{version} $RPM_BUILD_ROOT%{_libdir}/lib${file}.so
+	ln -s lib${file}.so.2.%{version} $RPM_BUILD_ROOT%{_libdir}/lib${file}.so.2
 done
 cd -
 
@@ -85,26 +111,34 @@
 find tbb -type f -name '*.h' -exec \
 	install -p -D -m 644 {} $RPM_BUILD_ROOT%{_includedir}/{} ';'
 
-%post	-p /sbin/ldconfig
-%postun	-p /sbin/ldconfig
+# fail if obsolete
+[ ! -f $RPM_BUILD_ROOT%{_pkgconfigdir}/tbb.pc ] || exit 1
+install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
+sed -e 's, at prefix@,%{_prefix},;s, at libdir@,%{_libdir},;s, at includedir@,%{_includedir}/tbb,;s, at version@,%{version},' %{SOURCE5} >$RPM_BUILD_ROOT%{_pkgconfigdir}/tbb.pc
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc COPYING
-%doc doc/Release_Notes.txt
+%doc CHANGES COPYING 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
+%attr(755,root,root) %{_libdir}/libtbbmalloc_proxy.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libtbbmalloc_proxy.so.2
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libtbb.so
+%attr(755,root,root) %{_libdir}/libtbbmalloc.so
+%attr(755,root,root) %{_libdir}/libtbbmalloc_proxy.so
 %{_includedir}/tbb
-%{_libdir}/libtbb.so
-%{_libdir}/libtbbmalloc.so
+%{_pkgconfigdir}/tbb.pc
 
 %files doc
 %defattr(644,root,root,755)
@@ -116,6 +150,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2011/01/23 19:18:57  qboosh
+- updated to 3.0_127
+- added .pc file (based on Debian package)
+- pl
+
 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

================================================================
Index: packages/tbb/tbb.pc.in
diff -u /dev/null packages/tbb/tbb.pc.in:1.1
--- /dev/null	Sun Jan 23 20:19:03 2011
+++ packages/tbb/tbb.pc.in	Sun Jan 23 20:18:57 2011
@@ -0,0 +1,10 @@
+exec_prefix=@prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Threading Building Blocks
+Description: Intel's parallelism library for C++
+URL: http://www.threadingbuildingblocks.org/
+Version: @version@
+Libs: -L${libdir} -ltbb
+Cflags: -I${includedir}
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/tbb/tbb.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list