commit 8390db5375481f0c3cef4c6ebdc54be821bd17ff
Author: Jan Palus <[email protected]>
Date: Sat Jul 9 19:35:57 2022 +0200
add tests bcond
highway.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/highway.spec b/highway.spec
index ead09d0..0865b0f 100644
--- a/highway.spec
+++ b/highway.spec
@@ -1,6 +1,7 @@
#
# Conditional build:
%bcond_without apidocs # API documentation
+%bcond_without tests # don't build tests
#
Summary: Efficient and performance-portable SIMD
Summary(pl.UTF-8): Wydajne i przenoĊne operacje SIMD
@@ -16,10 +17,10 @@ Source0:
https://github.com/google/highway/archive/%{version}/%{name}-%{version}
Patch0: %{name}-rdtscp.patch
URL: https://github.com/google/highway
BuildRequires: cmake >= 3.10
-BuildRequires: gtest-devel
+%{?with_tests:BuildRequires: gtest-devel}
BuildRequires: libstdc++-devel >= 6:4.7
BuildRequires: rpm-build >= 4.6
-BuildRequires: rpmbuild(macros) >= 1.605
+BuildRequires: rpmbuild(macros) >= 1.742
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -90,6 +91,7 @@ Dokumentacja API biblioteki Highway.
install -d build
cd build
%cmake .. \
+ %{cmake_on_off tests BUILD_TESTING} \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DCMAKE_INSTALL_LIBDIR=%{_lib} \
-DHWY_SYSTEM_GTEST=ON
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/highway.git/commitdiff/8390db5375481f0c3cef4c6ebdc54be821bd17ff
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit