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 <aclaudi@redhat.com>
This commit is contained in:
Andrea Claudi 2021-07-22 16:51:55 +02:00
parent f4ba8934f3
commit 6239c6c2fc

View File

@ -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