2024-05-22 13:27:46 +00:00
|
|
|
%bcond_with snapshot_build
|
|
|
|
|
|
|
|
%if %{with snapshot_build}
|
|
|
|
# Unlock LLVM Snapshot LUA functions
|
|
|
|
%{llvm_sb}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%global maj_ver 17
|
2023-11-15 04:28:56 +00:00
|
|
|
%global libomp_version %{maj_ver}.0.6
|
|
|
|
#global rc_ver 4
|
2022-05-10 07:05:25 +00:00
|
|
|
%global libomp_srcdir openmp-%{libomp_version}%{?rc_ver:rc%{rc_ver}}.src
|
2024-05-22 13:27:46 +00:00
|
|
|
%global so_suffix %{maj_ver}
|
|
|
|
|
|
|
|
%if %{with snapshot_build}
|
|
|
|
%undefine rc_ver
|
|
|
|
%global maj_ver %{llvm_snapshot_version_major}
|
|
|
|
%global libomp_version %{llvm_snapshot_version}
|
|
|
|
%global so_suffix %{maj_ver}%{llvm_snapshot_version_suffix}
|
|
|
|
%endif
|
2019-11-05 19:39:46 +00:00
|
|
|
|
2024-05-22 13:27:46 +00:00
|
|
|
# Opt out of https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer
|
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2158587
|
|
|
|
%undefine _include_frame_pointers
|
2019-11-05 19:39:46 +00:00
|
|
|
|
2019-05-07 06:00:53 +00:00
|
|
|
%ifarch ppc64le
|
|
|
|
%global libomp_arch ppc64
|
|
|
|
%else
|
|
|
|
%global libomp_arch %{_arch}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: libomp
|
2022-05-10 07:05:25 +00:00
|
|
|
Version: %{libomp_version}%{?rc_ver:~rc%{rc_ver}}
|
2024-05-22 13:27:46 +00:00
|
|
|
Release: 1%{?dist}
|
2019-05-07 06:00:53 +00:00
|
|
|
Summary: OpenMP runtime for clang
|
|
|
|
|
|
|
|
License: NCSA
|
2021-11-09 09:59:09 +00:00
|
|
|
URL: http://openmp.llvm.org
|
2024-05-22 13:27:46 +00:00
|
|
|
%if %{with snapshot_build}
|
|
|
|
Source0: %{llvm_snapshot_source_prefix}openmp-%{llvm_snapshot_yyyymmdd}.src.tar.xz
|
|
|
|
%{llvm_snapshot_extra_source_tags}
|
|
|
|
%else
|
2022-05-10 07:05:25 +00:00
|
|
|
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp_version}%{?rc_ver:-rc%{rc_ver}}/%{libomp_srcdir}.tar.xz
|
|
|
|
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{libomp_version}%{?rc_ver:-rc%{rc_ver}}/%{libomp_srcdir}.tar.xz.sig
|
2023-05-16 06:07:25 +00:00
|
|
|
Source2: release-keys.asc
|
2024-05-22 13:27:46 +00:00
|
|
|
%endif
|
2019-05-07 06:00:53 +00:00
|
|
|
|
2024-05-22 13:27:46 +00:00
|
|
|
BuildRequires: clang >= %{maj_ver}
|
2023-05-16 06:07:25 +00:00
|
|
|
# For clang-offload-packager
|
|
|
|
BuildRequires: clang-tools-extra
|
2019-05-07 06:00:53 +00:00
|
|
|
BuildRequires: cmake
|
2021-05-18 06:42:25 +00:00
|
|
|
BuildRequires: ninja-build
|
2019-05-07 06:00:53 +00:00
|
|
|
BuildRequires: elfutils-libelf-devel
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-Data-Dumper
|
|
|
|
BuildRequires: perl-Encode
|
|
|
|
BuildRequires: libffi-devel
|
2022-11-08 06:32:08 +00:00
|
|
|
# RHEL specific: libomp requires libterminfo
|
2022-05-10 07:05:25 +00:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
|
2022-11-08 06:32:08 +00:00
|
|
|
# For gpg source verification
|
|
|
|
BuildRequires: gnupg2
|
|
|
|
|
2022-05-10 07:05:25 +00:00
|
|
|
# libomptarget needs the llvm cmake files
|
|
|
|
BuildRequires: llvm-devel
|
2024-05-22 13:27:46 +00:00
|
|
|
BuildRequires: llvm-cmake-utils
|
2019-05-07 06:00:53 +00:00
|
|
|
|
|
|
|
Requires: elfutils-libelf%{?isa}
|
|
|
|
|
2024-05-22 13:27:46 +00:00
|
|
|
Obsoletes: libomp-test < 17.0.3
|
|
|
|
|
2019-05-07 06:00:53 +00:00
|
|
|
# libomp does not support s390x.
|
|
|
|
ExcludeArch: s390x
|
|
|
|
|
|
|
|
%description
|
|
|
|
OpenMP runtime for clang.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: OpenMP header files
|
2023-11-15 04:28:56 +00:00
|
|
|
Requires: %{name}%{?isa} = %{version}-%{release}
|
2021-11-09 09:59:09 +00:00
|
|
|
Requires: clang-resource-filesystem%{?isa} = %{version}
|
2019-05-07 06:00:53 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
OpenMP header files.
|
|
|
|
|
|
|
|
%prep
|
2024-05-22 13:27:46 +00:00
|
|
|
%if %{without snapshot_build}
|
2022-11-08 06:32:08 +00:00
|
|
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
2024-05-22 13:27:46 +00:00
|
|
|
%endif
|
2021-11-09 09:59:09 +00:00
|
|
|
%autosetup -n %{libomp_srcdir} -p2
|
2019-05-07 06:00:53 +00:00
|
|
|
|
|
|
|
%build
|
2024-05-22 13:27:46 +00:00
|
|
|
%undefine __cmake_in_source_build
|
|
|
|
|
2021-11-09 09:59:09 +00:00
|
|
|
# LTO causes build failures in this package. Disable LTO for now
|
2022-05-10 07:05:25 +00:00
|
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1988155
|
2021-11-09 09:59:09 +00:00
|
|
|
%define _lto_cflags %{nil}
|
|
|
|
|
2024-05-22 13:27:46 +00:00
|
|
|
%cmake -GNinja \
|
2019-05-07 06:00:53 +00:00
|
|
|
-DLIBOMP_INSTALL_ALIASES=OFF \
|
2024-05-22 13:27:46 +00:00
|
|
|
-DCMAKE_MODULE_PATH=%{_datadir}/llvm/cmake/Modules \
|
2022-05-10 07:05:25 +00:00
|
|
|
-DLLVM_DIR=%{_libdir}/cmake/llvm \
|
2024-05-22 13:27:46 +00:00
|
|
|
-DCMAKE_INSTALL_INCLUDEDIR=%{_prefix}/lib/clang/%{maj_ver}/include \
|
2019-05-07 06:00:53 +00:00
|
|
|
%if 0%{?__isa_bits} == 64
|
|
|
|
-DOPENMP_LIBDIR_SUFFIX=64 \
|
|
|
|
%else
|
|
|
|
-DOPENMP_LIBDIR_SUFFIX= \
|
2024-05-22 13:27:46 +00:00
|
|
|
%endif
|
|
|
|
%if %{with snapshot_build}
|
|
|
|
-DLLVM_VERSION_SUFFIX="%{llvm_snapshot_version_suffix}" \
|
2019-05-07 06:00:53 +00:00
|
|
|
%endif
|
2022-11-08 06:32:08 +00:00
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=ON
|
2019-05-07 06:00:53 +00:00
|
|
|
|
2021-11-09 09:59:09 +00:00
|
|
|
%cmake_build
|
2019-05-07 06:00:53 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2021-11-09 09:59:09 +00:00
|
|
|
%cmake_install
|
2019-05-07 06:00:53 +00:00
|
|
|
|
2020-11-03 12:08:48 +00:00
|
|
|
# Remove static libraries with equivalent shared libraries
|
|
|
|
rm -rf %{buildroot}%{_libdir}/libarcher_static.a
|
|
|
|
|
2021-05-18 06:42:25 +00:00
|
|
|
%check
|
2023-05-16 06:07:25 +00:00
|
|
|
%cmake_build --target check-openmp || true
|
2020-04-28 08:54:34 +00:00
|
|
|
|
2019-05-07 06:00:53 +00:00
|
|
|
%files
|
2022-05-10 07:05:25 +00:00
|
|
|
%license LICENSE.TXT
|
2019-05-07 06:00:53 +00:00
|
|
|
%{_libdir}/libomp.so
|
2022-11-08 06:32:08 +00:00
|
|
|
%{_libdir}/libompd.so
|
2020-11-03 12:08:48 +00:00
|
|
|
%ifnarch %{arm}
|
|
|
|
%{_libdir}/libarcher.so
|
|
|
|
%endif
|
2022-05-10 07:05:25 +00:00
|
|
|
%ifnarch %{ix86} %{arm}
|
2023-11-15 04:28:56 +00:00
|
|
|
# libomptarget is not supported on 32-bit systems.
|
2024-05-22 13:27:46 +00:00
|
|
|
%{_libdir}/libomptarget.rtl.amdgpu.so.%{so_suffix}
|
|
|
|
%{_libdir}/libomptarget.rtl.cuda.so.%{so_suffix}
|
|
|
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so.%{so_suffix}
|
|
|
|
%{_libdir}/libomptarget.so.%{so_suffix}
|
2023-11-15 04:28:56 +00:00
|
|
|
%endif
|
2019-05-07 06:00:53 +00:00
|
|
|
|
|
|
|
%files devel
|
2024-05-22 13:27:46 +00:00
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/omp.h
|
2019-05-07 06:00:53 +00:00
|
|
|
%ifnarch %{arm}
|
2024-05-22 13:27:46 +00:00
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/omp-tools.h
|
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/ompt.h
|
|
|
|
%{_prefix}/lib/clang/%{maj_ver}/include/ompt-multiplex.h
|
2019-05-07 06:00:53 +00:00
|
|
|
%endif
|
2024-05-22 13:27:46 +00:00
|
|
|
%{_libdir}/cmake/openmp/FindOpenMPTarget.cmake
|
2023-05-16 06:07:25 +00:00
|
|
|
%ifnarch %{ix86} %{arm}
|
2023-11-15 04:28:56 +00:00
|
|
|
# libomptarget is not supported on 32-bit systems.
|
2023-05-16 06:07:25 +00:00
|
|
|
%{_libdir}/libomptarget.rtl.amdgpu.so
|
|
|
|
%{_libdir}/libomptarget.rtl.cuda.so
|
|
|
|
%{_libdir}/libomptarget.rtl.%{libomp_arch}.so
|
|
|
|
%{_libdir}/libomptarget.devicertl.a
|
|
|
|
%{_libdir}/libomptarget-amdgpu-*.bc
|
|
|
|
%{_libdir}/libomptarget-nvptx-*.bc
|
|
|
|
%{_libdir}/libomptarget.so
|
2023-11-15 04:28:56 +00:00
|
|
|
%endif
|
2019-05-07 06:00:53 +00:00
|
|
|
|
|
|
|
%changelog
|
2024-05-22 13:27:46 +00:00
|
|
|
* Wed Nov 29 2023 Nikita Popov <npopov@redhat.com> - 17.0.6-1
|
|
|
|
- Update to LLVM 17.0.6
|
|
|
|
|
|
|
|
* Wed Oct 04 2023 Nikita Popov <npopov@redhat.com> - 17.0.2-1
|
|
|
|
- Update to LLVM 17.0.2
|
|
|
|
|
2023-11-15 04:28:56 +00:00
|
|
|
* Sat Jul 15 2023 Tom Stellard <tstellar@redhat.com> - 16.0.6-3
|
|
|
|
- Remove duplicated installed binaries
|
|
|
|
|
|
|
|
* Wed Jul 05 2023 Tom Stellard <tstellar@redhat.com> - 16.0.6-2
|
|
|
|
- Add explict libomp requres to libomp-devel
|
|
|
|
|
|
|
|
* Fri Jun 23 2023 Tom Stellard <tstellar@redhat.com> - 16.0.6-1
|
|
|
|
- 16.0.6 Release
|
|
|
|
|
|
|
|
* Fri Apr 28 2023 Tom Stellard <tstellar@redhat.com> - 16.0.0-1
|
|
|
|
- Release 16.0.0
|
|
|
|
|
2023-05-16 06:07:25 +00:00
|
|
|
* Thu Jan 19 2023 Tom Stellard <tstellar@redhat.com> - 15.0.7-1
|
|
|
|
- Update to LLVM 15.0.7
|
|
|
|
|
|
|
|
* Tue Sep 06 2022 Nikita Popov <npopov@redhat.com> - 15.0.0-1
|
|
|
|
- Update to LLVM 15.0.0
|
|
|
|
|
2022-11-08 06:32:08 +00:00
|
|
|
* Wed Aug 10 2022 Tom Stellard <tstellar@redhat.com> - 14.0.6-2
|
|
|
|
- Drop -test sub-package on i686
|
|
|
|
|
|
|
|
* Tue Jun 28 2022 Tom Stellard <tstellar@redhat.com> - 14.0.6-1
|
|
|
|
- 14.0.6 Release
|
|
|
|
|
|
|
|
* Wed May 18 2022 Timm Bäder <tbaeder@redhat.com> - 14.00-2
|
|
|
|
- Backport 40d3a0ba4d9e5452c0a68cfdaa8e88eb8ed5c63d to
|
|
|
|
fix a strict aliasing issue.
|
|
|
|
|
|
|
|
* Thu Apr 07 2022 Timm Bäder <tbaeder@redhat.com> - 14.0.0-1
|
|
|
|
- Update to 14.0.0
|
|
|
|
|
2022-05-10 07:05:25 +00:00
|
|
|
* Thu Feb 03 2022 Tom Stellard <tstellar@redhat.com> - 13.0.1-1
|
|
|
|
- 13.0.1 Release
|
|
|
|
|
|
|
|
* Fri Oct 15 2021 Tom Stellard <tstellar@redhat.com> - 13.0.0-1
|
|
|
|
- 13.0.0 Release
|
|
|
|
|
2021-11-09 09:59:09 +00:00
|
|
|
* Fri Jul 16 2021 sguelton@redhat.com - 12.0.1-1
|
|
|
|
- 12.0.1 release
|
|
|
|
|
|
|
|
* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1
|
|
|
|
- 12.0.0 release
|
2021-11-02 10:37:33 +00:00
|
|
|
|
2021-05-18 06:42:25 +00:00
|
|
|
* Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1
|
|
|
|
- 11.0.0 final release
|
|
|
|
|
|
|
|
* Mon Sep 21 2020 sguelton@redhat.com - 11.0.0-0.1.rc2
|
|
|
|
- 11.0.0-rc2 Release
|
|
|
|
|
2020-11-03 12:08:48 +00:00
|
|
|
* Fri Jul 24 2020 sguelton@redhat.com - 10.0.1-1
|
|
|
|
- 10.0.1 final
|
|
|
|
|
|
|
|
* Mon Jun 15 2020 sguelton@redhat.com - 10.0.0-2
|
|
|
|
- Better dependency specification, see rhbz#1841180
|
|
|
|
|
|
|
|
* Thu Apr 9 2020 sguelton@redhat.com - 10.0.0-1
|
|
|
|
- 10.0.0 final
|
|
|
|
|
2020-04-28 08:54:34 +00:00
|
|
|
* Thu Dec 19 2019 Tom Stellard <tstellar@redhat.com> - 9.0.1-1
|
|
|
|
- 9.0.1 Release
|
|
|
|
|
|
|
|
* Fri Sep 27 2019 Tom Stellard <tstellar@redhat.com> - 9.0.0-1
|
|
|
|
- 9.0.0 Release
|
|
|
|
|
2019-11-05 19:39:46 +00:00
|
|
|
* Thu Aug 1 2019 sguelton@redhat.com - 8.0.1-1
|
|
|
|
- 8.0.1 release
|
|
|
|
|
|
|
|
* Thu Jun 13 2019 sguelton@redhat.com - 8.0.1-0.1.rc2
|
|
|
|
- 8.0.1rc2 Release
|
|
|
|
|
|
|
|
* Mon Apr 29 2019 sguelton@redhat.com - 8.0.0-1
|
|
|
|
- 8.0.0 Release
|
|
|
|
|
2019-05-07 06:00:53 +00:00
|
|
|
* Fri Dec 14 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-1
|
|
|
|
- 7.0.1 Release
|
|
|
|
|
|
|
|
* Wed Dec 12 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.2.rc3
|
|
|
|
- Fix test failures on single-core systems
|
|
|
|
|
|
|
|
* Mon Dec 10 2018 Tom Stellard <tstellar@redhat.com> - 7.0.1-0.1.rc3
|
|
|
|
- 7.0.1-rc3 Release
|
|
|
|
|
|
|
|
* Tue Nov 27 2018 Tom Stellard <tstellar@redhat.com> - 7.0.0-1
|
|
|
|
- 7.0.0 Release
|
|
|
|
|
|
|
|
* Sat Nov 10 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-3
|
|
|
|
- Don't build libomp-test on i686
|
|
|
|
|
|
|
|
* Mon Oct 01 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-2
|
|
|
|
- Drop scl macros
|
|
|
|
|
|
|
|
* Wed Jul 11 2018 Tom Stellard <tstellar@redhat.com> - 6.0.1-1
|
|
|
|
- 6.0.1 Release
|
|
|
|
|
|
|
|
* Mon Jan 15 2018 Tom Stellard <tstellar@redhat.com> - 5.0.1-2
|
|
|
|
- Drop ExcludeArch: ppc64
|
|
|
|
|
|
|
|
* Thu Dec 21 2017 Tom Stellard <tstellar@redhat.com> - 5.0.1-1
|
|
|
|
- 5.0.1 Release.
|
|
|
|
|
|
|
|
* Wed Jun 21 2017 Tom Stellard <tstellar@redhat.com> - 4.0.1-1
|
|
|
|
- 4.0.1 Release.
|
|
|
|
|
|
|
|
* Wed Jun 07 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-3
|
|
|
|
- Rename libopenmp->libomp
|
|
|
|
|
|
|
|
* Fri May 26 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-2
|
|
|
|
- Disable build on s390x
|
|
|
|
|
|
|
|
* Mon May 15 2017 Tom Stellard <tstellar@redhat.com> - 4.0.0-1
|
|
|
|
- Initial version.
|