From 668562cac251f041d8c4690feb2ad14f05efe082 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Thu, 19 Apr 2012 14:49:12 +0200 Subject: [PATCH] Drop Octave support on RHEL Signed-off-by: Adam Tkac --- swig.spec | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/swig.spec b/swig.spec index 58447b6..a88d50a 100644 --- a/swig.spec +++ b/swig.spec @@ -1,10 +1,16 @@ %{!?tcl:%define tcl 1} %{!?guile:%define guile 1} +%if 0%{?rhel} +%{!?octave:%define octave 0} +%else +%{!?octave:%define octave 1} +%endif + Summary: Connects C/C++/Objective C to some high-level programming languages Name: swig Version: 2.0.4 -Release: 6%{?dist} +Release: 7%{?dist} License: GPLv3+ and BSD Group: Development/Tools URL: http://swig.sourceforge.net/ @@ -24,7 +30,10 @@ BuildRequires: tcl-devel %if %{guile} BuildRequires: guile-devel %endif -BuildRequires: autoconf, automake, gawk, dos2unix, octave-devel +BuildRequires: autoconf, automake, gawk, dos2unix +%if %{octave} +BuildRequires: octave-devel +%endif %description Simplified Wrapper and Interface Generator (SWIG) is a software @@ -81,7 +90,11 @@ done %build ./autogen.sh -%configure --with-octave=/usr/bin/octave +%configure \ +%if %{octave} + --with-octave=/usr/bin/octave \ +%endif +; make %{?_smp_mflags} # Test suite is currently broken @@ -124,6 +137,9 @@ rm -rf %{buildroot} %doc Doc Examples LICENSE LICENSE-GPL LICENSE-UNIVERSITIES COPYRIGHT %changelog +* Thu Apr 19 2012 Adam Tkac - 2.0.4-7 +- drop Octave support on RHEL + * Fri Feb 10 2012 Petr Pisar - 2.0.4-6 - Rebuild against PCRE 8.30