Name: openmp Version: 3.8.0 Release: 1%{?dist} Summary: Support for the OpenMP language in LLVM License: MIT or NCSA URL: http://openmp.llvm.org/ Source0: http://llvm.org/releases/%{version}/openmp-%{version}.src.tar.xz BuildRequires: llvm-devel, cmake BuildRequires: perl(Encode::Locale), perl(Data::Dumper), perl(Net::Domain) %description The OpenMP subproject of LLVM contains the components required to build an executable OpenMP program that are outside the compiler itself. %package devel Summary: Header files for OpenMP language in LLVM %description devel This package contains header files for OpenML language support in LLVM. %package doc Summary: Documentation for OpenMP language in LLVM BuildArch: noarch %description doc This package contains documentation for OpenML language support in LLVM. %prep %autosetup -n %{name}-%{version}.src %build mkdir -p _build cd _build %cmake .. \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ %if 0%{?__isa_bits} == 64 -DLIBOMP_LIBDIR_SUFFIX:STRING=64 %else -DLIBOMP_LIBDIR_SUFFIX:STRING= %endif make %{?_smp_mflags} %install cd _build %make_install mkdir -p %{buildroot}%{_pkgdocdir} install -m 0644 ../runtime/doc/Reference.pdf %{buildroot}%{_pkgdocdir} %files %license LICENSE.txt %{_libdir}/libgomp.so %{_libdir}/libiomp5.so %{_libdir}/libomp.so %files devel %{_includedir}/omp.h %files doc %{_pkgdocdir} %changelog * Sun Jun 05 2016 Jan Vcelak - 3.8.0-1 - initial package