From 3def0cc19bb9109f59bf07862938f30552af1594e225dd194f283db2e4eeb39b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 4 May 2016 11:17:07 +0000 Subject: [PATCH] - OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/tbb?expand=0&rev=9 --- tbb.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tbb.spec b/tbb.spec index 308d4ea..20fe724 100644 --- a/tbb.spec +++ b/tbb.spec @@ -26,10 +26,9 @@ Group: System/Libraries Url: https://www.threadingbuildingblocks.org/ Source0: https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb%{version}oss_src_0.tgz # PATCH-FIX-OPENSUSE optflags.patch -- Use rpm optflags -Patch0: optflags.patch +Patch1: optflags.patch BuildRequires: gcc-c++ BuildRoot: %{_tmppath}/%{name}-%{version}-build -#ExclusiveArch: %ix86 ia64 x86_64 ppc ppc64 %description Threading Building Blocks (TBB) offers a rich and complete approach to @@ -86,7 +85,7 @@ This package contains the header files needed for development with tbb. %prep %setup -q -n %{name}%{version}oss -%patch0 +%patch1 %build make OPTFLAGS="%{optflags}" %{?_smp_mflags} tbb_build_prefix=obj @@ -104,7 +103,10 @@ pushd build/obj_release install -Dpm 0755 ${file}.so.%{so_ver} %{buildroot}%{_libdir} ln -s $file.so.%{so_ver} %{buildroot}%{_libdir}/$file.so done + popd +%check +make test %post -n libtbb%{so_ver} -p /sbin/ldconfig %postun -n libtbb%{so_ver} -p /sbin/ldconfig