enable tests
This commit is contained in:
parent
8e684a6f1e
commit
0a18fc4c00
10
libavif.spec
10
libavif.spec
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue