Disable test subpackage
Related: RHEL-132483
This commit is contained in:
parent
e1810ad417
commit
6d4b858204
@ -1,3 +1,5 @@
|
||||
%global with_test_subpackage 0
|
||||
|
||||
Name: sblim-cmpi-base
|
||||
Version: 1.6.4
|
||||
Release: 20%{?dist}
|
||||
@ -45,6 +47,7 @@ SBLIM (Standards Based Linux Instrumentation for Manageability)
|
||||
CMPI (Common Manageability Programming Interface) Base Provider
|
||||
development header files and link libraries.
|
||||
|
||||
%if 0%{?with_test_subpackage}
|
||||
%package test
|
||||
Summary: SBLIM CMPI Base Providers Test Cases
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
@ -54,6 +57,7 @@ Requires: sblim-testsuite
|
||||
SBLIM (Standards Based Linux Instrumentation for Manageability)
|
||||
CMPI (Common Manageability Programming Interface) Base Provider
|
||||
Testcase Files for the SBLIM Testsuite.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
@ -70,7 +74,11 @@ autoreconf --install --force
|
||||
%patch -P 9 -p1 -b .fix-possible-null-dereference.patch
|
||||
|
||||
%build
|
||||
%configure TESTSUITEDIR=%{_datadir}/sblim-testsuite --disable-static
|
||||
%configure --disable-static \
|
||||
%if 0%{?with_test_subpackage}
|
||||
TESTSUITEDIR=%{_datadir}/sblim-testsuite \
|
||||
%endif
|
||||
|
||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||
make
|
||||
@ -94,6 +102,7 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/cmpi/*a
|
||||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
|
||||
%if 0%{?with_test_subpackage}
|
||||
%files test
|
||||
%dir %{_datadir}/sblim-testsuite/cim
|
||||
%dir %{_datadir}/sblim-testsuite/system
|
||||
@ -103,6 +112,7 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/cmpi/*a
|
||||
%{_datadir}/sblim-testsuite/system/linux/*.system
|
||||
%{_datadir}/sblim-testsuite/system/linux/*.sh
|
||||
%{_datadir}/sblim-testsuite/system/linux/*.pl
|
||||
%endif
|
||||
|
||||
%global SCHEMA %{_datadir}/%{name}/Linux_Base.mof %{_datadir}/%{name}/Linux_BaseIndication.mof
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user