[cogl] Add optional installed-tests subpackage
Adam Jackson
ajax at fedoraproject.org
Thu May 8 17:22:35 UTC 2014
commit f9acd8654840751c1d3493623cc3ea93a63cf163
Author: Adam Jackson <ajax at redhat.com>
Date: Thu May 8 13:23:00 2014 -0400
Add optional installed-tests subpackage
cogl.spec | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/cogl.spec b/cogl.spec
index 86bb9d7..90e616a 100644
--- a/cogl.spec
+++ b/cogl.spec
@@ -2,6 +2,8 @@
%global with_wayland 1
%endif
+#global with_tests 1
+
Name: cogl
Version: 1.18.0
Release: 2%{?dist}
@@ -71,6 +73,15 @@ BuildArch: noarch
%description doc
This package contains documentation for %{name}.
+%if 0%{?with_tests}
+%package tests
+Summary: Tests for %{name}
+Group: Development/Tools
+
+%description tests
+This package contains the installable tests for %{cogl}.
+%endif
+
%prep
%setup -q
@@ -87,7 +98,8 @@ CFLAGS="$RPM_OPT_FLAGS -fPIC"
--enable-kms-egl-platform \
--enable-wayland-egl-platform \
--enable-wayland-egl-server \
- --enable-xlib-egl-platform
+ --enable-xlib-egl-platform \
+ %{?with_tests:--enable-installed-tests}
make %{?_smp_mflags} V=1
@@ -123,7 +135,16 @@ rm %{buildroot}%{_datadir}/cogl/examples-data/crate.jpg
%{_datadir}/gtk-doc/html/cogl-gst
%{_datadir}/gtk-doc/html/cogl-2.0-experimental
+%if 0%{?with_tests}
+%files tests
+%{_datadir}/installed-tests/%{name}
+%{_libexecdir}/installed-tests/%{name}
+%endif
+
%changelog
+* Thu May 08 2014 Adam Jackson <ajax at redhat.com>
+- Add optional installed-tests subpackage
+
* Mon Apr 28 2014 Richard Hughes <rhughes at redhat.com> - 1.18.0-2
- Build with --enable-cogl-gst
More information about the scm-commits
mailing list