[json-glib] installed tests

Matthias Clasen mclasen at fedoraproject.org
Thu Sep 4 16:54:12 UTC 2014


commit 9cf682963dfd7f539604a154731c62def4277ca0
Author: Matthias Clasen <mclasen at redhat.com>
Date:   Thu Sep 4 12:36:57 2014 -0400

    installed tests

 json-glib.spec |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/json-glib.spec b/json-glib.spec
index 385dc7a..d3f752c 100644
--- a/json-glib.spec
+++ b/json-glib.spec
@@ -2,7 +2,7 @@
 
 Name:		json-glib
 Version:	1.0.2
-Release:	4%{?dist}
+Release:	5%{?dist}
 Summary:	Library for JavaScript Object Notation format
 
 Group:		System Environment/Libraries
@@ -31,13 +31,21 @@ Requires:	%{name}%{_isa} = %{version}-%{release}
 The %{name}-devel package contains libraries and header files for
 developing applications that use %{name}.
 
+%package tests
+Summary: Tests for the json-glib package
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description tests
+The json-glib-tests package contains tests that can be used to verify
+the functionality of the installed json-glib package.
 
 %prep
 %setup -q -n %{name}-%{version}
 
 
 %build
-%configure --enable-static=no
+%configure --enable-static=no --enable-installed-tests
 make %{?_smp_mflags} V=1
 
 
@@ -74,8 +82,14 @@ cp -a doc/reference/html/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/%{name}/
 %{_mandir}/man1/json-glib-format.1*
 %{_mandir}/man1/json-glib-validate.1*
 
+%files tests
+%{_libexecdir}/installed-tests/%{name}
+%{_datadir}/installed-tests
 
 %changelog
+* Thu Sep 4  2014 Vadim Rutkovsky <vrutkovs at redhat.com> - 1.0.2-5
+- Build installed tests
+
 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.0.2-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 


More information about the scm-commits mailing list