enable tests
This commit is contained in:
parent
8e684a6f1e
commit
0a18fc4c00
10
libavif.spec
10
libavif.spec
@ -7,6 +7,7 @@
|
|||||||
%else
|
%else
|
||||||
%bcond_without rav1e
|
%bcond_without rav1e
|
||||||
%endif
|
%endif
|
||||||
|
%bcond_without check
|
||||||
|
|
||||||
Name: libavif
|
Name: libavif
|
||||||
Version: 0.11.1
|
Version: 0.11.1
|
||||||
@ -19,6 +20,7 @@ Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|||||||
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
|
%{?with_check:BuildRequires: gtest-devel}
|
||||||
BuildRequires: nasm
|
BuildRequires: nasm
|
||||||
%if %{with aom}
|
%if %{with aom}
|
||||||
BuildRequires: pkgconfig(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_rav1e:-DAVIF_CODEC_RAV1E=1} \
|
||||||
%{?with_svt:-DAVIF_CODEC_SVT=1} \
|
%{?with_svt:-DAVIF_CODEC_SVT=1} \
|
||||||
-DAVIF_BUILD_APPS=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
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
%check
|
||||||
|
%ctest
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
# Do not glob the soname
|
# Do not glob the soname
|
||||||
|
Loading…
Reference in New Issue
Block a user