Summary(pl): IRRToolSet jest zestawem narzêdzi do analizy polityki
Name: IRRToolSet
Version: 4.7.3
-Release: 1
+Release: 3
License: BSD-like
Group: Networking/Admin
Source0: ftp://ftp.ripe.net/ripe/tools/IRRToolSet/%{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
-BuildRequires: tcl-devel
-BuildRequires: tk-devel
+BuildRequires: XFree86-devel
+BuildRequires: bison
BuildRequires: flex
-BuildRequires: gcc2-c++
-Requires: XFree86-libs
-Requires: readline
-Requires: tcl
-Requires: tk
-Obsoletes: RAToolSet
+BuildRequires: libstdc++-devel
+BuildRequires: tcl-devel >= 8.3.4-10
+BuildRequires: tk-devel >= 8.3.4-5
+BuildRequires: readline-devel
+Provides: RAToolSet
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%define __cxx g++2
-%define __cc gcc2
-
-%define optflags -O3 -gstabs+ -frtti
+Obsoletes: RAToolSet
%description
IRRToolSet is a suite of policy analysis tools. It is implemented in
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
+cp -f /usr/share/automake/config.sub .
%configure2_13
%{__make}
# extract license
-head -53 acconfig.h | tail -52 > LICENSE
+head -n 53 acconfig.h | tail -n 52 > LICENSE
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sbindir}
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
mv $RPM_BUILD_ROOT%{_bindir}/prtraceroute $RPM_BUILD_ROOT%{_sbindir}