enable tests

This commit is contained in:
Dominik 'Rathann' Mierzejewski 2023-03-18 00:06:34 +01:00
parent 8e684a6f1e
commit 0a18fc4c00
1 changed files with 9 additions and 1 deletions

View File

@ -7,6 +7,7 @@
%else
%bcond_without rav1e
%endif
%bcond_without check
Name: libavif
Version: 0.11.1
@ -19,6 +20,7 @@ Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
%{?with_check:BuildRequires: gtest-devel}
BuildRequires: nasm
%if %{with aom}
BuildRequires: pkgconfig(aom)
@ -73,12 +75,18 @@ Avif-pixbuf-loader contains a plugin to load AVIF images in GTK+ applications.
%{?with_rav1e:-DAVIF_CODEC_RAV1E=1} \
%{?with_svt:-DAVIF_CODEC_SVT=1} \
-DAVIF_BUILD_APPS=1 \
-DAVIF_BUILD_GDK_PIXBUF=1
-DAVIF_BUILD_GDK_PIXBUF=1 \
%{?with_check:-DAVIF_BUILD_TESTS=1 -DAVIF_ENABLE_GTEST=1}
%cmake_build
%install
%cmake_install
%if %{with check}
%check
%ctest
%endif
%files
%license LICENSE
# Do not glob the soname