Add optional installed-tests subpackage

This commit is contained in:
Adam Jackson 2014-05-08 13:23:00 -04:00
parent 9b3ba78440
commit f9acd86548

View File

@ -2,6 +2,8 @@
%global with_wayland 1 %global with_wayland 1
%endif %endif
#global with_tests 1
Name: cogl Name: cogl
Version: 1.18.0 Version: 1.18.0
Release: 2%{?dist} Release: 2%{?dist}
@ -71,6 +73,15 @@ BuildArch: noarch
%description doc %description doc
This package contains documentation for %{name}. 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 %prep
%setup -q %setup -q
@ -87,7 +98,8 @@ CFLAGS="$RPM_OPT_FLAGS -fPIC"
--enable-kms-egl-platform \ --enable-kms-egl-platform \
--enable-wayland-egl-platform \ --enable-wayland-egl-platform \
--enable-wayland-egl-server \ --enable-wayland-egl-server \
--enable-xlib-egl-platform --enable-xlib-egl-platform \
%{?with_tests:--enable-installed-tests}
make %{?_smp_mflags} V=1 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-gst
%{_datadir}/gtk-doc/html/cogl-2.0-experimental %{_datadir}/gtk-doc/html/cogl-2.0-experimental
%if 0%{?with_tests}
%files tests
%{_datadir}/installed-tests/%{name}
%{_libexecdir}/installed-tests/%{name}
%endif
%changelog %changelog
* Thu May 08 2014 Adam Jackson <ajax@redhat.com>
- Add optional installed-tests subpackage
* Mon Apr 28 2014 Richard Hughes <rhughes@redhat.com> - 1.18.0-2 * Mon Apr 28 2014 Richard Hughes <rhughes@redhat.com> - 1.18.0-2
- Build with --enable-cogl-gst - Build with --enable-cogl-gst