From 4d3d8bb4bb3de057729452821ca917bca972b921 Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Tue, 22 Aug 2023 01:26:08 +0200 Subject: [PATCH] Add check bcond to ensure cargo_buildrequires does the right thing --- loupe.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/loupe.spec b/loupe.spec index 3ab8024..f7603c1 100644 --- a/loupe.spec +++ b/loupe.spec @@ -1,3 +1,5 @@ +%bcond_without check + %global tarball_version %%(echo %{version} | tr '~' '.') Name: loupe @@ -76,11 +78,13 @@ sed -i -e '/Cargo.lock/d' meson.build %find_lang loupe --with-gnome +%if %{with check} %check %meson_test appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_metainfodir}/org.gnome.Loupe.metainfo.xml desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Loupe.desktop +%endif %files -f loupe.lang