1 # TODO: offload library? (requires Intel COI Runtime + Intel MYO Runtime)
4 %bcond_without fortran # Fortran modules
6 Summary: Intel OpenMP runtime library implementation for use with Clang
7 Summary(pl.UTF-8): Implementacja biblioteki uruchomieniowej OpenMP firmy Intel dla kompilatora Clang
11 License: BSD-like or MIT
13 Source0: http://llvm.org/releases/%{version}/openmp-%{version}.src.tar.xz
14 # Source0-md5: 5390164f2374e1444e82393541ecf6c7
15 URL: http://openmp.llvm.org/
16 BuildRequires: cmake >= 2.8
17 %{?with_fortran:BuildRequires: gcc-fortran}
18 BuildRequires: rpmbuild(macros) >= 1.605
19 ExclusiveArch: %{ix86} %{x8664} arm aarch64 ppc64
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %ifarch arm aarch64 ppc64
29 %define iomp_arch %{_arch}
33 The OpenMP subproject of LLVM is intended to contain all of the
34 components required to build an executing OpenMP program that are
35 outside the compiler itself. Support for OpenMP 3.1 in Clang is in the
36 process of being promoted into the Clang mainline, and can be found at
37 OpenMP/Clang: <http://clang-omp.github.io/>.
39 %description -l pl.UTF-8
40 Podprojekt OpenMP projektu LLVM ma na celu skompletowanie wszystkich
41 komponentów wymaganych do zbudowania działającego programu OpenMP poza
42 samym kompilatorem. Obsługa OpenMP 3.1 w Clangu jest w trakcie
43 włączania do głównej linii kompilatora i można ją znaleźć w
44 repozytorium OpenMP/Clang: <http://clang-omp.github.io/>.
47 Summary: Header file for Intel OpenMP implementation
48 Summary(pl.UTF-8): Plik nagłówkowy implementacji OpenMP firmy Intel
49 Group: Development/Libraries
50 Requires: %{name} = %{version}-%{release}
53 Header file for Intel OpenMP implementation.
55 %description devel -l pl.UTF-8
56 Plik nagłówkowy implementacji OpenMP firmy Intel.
58 %package fortran-devel
59 Summary: Fortran modules for Intel OpenMP implementation
60 Summary(pl.UTF-8): Moduły Fortranu implementacji OpenMP firmy Intel
61 Group: Development/Libraries
62 Requires: %{name}-devel = %{version}-%{release}
64 %description fortran-devel
65 Fortran modules for Intel OpenMP implementation.
67 %description fortran-devel -l pl.UTF-8
68 Moduły Fortranu implementacji OpenMP firmy Intel.
71 %setup -q -n openmp-%{version}.src
80 -DLIBOMP_ARCH=%{iomp_arch} \
82 -DLIBOMP_LIBDIR_SUFFIX="${libsuffix#lib}" \
83 %{?with_fortran:-DLIBOMP_FORTRAN_MODULES=ON}
88 rm -rf $RPM_BUILD_ROOT
89 install -d $RPM_BUILD_ROOT{%{_includedir}/iomp,%{_libdir}}
91 cp -p runtime/exports/common/include/*.h $RPM_BUILD_ROOT%{_includedir}/iomp
93 cp -p runtime/exports/lin_%{iomp_arch}/include_compat/*.mod $RPM_BUILD_ROOT%{_includedir}/iomp
95 install runtime/exports/lin_%{iomp_arch}/lib/libomp.so $RPM_BUILD_ROOT%{_libdir}
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
105 %doc CREDITS.txt LICENSE.txt www/{README.txt,Reference.pdf,*.{html,css}}
106 %attr(755,root,root) %{_libdir}/libomp.so
109 %defattr(644,root,root,755)
110 %dir %{_includedir}/iomp
111 %{_includedir}/iomp/omp.h
115 %defattr(644,root,root,755)
116 %{_includedir}/iomp/omp_lib.h
117 %{_includedir}/iomp/omp_lib.mod
118 %{_includedir}/iomp/omp_lib_kinds.mod