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