From 164962eaa9d6592c516c46121cdb3094c47f74aa Mon Sep 17 00:00:00 2001 From: Till Maas Date: Sun, 15 Nov 2015 21:21:59 +0100 Subject: [PATCH] Define %license if needed for EPEL --- python-defusedxml.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python-defusedxml.spec b/python-defusedxml.spec index e491fc6..8a8aa48 100644 --- a/python-defusedxml.spec +++ b/python-defusedxml.spec @@ -1,5 +1,8 @@ %global with_python3 0 %global pypi_name defusedxml +# define the license macro as doc if licensedir is not defined for +# compatibility with EPEL +%{!?_licensedir:%global license %%doc} Name: python-%{pypi_name} Version: 0.4.1