commit 29ac39d3300fe5ecb4929a58c49998e2b92ee280
Author: Jan Palus <[email protected]>
Date:   Fri Aug 25 10:00:07 2023 +0200

    don't build tests when building without them

 libinput.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/libinput.spec b/libinput.spec
index 7d65abf..ecf8463 100644
--- a/libinput.spec
+++ b/libinput.spec
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libinput.git/commitdiff/e90f1041975f715734a5366acff7c44e42f95e60

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to