From 21771f91f78e81b5c7c3da23d33cb38773ebd28f Mon Sep 17 00:00:00 2001 From: David Bezemer Date: Sun, 20 Oct 2019 17:33:10 +0200 Subject: [PATCH] El6 does not support %license --- SPECS/haproxy.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SPECS/haproxy.spec b/SPECS/haproxy.spec index fd96cc3..8162bb4 100644 --- a/SPECS/haproxy.spec +++ b/SPECS/haproxy.spec @@ -193,7 +193,9 @@ fi %files %defattr(-,root,root) %doc CHANGELOG README examples/*.cfg doc/architecture.txt doc/configuration.txt doc/intro.txt doc/management.txt doc/proxy-protocol.txt -%license LICENSE +%if 0%{?el7} || 0%{?amzn2} || 0%{?el8} + %license LICENSE +%endif %doc %{_mandir}/man1/* %dir %{_sysconfdir}/%{name} %{_sysconfdir}/%{name}/errors