1 Summary: Routing daemon
2 Summary(pl): Demon dynamicznego routingu
7 Group: Networking/Daemons
8 Source0: ftp://bird.network.cz/pub/bird/%{name}-%{version}.tar.gz
9 # Source0-md5: 6a1d94b8a33b80e754ea4f9cc0ac1ff3
10 Source1: ftp://bird.network.cz/pub/bird/%{name}-doc-%{version}.tar.gz
11 # Source1-md5: a65161e37449da5303cbe454125c3c9c
13 Patch0: %{name}-posix.patch
14 Patch1: %{name}-flex.patch
15 URL: http://bird.network.cz/
16 BuildRequires: automake
17 BuildRequires: readline-devel >= 4.2
19 Requires(post,preun): /sbin/chkconfig
20 Provides: routingdaemon
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 Obsoletes: zebra-guile
28 The BIRD project is an attempt to create a routing daemon running on
29 UNIX-like systems (but not necessarily limited to them) with full
30 support of all modern routing protocols, easy to use configuration
31 interface and powerful route filtering language.
34 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
35 pracuj±cego na systemach UNIX z pe³nym wsparciem dla nowoczesnych
36 protoko³ów routingu, ³atwym interfejsem konfiguracji i jêzykiem
37 filtrów o du¿ych mo¿liwo¶ciach.
45 cp -f /usr/share/automake/config.* tools
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sbindir}}
56 install bird $RPM_BUILD_ROOT%{_sbindir}
57 install birdc $RPM_BUILD_ROOT%{_sbindir}
59 install doc/bird.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
60 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
63 rm -rf $RPM_BUILD_ROOT
66 /sbin/chkconfig --add %{name} >&2
68 if [ -f /var/lock/subsys/%{name} ]; then
69 /etc/rc.d/init.d/%{name} restart >&2
71 echo "Run '/etc/rc.d/init.d/%{name} start' to start routing deamon." >&2
75 if [ "$1" = "0" ]; then
76 if [ -f /var/lock/subsys/%{name} ]; then
77 /etc/rc.d/init.d/%{name} stop >&2
79 /sbin/chkconfig --del %{name} >&2
83 %defattr(644,root,root,755)
84 %doc doc/*.html %{name}-doc-*/doc/*.ps TODO README
86 %attr(755,root,root) %{_sbindir}/*
87 %attr(754,root,root) /etc/rc.d/init.d/*
88 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf