diff --git a/SPECS/libomp.spec b/SPECS/libomp.spec index 2203faa..1831374 100644 --- a/SPECS/libomp.spec +++ b/SPECS/libomp.spec @@ -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 - 14.0.6-2 +- Drop -test sub-package on i686 + * Tue Jun 28 2022 Tom Stellard - 14.0.6-1 - 14.0.6 Release