Add libomp compat package support

This is not part of current rawhide sources, but based on libomp17
instead.
This commit is contained in:
Nikita Popov 2024-07-31 12:51:01 +00:00
parent 12705645df
commit 4b52059c16
3 changed files with 11 additions and 19 deletions

View file

@ -96,8 +96,8 @@ popd
\ \
\ \
\ \
%if %{without compat_build}
-DLIBOMP_INSTALL_ALIASES=OFF \ -DLIBOMP_INSTALL_ALIASES=OFF \
%if %{without compat_build}
%if 0%{?__isa_bits} == 64 %if 0%{?__isa_bits} == 64
-DOPENMP_LIBDIR_SUFFIX=64 \ -DOPENMP_LIBDIR_SUFFIX=64 \
%else %else

View file

@ -552,17 +552,15 @@
#region OPENMP files #region OPENMP files
%if %{without compat_build}
%files -n %{pkg_name_libomp} %files -n %{pkg_name_libomp}
%license openmp/LICENSE.TXT %license openmp/LICENSE.TXT
%{_libdir}/libomp.so %{install_libdir}/libomp.so
%{_libdir}/libompd.so %{install_libdir}/libompd.so
%{_libdir}/libarcher.so %{install_libdir}/libarcher.so
%ifnarch %{ix86} %ifnarch %{ix86}
# libomptarget is not supported on 32-bit systems. # libomptarget is not supported on 32-bit systems.
# s390x does not support the offloading plugins. # s390x does not support the offloading plugins.
%{_libdir}/libomptarget.so.%{so_suffix} %{install_libdir}/libomptarget.so.%{so_suffix}
%endif %endif
%files -n %{pkg_name_libomp}-devel %files -n %{pkg_name_libomp}-devel
@ -572,16 +570,14 @@
%{_prefix}/lib/clang/%{maj_ver}/include/omp-tools.h %{_prefix}/lib/clang/%{maj_ver}/include/omp-tools.h
%{_prefix}/lib/clang/%{maj_ver}/include/ompt.h %{_prefix}/lib/clang/%{maj_ver}/include/ompt.h
%{_prefix}/lib/clang/%{maj_ver}/include/ompt-multiplex.h %{_prefix}/lib/clang/%{maj_ver}/include/ompt-multiplex.h
%{_libdir}/cmake/openmp/ %{install_libdir}/cmake/openmp/
%ifnarch %{ix86} %ifnarch %{ix86}
# libomptarget is not supported on 32-bit systems. # libomptarget is not supported on 32-bit systems.
# s390x does not support the offloading plugins. # s390x does not support the offloading plugins.
%{_libdir}/libomptarget.devicertl.a %{install_libdir}/libomptarget.devicertl.a
%{_libdir}/libomptarget-amdgpu-*.bc %{install_libdir}/libomptarget-amdgpu-*.bc
%{_libdir}/libomptarget-nvptx-*.bc %{install_libdir}/libomptarget-nvptx-*.bc
%{_libdir}/libomptarget.so %{install_libdir}/libomptarget.so
%endif
%endif %endif
#endregion #endregion

View file

@ -132,9 +132,7 @@
#region OPENMP globals #region OPENMP globals
%if %{without compat_build} %global pkg_name_libomp libomp%{pkg_suffix}
%global pkg_name_libomp libomp
%global so_suffix %{maj_ver}.%{min_ver} %global so_suffix %{maj_ver}.%{min_ver}
@ -148,8 +146,6 @@
%global libomp_arch %{_arch} %global libomp_arch %{_arch}
%endif %endif
%endif
#endregion #endregion
#region LLD globals #region LLD globals