commit 544b5cae1fac3c5803716c232168f27759580dd8 Author: Björn Esser bjoern.esser@gmail.com Date: Thu Jul 17 12:43:09 2014 +0200
fix boolean logic
NLopt.spec | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) --- diff --git a/NLopt.spec b/NLopt.spec index 4795d05..ea35633 100644 --- a/NLopt.spec +++ b/NLopt.spec @@ -370,7 +370,8 @@ popd %postun -n guile-%{name} -p /sbin/ldconfig %endif # 0%{?with_guile}
-%if 0%{?with_octave} && (0%{?fedora} || 0%{?rhel} >= 7) +%if 0%{?with_octave} +%if 0%{?fedora} || 0%{?rhel} >= 7 %post -n octave-%{name} %octave_cmd pkg rebuild
@@ -394,7 +395,8 @@ fi
%postun -n octave-%{name} octave -H -q --no-window-system --no-site-file --eval "pkg rebuild" -%endif # 0%{?with_octave} && (0%{?fedora} || 0%{?rhel} >= 7) +%endif # 0%{?fedora} || 0%{?rhel} >= 7 +%endif # 0%{?with_octave}
%files %doc ChangeLog COPY* NEWS