From a69d6e49192513a882f5b37c648abc8100a996b1 Mon Sep 17 00:00:00 2001 From: Sander Hoentjen Date: Feb 08 2016 19:32:15 +0000 Subject: PPC on EPEL does not have uglify-js --- diff --git a/dnsdist.spec b/dnsdist.spec index c798752..6b2de1d 100644 --- a/dnsdist.spec +++ b/dnsdist.spec @@ -1,9 +1,13 @@ %global _hardened_build 1 %global prever alpha2 +%ifnarch %{power64} || 0%{?fedora} || 0%{?rhel} > 7 +%global uglify 1 +%endif + Name: dnsdist Version: 1.0.0 -Release: 0.5.%{?prever}%{?dist} +Release: 0.6.%{?prever}%{?dist} Summary: Highly DNS-, DoS- and abuse-aware loadbalancer Group: System Environment/Daemons License: GPLv2 @@ -19,7 +23,9 @@ BuildRequires: luajit-devel %endif BuildRequires: readline-devel BuildRequires: systemd-units +%if 0%{?uglify} BuildRequires: uglify-js +%endif Requires(post): systemd Requires(preun): systemd Requires(postun): systemd @@ -42,10 +48,17 @@ legitimate users while shunting or blocking abusive traffic. --enable-dnscrypt \ --enable-libsodium \ --with-lua \ +%ifnarch %{power64} --with-luajit \ +%endif --enable-unit-tests rm html/js/* +%if 0%{?uglify} make min_js +%else +cp src_js/* html/js +%endif + make %{?_smp_mflags} mv dnsdistconf.lua dnsdist.conf.sample @@ -80,6 +93,9 @@ rm %{buildroot}%{_bindir}/testrunner %changelog +* Mon Feb 08 2016 Sander Hoentjen - 1.0.0-0.6.alpha2 +- PPC on EPEL does not have uglify-js + * Mon Feb 08 2016 Sander Hoentjen - 1.0.0-0.5.alpha2 - Don't build against luijit on ppc, it is not available there