import libomp-14.0.6-2.module+el8.7.0+16313+2fe5fb1f

This commit is contained in:
CentOS Sources 2022-08-12 22:20:26 +00:00 committed by Stepan Oksanichenko
parent 115295f740
commit c7423b6e3d
1 changed files with 19 additions and 1 deletions

View File

@ -9,9 +9,15 @@
%global libomp_arch %{_arch}
%endif
%ifarch %{ix86}
%bcond_with testpkg
%else
%bcond_without testpkg
%endif
Name: libomp
Version: %{libomp_version}%{?rc_ver:~rc%{rc_ver}}
Release: 1%{?dist}
Release: 2%{?dist}
Summary: OpenMP runtime for clang
License: NCSA
@ -64,6 +70,8 @@ Requires: clang-resource-filesystem%{?isa} = %{version}
%description devel
OpenMP header files.
%if %{with testpkg}
%package test
Summary: OpenMP regression tests
Requires: %{name}%{?isa} = %{version}-%{release}
@ -77,6 +85,8 @@ Requires: python3-lit
%description test
OpenMP regression tests
%endif
%prep
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
%autosetup -n %{libomp_srcdir} -p2
@ -107,6 +117,7 @@ cd %{_vpath_builddir}
cd %{_vpath_builddir}
%cmake_install
%if %{with testpkg}
# Test package setup
%global libomp_srcdir %{_datadir}/libomp/src/
%global libomp_testdir %{libomp_srcdir}/runtime/test/
@ -131,6 +142,8 @@ echo "lit_config.load_config(config, '%{lit_fedora_cfg}')" >> %{buildroot}%{lit_
install -d %{buildroot}%{_libexecdir}/tests/libomp
install -m 0755 %{SOURCE3} %{buildroot}%{_libexecdir}/tests/libomp
%endif
# Remove static libraries with equivalent shared libraries
rm -rf %{buildroot}%{_libdir}/libarcher_static.a
@ -163,11 +176,16 @@ cd %{_vpath_builddir}
%{_includedir}/ompt-multiplex.h
%endif
%if %{with testpkg}
%files test
%{_datadir}/libomp
%{_libexecdir}/tests/libomp/
%endif
%changelog
* 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