|
@@ -7,7 +7,7 @@
|
|
Summary: OpenMP runtime for clang
|
|
Summary: OpenMP runtime for clang
|
|
Summary(ja): clang用OpenMPランタイム
|
|
Summary(ja): clang用OpenMPランタイム
|
|
Name: libomp
|
|
Name: libomp
|
|
-Version: 14.0.5
|
|
|
|
|
|
+Version: 15.0.0
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Group: system
|
|
Group: system
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -16,6 +16,7 @@ Distribution: Vine Linux
|
|
License: NCSA
|
|
License: NCSA
|
|
URL: https://llvm.org/
|
|
URL: https://llvm.org/
|
|
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/openmp-%{version}.src.tar.xz
|
|
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/openmp-%{version}.src.tar.xz
|
|
|
|
+Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/cmake-%{version}.src.tar.xz
|
|
|
|
|
|
# patches
|
|
# patches
|
|
Patch0: 0001-PATCH-openmp-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-.patch
|
|
Patch0: 0001-PATCH-openmp-CMake-Make-LIBOMP_HEADERS_INSTALL_PATH-.patch
|
|
@@ -26,6 +27,7 @@ BuildRequires: cmake
|
|
BuildRequires: ninja
|
|
BuildRequires: ninja
|
|
BuildRequires: libffi-devel >= 3.3
|
|
BuildRequires: libffi-devel >= 3.3
|
|
BuildRequires: elfutils-libelf-devel
|
|
BuildRequires: elfutils-libelf-devel
|
|
|
|
+BuildRequires: clang-tools-extra
|
|
# The AMDGCN device RTL requires clang and llvm-link to build
|
|
# The AMDGCN device RTL requires clang and llvm-link to build
|
|
BuildRequires: clang
|
|
BuildRequires: clang
|
|
BuildRequires: llvm
|
|
BuildRequires: llvm
|
|
@@ -51,7 +53,9 @@ The package contains the OpenMP header files.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
-%autosetup -p2 -n openmp-%{version}.src
|
|
|
|
|
|
+%autosetup -p2 -n openmp-%{version}.src -a 1
|
|
|
|
+
|
|
|
|
+mv -f cmake-%{version}.src/Modules/* cmake/
|
|
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
@@ -92,20 +96,40 @@ rm -f %{buildroot}%{_libdir}/libarcher_static.a
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
+%pre
|
|
|
|
+if [ -e %{_libdir}/libomptarget.so ]; then
|
|
|
|
+ rm -f %{_libdir}/libomptarget.so
|
|
|
|
+fi
|
|
|
|
+%ifnarch %{ix86} %{arm}
|
|
|
|
+for f in \
|
|
|
|
+ %{_libdir}/libomptarget.rtl.amdgpu.so \
|
|
|
|
+ %{_libdir}/libomptarget.rtl.cuda.so \
|
|
|
|
+ %{_libdir}/libomptarget.rtl.%{_arch}.so
|
|
|
|
+do
|
|
|
|
+ if [ -e $f ]; then
|
|
|
|
+ rm -f $f
|
|
|
|
+ fi
|
|
|
|
+done
|
|
|
|
+%endif
|
|
|
|
+
|
|
|
|
+
|
|
%files
|
|
%files
|
|
%license LICENSE.TXT
|
|
%license LICENSE.TXT
|
|
%{_libdir}/libarcher.so
|
|
%{_libdir}/libarcher.so
|
|
%{_libdir}/libomp.so
|
|
%{_libdir}/libomp.so
|
|
%{_libdir}/libompd.so
|
|
%{_libdir}/libompd.so
|
|
-%{_libdir}/libomptarget.so
|
|
|
|
|
|
+%{_libdir}/libomptarget.so*
|
|
%ifnarch %{ix86} %{arm}
|
|
%ifnarch %{ix86} %{arm}
|
|
-%{_libdir}/libomptarget-new-*.bc
|
|
|
|
-%{_libdir}/libomptarget.rtl.amdgpu.so
|
|
|
|
-%{_libdir}/libomptarget.rtl.cuda.so
|
|
|
|
-%{_libdir}/libomptarget.rtl.%{_arch}.so
|
|
|
|
|
|
+%{_libdir}/libomptarget-*.bc
|
|
|
|
+%{_libdir}/libomptarget.rtl.amdgpu.so*
|
|
|
|
+%{_libdir}/libomptarget.rtl.cuda.so*
|
|
|
|
+%{_libdir}/libomptarget.rtl.%{_arch}.so*
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
|
|
+%ifnarch %{ix86} %{arm}
|
|
|
|
+%{_libdir}/libomptarget.devicertl.a
|
|
|
|
+%endif
|
|
%{_libdir}/clang/%{version}/include/omp.h
|
|
%{_libdir}/clang/%{version}/include/omp.h
|
|
%{_libdir}/clang/%{version}/include/omp-tools.h
|
|
%{_libdir}/clang/%{version}/include/omp-tools.h
|
|
%{_libdir}/clang/%{version}/include/ompt.h
|
|
%{_libdir}/clang/%{version}/include/ompt.h
|
|
@@ -114,6 +138,9 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Sep 08 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 15.0.0-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Thu Jun 16 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 14.0.5-1
|
|
* Thu Jun 16 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 14.0.5-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- updated Patch0.
|
|
- updated Patch0.
|