[tests] enable building / shipping of libqb-tests.rpm

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
This commit is contained in:
Fabio M. Di Nitto 2019-03-15 10:13:03 +01:00 committed by Chrissie Caulfield
parent 6255a1466c
commit 44386edf7d

View File

@ -1,4 +1,5 @@
%bcond_without check
%bcond_without testsrpm
%global alphatag @alphatag@
%global numcomm @numcomm@
@ -26,7 +27,11 @@ and polling.
%build
./autogen.sh
%configure --disable-static
%configure \
%if %{with testsrpm}
--enable-install-tests \
%endif
--disable-static
make %{?_smp_mflags}
%if 0%{?with_check}
@ -66,6 +71,20 @@ developing applications that use %{name}.
%{_libdir}/pkgconfig/libqb.pc
%{_mandir}/man3/qb*3*
%if %{with testsrpm}
%package tests
Summary: Test suite for %{name}
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%files tests
%doc COPYING
%{_libdir}/libqb/tests/*
%description tests
The %{name}-tests package contains the %{name} test suite.
%endif
%changelog
* @date@ Autotools generated version <nobody@nowhere.org> - @version@-1-@numcomm@.@alphatag@.@dirty@
- Autotools generated version