Fixes build without uglify (#2070613)

This commit is contained in:
Sander Hoentjen 2022-05-03 16:49:52 +02:00
parent 00da8f4d0e
commit b98e07028f
No known key found for this signature in database
GPG Key ID: 2D0D0318D5191146
1 changed files with 7 additions and 3 deletions

View File

@ -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 <sander@hoentjen.eu> - 1.7.1-2
- Fixes build without uglify (#2070613)
* Sat Apr 30 2022 Sander Hoentjen <sander@hoentjen.eu> - 1.7.1-1
- Update to 1.7.1