+#
+# Conditional build:
+%bcond_with gcc32 # compile with gcc32
+#
Summary: IRRToolSet is a suite of policy analysis tools
Summary(pl): IRRToolSet jest zestawem narzêdzi do analizy polityki
Name: IRRToolSet
Version: 4.7.3
-Release: 2
+Release: 4
License: BSD-like
Group: Networking/Admin
-Source0: ftp://ftp.ripe.net/ripe/tools/IRRToolSet/%{name}-%{version}.tar.gz
+Source0: ftp://ftp.isc.org/isc/IRRToolSet/IRRToolSet-%{version}/%{name}-%{version}.tar.gz
# Source0-md5: fcf8305464c8ae5886c41dcb8d85e53d
Patch0: %{name}-DESTDIR.patch
Patch1: %{name}-gcc3.patch
-URL: http://www.ripe.net/ripencc/pub-services/db/irrtoolset/index.html
+Patch2: %{name}-flex.patch
+URL: http://www.isc.org/sw/IRRToolSet/
BuildRequires: XFree86-devel
+BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
BuildRequires: libstdc++-devel
BuildRequires: tcl-devel >= 8.3.4-10
BuildRequires: tk-devel >= 8.3.4-5
BuildRequires: readline-devel
+%if %{with gcc32}
+BuildRequires: compat-gcc-32
+BuildRequires: compat-gcc-32-c++
+%endif
Provides: RAToolSet
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Obsoletes: RAToolSet
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
IRRToolSet is a suite of policy analysis tools. It is implemented in
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
+cp -f /usr/share/automake/config.sub .
+%if %{with gcc32}
+%define __cc gcc32
+%define __cxx g++32
+%define optflags -O2 -g -pipe -Wno-deprecated
+%endif
%configure2_13
%{__make}