# Conditional build:
%bcond_without ipv6 # disable IPv6 support (and building bird-ipv6 package)
%bcond_without ipv4 # disable IPv4 support (and building bird-ipv4 package)
+%bcond_with alien # enable possibility to import 'alien' routes import into bird's routing table
#
-Summary: Routing daemon
-Summary(pl.UTF-8): Demon dynamicznego routingu
+Summary: The BIRD Internet Routing Daemon
+Summary(pl.UTF-8): Demon BIRD Internetowego Routingu Dynamicznego
Name: bird
-Version: 1.0.12
+Version: 1.3.1
Release: 1
-License: GPL
+License: GPL v2+
Group: Networking/Daemons
Source0: ftp://bird.network.cz/pub/bird/%{name}-%{version}.tar.gz
-# Source0-md5: f404bde9b664ef801a81c7bdc784ec7c
+# Source0-md5: d11f53b79c7371b76e5c93209dbe2a10
Source1: %{name}-ipv4.init
Source2: %{name}-ipv4.sysconfig
Source3: %{name}-ipv6.init
Source4: %{name}-ipv6.sysconfig
-Patch0: %{name}-64bit.patch
+Source5: ftp://bird.network.cz/pub/bird/%{name}-doc-%{version}.tar.gz
+# Source5-md5: 340be3f6c7ade302a0b4b34dd2773957
+Patch0: %{name}-allowalien.patch
URL: http://bird.network.cz/
BuildRequires: autoconf
BuildRequires: automake
filtrów o dużych możliwościach.
%prep
-%setup -q
-%patch0 -p1
+%setup -q -a 5
+%{?with_alien:%patch1 -p1}
%build
cp -f /usr/share/automake/config.* tools
+%{__autoconf}
+
+export CFLAGS="%{rpmcflags} -I%{_includedir}/ncursesw"
%if %{with ipv6}
-%{__autoconf}
%configure \
--disable-memcheck \
--enable-client \
%files
%defattr(644,root,root,755)
-%doc doc/*.html TODO README
+%doc doc/*.html doc/reply_codes %{name}-doc-%{version}/doc/*.ps ChangeLog NEWS README TODO
%attr(755,root,root) %{_sbindir}/birdc
%if %{with ipv4}