2017-11-20 18:07:34 +00:00
|
|
|
Name: libomp
|
2017-12-21 15:46:12 +00:00
|
|
|
Version: 5.0.1
|
2017-11-20 18:07:34 +00:00
|
|
|
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
|
2017-12-21 15:46:12 +00:00
|
|
|
* Thu Dec 21 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
|
|
|
|
- 5.0.1 Release.
|
|
|
|
|
2017-11-20 18:07:34 +00:00
|
|
|
* Mon May 15 2017 Tom Stellard <tstellar@redhat.com> - 5.0.0-1
|
|
|
|
- Initial version.
|