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 +- Add optional installed-tests subpackage + * Mon Apr 28 2014 Richard Hughes - 1.18.0-2 - Build with --enable-cogl-gst