diff --git a/.gitignore b/.gitignore index decab5b..0037c35 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -SOURCES/hans-gpg-key.asc -SOURCES/openmp-11.0.0.src.tar.xz +SOURCES/openmp-12.0.0.src.tar.xz +SOURCES/tstellar-gpg-key.asc diff --git a/.libomp.metadata b/.libomp.metadata index 118114c..fcd8a6b 100644 --- a/.libomp.metadata +++ b/.libomp.metadata @@ -1,2 +1,2 @@ -32fa4b0193960f05064f2ab31b5a89c7cf48a0b9 SOURCES/hans-gpg-key.asc -fb5502f1cd73bd5c5fdf2544b263fdb2a00791d9 SOURCES/openmp-11.0.0.src.tar.xz +9daf49f748f66ab570894a591d3bab7c8d43e548 SOURCES/openmp-12.0.0.src.tar.xz +b8d2648a01d36ed0186fd2c5af325fd28797f9a0 SOURCES/tstellar-gpg-key.asc diff --git a/SOURCES/0001-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-a-cache-varia.patch b/SOURCES/0001-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-a-cache-varia.patch deleted file mode 100644 index c26e4de..0000000 --- a/SOURCES/0001-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-a-cache-varia.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 156a23f5d91c35edd888091b3d6416b755fa134d Mon Sep 17 00:00:00 2001 -From: Tom Stellard -Date: Tue, 16 May 2017 11:52:19 -0400 -Subject: [PATCH] CMake: Make LIBOMP_HEADERS_INSTALL_PATH a cache variable when - bulding standalone - -This way it can be overriden on the command line. ---- - runtime/src/CMakeLists.txt | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/runtime/src/CMakeLists.txt b/runtime/src/CMakeLists.txt -index f9e63f4..2bf6796 100644 ---- a/runtime/src/CMakeLists.txt -+++ b/runtime/src/CMakeLists.txt -@@ -282,8 +282,8 @@ add_dependencies(libomp-micro-tests libomp-test-deps) - # Install rules - # We want to install libomp in DESTDIR/CMAKE_INSTALL_PREFIX/lib - # We want to install headers in DESTDIR/CMAKE_INSTALL_PREFIX/include --if(${OPENMP_STANDALONE_BUILD}) -- set(LIBOMP_HEADERS_INSTALL_PATH include) -+if(${OPENMP_STANDALONE_BUILD}) -+ set(LIBOMP_HEADERS_INSTALL_PATH include CACHE PATH "Install path for OpenMP headers") - else() - string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" CLANG_VERSION ${PACKAGE_VERSION}) - set(LIBOMP_HEADERS_INSTALL_PATH "${OPENMP_INSTALL_LIBDIR}/clang/${CLANG_VERSION}/include") --- -1.8.3.1 - diff --git a/SOURCES/0001-PATCH-openmp-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-.patch b/SOURCES/0001-PATCH-openmp-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-.patch new file mode 100644 index 0000000..eedd1ee --- /dev/null +++ b/SOURCES/0001-PATCH-openmp-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-.patch @@ -0,0 +1,27 @@ +From f2c9c1c9cda831a4305e2dc8899d630ed727353a Mon Sep 17 00:00:00 2001 +From: Tom Stellard +Date: Tue, 16 May 2017 11:52:19 -0400 +Subject: [PATCH] [PATCH][openmp] CMake: Make LIBOMP_HEADERS_INSTALL_PATH a + cache variable when bulding standalone + +This way it can be overriden on the command line. +--- + openmp/runtime/src/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt +index 822f9ca..583a3c3 100644 +--- a/openmp/runtime/src/CMakeLists.txt ++++ b/openmp/runtime/src/CMakeLists.txt +@@ -305,7 +305,7 @@ add_dependencies(libomp-micro-tests libomp-test-deps) + # We want to install libomp in DESTDIR/CMAKE_INSTALL_PREFIX/lib + # We want to install headers in DESTDIR/CMAKE_INSTALL_PREFIX/include + if(${OPENMP_STANDALONE_BUILD}) +- set(LIBOMP_HEADERS_INSTALL_PATH include) ++ set(LIBOMP_HEADERS_INSTALL_PATH include CACHE PATH "Install path for OpenMP headers") + else() + string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" CLANG_VERSION ${PACKAGE_VERSION}) + set(LIBOMP_HEADERS_INSTALL_PATH "${OPENMP_INSTALL_LIBDIR}/clang/${CLANG_VERSION}/include") +-- +1.8.3.1 + diff --git a/SOURCES/openmp-11.0.0.src.tar.xz.sig b/SOURCES/openmp-11.0.0.src.tar.xz.sig deleted file mode 100644 index fc851f4..0000000 Binary files a/SOURCES/openmp-11.0.0.src.tar.xz.sig and /dev/null differ diff --git a/SOURCES/openmp-12.0.0.src.tar.xz.sig b/SOURCES/openmp-12.0.0.src.tar.xz.sig new file mode 100644 index 0000000..019ca06 Binary files /dev/null and b/SOURCES/openmp-12.0.0.src.tar.xz.sig differ diff --git a/SPECS/libomp.spec b/SPECS/libomp.spec index 4995803..07af1ae 100644 --- a/SPECS/libomp.spec +++ b/SPECS/libomp.spec @@ -1,5 +1,4 @@ -#%%global rc_ver 6 -%global baserelease 1 +#%%global rc_ver 5 %global libomp_srcdir openmp-%{version}%{?rc_ver:rc%{rc_ver}}.src @@ -10,19 +9,19 @@ %endif Name: libomp -Version: 11.0.0 -Release: %{baserelease}%{?rc_ver:.rc%{rc_ver}}%{?dist} +Version: 12.0.0%{?rc_ver:~rc%{rc_ver}} +Release: 1%{?dist} Summary: OpenMP runtime for clang License: NCSA -URL: http://openmp.llvm.org +URL: http://openmp.llvm.org Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{libomp_srcdir}.tar.xz Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}%{?rc_ver:-rc%{rc_ver}}/%{libomp_srcdir}.tar.xz.sig -Source2: https://prereleases.llvm.org/%{version}/hans-gpg-key.asc +Source2: tstellar-gpg-key.asc Source3: run-lit-tests Source4: lit.fedora.cfg.py -Patch0: 0001-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-a-cache-varia.patch +Patch0: 0001-PATCH-openmp-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-.patch BuildRequires: gcc BuildRequires: gcc-c++ @@ -44,7 +43,7 @@ OpenMP runtime for clang. %package devel Summary: OpenMP header files -Requires: clang-devel%{?isa} = %{version} +Requires: clang-resource-filesystem%{?isa} = %{version} %description devel OpenMP header files. @@ -63,11 +62,14 @@ Requires: python3-lit OpenMP regression tests %prep -%autosetup -n %{libomp_srcdir} -p1 +%autosetup -n %{libomp_srcdir} -p2 %build -mkdir -p _build -cd _build +# LTO causes build failures in this package. Disable LTO for now +%define _lto_cflags %{nil} + +mkdir -p %{_vpath_builddir} +cd %{_vpath_builddir} %cmake .. -GNinja \ -DLIBOMP_INSTALL_ALIASES=OFF \ @@ -78,11 +80,12 @@ cd _build -DOPENMP_LIBDIR_SUFFIX= \ %endif -%ninja_build +%cmake_build %install -%ninja_install -C _build +cd %{_vpath_builddir} +%cmake_install # Test package setup %global libomp_srcdir %{_datadir}/libomp/src/ @@ -96,7 +99,7 @@ cp -R runtime/src %{buildroot}%{libomp_srcdir}/runtime # Generate lit config files. Strip off the last line that initiates the # test run, so we can customize the configuration. -head -n -1 _build/runtime/test/lit.site.cfg >> %{buildroot}%{lit_cfg} +head -n -1 runtime/test/lit.site.cfg >> %{buildroot}%{lit_cfg} # Install custom fedora config file cp %{SOURCE4} %{buildroot}%{lit_fedora_cfg} @@ -112,18 +115,15 @@ install -m 0755 %{SOURCE3} %{buildroot}%{_libexecdir}/tests/libomp rm -rf %{buildroot}%{_libdir}/libarcher_static.a %check -%ninja_build check-openmp -C _build +cd %{_vpath_builddir} +%cmake_build --target check-openmp %files %license LICENSE.txt %{_libdir}/libomp.so -%{_libdir}/libomptarget.so %ifnarch %{arm} %{_libdir}/libarcher.so %endif -%ifnarch %{arm} %{ix86} -%{_libdir}/libomptarget.rtl.%{libomp_arch}.so -%endif %files devel %{_libdir}/clang/%{version}/include/omp.h @@ -140,6 +140,9 @@ rm -rf %{buildroot}%{_libdir}/libarcher_static.a %{_libexecdir}/tests/libomp/ %changelog +* Thu May 6 2021 sguelton@redhat.com - 12.0.0-1 +- 12.0.0 release + * Thu Oct 29 2020 sguelton@redhat.com - 11.0.0-1 - 11.0.0 final release