From 6239c6c2fcb09ba961f68b19f20c27d80cec2e7a Mon Sep 17 00:00:00 2001 From: Andrea Claudi Date: Thu, 22 Jul 2021 16:51:55 +0200 Subject: [PATCH] Don't build scapy-doc package on rhel scapy documentation is provided under cc-by-nc-sa license, but unfortunately the -nc bit is not compatible with rhel distribution policies. This make it possible to ship scapy without documentation. Resolves: rhbz#1973720 Signed-off-by: Andrea Claudi --- scapy.spec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scapy.spec b/scapy.spec index c33acfa..7a35eca 100644 --- a/scapy.spec +++ b/scapy.spec @@ -33,11 +33,10 @@ requests and replies, and much more.} %bcond_with python2 %endif -# By default build the documentation -%if 0%{?fedora} || ( 0%{?rhel} && 0%{?rhel} >= 8 ) +# Build the documentation only on Fedora due to cc-by-nc-sa license +%if 0%{?fedora} %bcond_without doc %else -# Documentation build fails on rhel7 due to version of sphinx %bcond_with doc %endif