Ismail Dönmez 2016-05-04 11:17:07 +00:00 committed by Git OBS Bridge
parent 182291d39c
commit 3def0cc19b

View File

@ -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