From b98e07028fe30b5da58c364499b858f491c1b697 Mon Sep 17 00:00:00 2001 From: Sander Hoentjen Date: Tue, 3 May 2022 16:49:52 +0200 Subject: [PATCH] Fixes build without uglify (#2070613) --- dnsdist.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dnsdist.spec b/dnsdist.spec index 47fda6f..9fe254f 100644 --- a/dnsdist.spec +++ b/dnsdist.spec @@ -1,13 +1,13 @@ %ifarch %{nodejs_arches} -# Fedora 33 does not have uglifyjs -%if 0%{?fedora} <= 32 +# el-7 does not have uglifyjs +%if "0%{?el7}" == "0" %global uglify 1 %endif %endif Name: dnsdist Version: 1.7.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Highly DNS-, DoS- and abuse-aware loadbalancer License: GPLv2 URL: https://dnsdist.org @@ -78,6 +78,7 @@ rm html/js/* make min_js %else cp src_js/*.js html/js +rename .js .min.js html/js/*.js %endif make %{?_smp_mflags} @@ -118,6 +119,9 @@ exit 0 %changelog +* Tue May 03 2022 Sander Hoentjen - 1.7.1-2 +- Fixes build without uglify (#2070613) + * Sat Apr 30 2022 Sander Hoentjen - 1.7.1-1 - Update to 1.7.1