Name: libomp Version: 5.0.2 Release: 1%{?dist} Summary: OpenMP runtime for clang License: NCSA URL: http://openmp.llvm.org Source0: http://llvm.org/releases/%{version}/openmp-%{version}.src.tar.xz Patch0: 0001-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-a-cache-varia.patch BuildRequires: cmake BuildRequires: elfutils-libelf-devel BuildRequires: perl BuildRequires: perl-Data-Dumper BuildRequires: perl-Encode Requires: elfutils-libelf%{?isa} # libomp does not support s390x. ExcludeArch: s390x %description OpenMP runtime for clang. %package devel Summary: OpenMP header files Requires: clang-devel%{?isa} = %{version} %description devel OpenMP header files. %prep %autosetup -n openmp-%{version}.src -p1 %build mkdir -p _build cd _build %cmake .. \ -DLIBOMP_INSTALL_ALIASES=OFF \ -DLIBOMP_HEADERS_INSTALL_PATH:PATH=%{_libdir}/clang/%{version}/include \ %if 0%{?__isa_bits} == 64 -DLIBOMP_LIBDIR_SUFFIX=64 \ %else -DLIBOMP_LIBDIR_SUFFIX= \ %endif %make_build %install %make_install -C _build %files %{_libdir}/libomp.so %files devel %{_libdir}/clang/%{version}/include/omp.h %changelog * Mon May 07 2018 Tom Stellard - 5.0.2-1 - 5.0.2 Release * Thu Dec 21 2017 Tom Stellard - 5.0.1-1 - 5.0.1 Release. * Mon May 15 2017 Tom Stellard - 5.0.0-1 - Initial version.