]> git.pld-linux.org Git - packages/libinput.git/commitdiff
don't build tests when building without them
authorJan Palus <atler@pld-linux.org>
Fri, 25 Aug 2023 08:00:07 +0000 (10:00 +0200)
committerJan Palus <atler@pld-linux.org>
Fri, 25 Aug 2023 08:00:07 +0000 (10:00 +0200)
libinput.spec

index 7d65abfe211e4f614c20cc3db261e4453f40f4ce..ecf846302562980e3ef76ca965ca85db24d5d011 100644 (file)
@@ -154,6 +154,7 @@ Dopełnianie parametrów w zsh dla polecenia libinput.
 %meson build \
        -Ddebug-gui=%{__true_false gui} \
        -Ddocumentation=%{__true_false doc} \
+       -Dtests=%{__true_false tests} \
        -Dudev-dir=/lib/udev \
        -Dzshcompletiondir=%{zsh_compdir}
 
@@ -166,7 +167,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %ninja_install -C build
 
-%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/libinput-test-suite.1
+%{?with_tests:%{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/libinput-test-suite.1}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.174028 seconds and 4 git commands to generate.