From 82dd974a6a0d163fe0957a15c00161fbaa6875e7 Mon Sep 17 00:00:00 2001
From: Fabian Affolter <fabian@affolter-engineering.ch>
Date: Mon, 7 May 2018 22:03:17 +0200
Subject: [PATCH] Remove test applications

---
 libwebsockets.spec | 20 +++++++-------------
 1 file changed, 7 insertions(+), 13 deletions(-)

diff --git a/libwebsockets.spec b/libwebsockets.spec
index 5ed2b5b..79affc1 100644
--- a/libwebsockets.spec
+++ b/libwebsockets.spec
@@ -33,13 +33,6 @@ Requires:       %{name}%{?_isa} = %{version}-%{release}
 This package contains the header files needed for developing
 %{name} applications.
 
-%package tests
-Summary:        Tests to use with %{name}
-Requires:       %{name}%{?_isa} = %{version}-%{release}
-
-%description tests
-This package contains the tests for %{name} applications.
-
 %prep
 %setup -q -n %{name}-%{version}
 
@@ -55,6 +48,13 @@ cd build
     -D LWS_WITH_STATIC=OFF \
     -D LWS_IPV6=ON \
     -D LWS_WITH_HTTP2=ON \
+    -D LWS_WITHOUT_CLIENT=ON \
+    -D LWS_WITHOUT_SERVER=ON \
+    -D LWS_WITHOUT_TESTAPPS=ON \
+    -D LWS_WITHOUT_TEST_SERVER=ON \
+    -D LWS_WITHOUT_TEST_SERVER_EXTPOLL=ON \
+    -D LWS_WITHOUT_TEST_PING=ON \
+    -D LWS_WITHOUT_TEST_CLIENT=ON \
     -D LWS_OPENSSL_INCLUDE_DIRS=/usr/local/include/openssl \
     -D LWS_OPENSSL_LIBRARIES="/usr/local/lib64/libssl.so;/usr/local/lib64/libcrypto.so" \
     ..
@@ -84,12 +84,6 @@ find %{buildroot} -name '*_static.pc' -exec rm -f {} ';'
 %{_libdir}/%{name}.so
 %{_libdir}/pkgconfig/%{name}.pc
 
-%files tests
-%doc READMEs/README.coding.md READMEs/README.test-apps.md
-%license LICENSE
-%{_bindir}/%{name}-test-*
-%{_datadir}/%{name}-test-server/
-
 %changelog
 * Mon May 07 2018 Fabian Affolter <mail@fabian-affolter.ch> - 3.0.0-1
 - Update to latest upstream release 3.0.0 (rhbz#1575605)