From 325aed8a887289a027d060e9c8b8d2f50cf5dcb3 Mon Sep 17 00:00:00 2001 From: Vitezslav Crhonek Date: Mon, 26 Aug 2024 09:13:22 +0200 Subject: [PATCH] Don't build test subpackage --- sblim-gather.spec | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/sblim-gather.spec b/sblim-gather.spec index ff2bac9..ec49438 100644 --- a/sblim-gather.spec +++ b/sblim-gather.spec @@ -1,9 +1,10 @@ %global sblim_testsuite_version 1.2.4 %global provider_dir %{_libdir}/cmpi +%global with_test_subpackage 0 Name: sblim-gather Version: 2.2.9 -Release: 34%{?dist} +Release: 35%{?dist} Summary: SBLIM Gatherer License: EPL-1.0 @@ -82,6 +83,7 @@ This package is needed to develop new plugins for the SBLIM (Standards Based Linux Instrumentation for Manageability) Gatherer. +%if 0%{?with_test_subpackage} %package test Summary: SBLIM Gatherer Testcase Files Requires: %{name}-provider = %{version}-%{release} @@ -92,6 +94,7 @@ Requires: cim-server Gatherer Testcase Files for the SBLIM (Standards Based Linux Instrumentation for Manageability) Testsuite +%endif %prep %setup -q @@ -105,7 +108,10 @@ export CFLAGS="$RPM_OPT_FLAGS -fsigned-char -fno-strict-aliasing" %else export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" %endif -%configure TESTSUITEDIR=%{_datadir}/sblim-testsuite \ +%configure \ +%if 0%{?with_test_subpackage} + TESTSUITEDIR=%{_datadir}/sblim-testsuite \ +%endif %ifarch s390 s390x --enable-z \ %endif @@ -182,11 +188,13 @@ install -p -m 644 %{SOURCE6} $RPM_BUILD_ROOT%{_unitdir}/reposd.service %{_libdir}/lib[^O]*.so %{_includedir}/gather +%if 0%{?with_test_subpackage} %files test %{_datadir}/sblim-testsuite/cim/Linux* %{_datadir}/sblim-testsuite/system/linux/Linux* %{_datadir}/sblim-testsuite/system/linux/gather-systemname.sh %{_datadir}/sblim-testsuite/test-gather.sh +%endif %global GATHER_1ST_SCHEMA %{_datadir}/%{name}/Linux_Metric.mof %{_datadir}/%{name}/Linux_MetricProfile.mof %global GATHER_1ST_REGISTRATION %{_datadir}/%{name}/Linux_Metric.registration %{_datadir}/%{name}/Linux_MetricProfile.registration @@ -292,6 +300,9 @@ fi %ldconfig_postun provider %changelog +* Mon Aug 26 2024 Vitezslav Crhonek - 2.2.9-35 +- Don't build test subpackage + * Tue Aug 06 2024 Vitezslav Crhonek - 2.2.9-34 - Fix undefined symbol in libmetricKvm