2 # - trigger to clean up after old bird package (stop, chkconfig --del)
5 %bcond_without ipv6 # disable IPv6 support (and building bird-ipv6 package)
6 %bcond_without ipv4 # disable IPv4 support (and building bird-ipv4 package)
8 Summary: The BIRD Internet Routing Daemon
9 Summary(pl.UTF-8): Demon BIRD Internetowego Routingu Dynamicznego
14 Group: Networking/Daemons
15 Source0: ftp://bird.network.cz/pub/bird/%{name}-%{version}.tar.gz
16 # Source0-md5: 4836e3b15fcbe03d5dfe467bd4ca98fb
17 Source1: %{name}-ipv4.init
18 Source2: %{name}-ipv4.sysconfig
19 Source3: %{name}-ipv6.init
20 Source4: %{name}-ipv6.sysconfig
21 Source5: ftp://bird.network.cz/pub/bird/%{name}-doc-%{version}.tar.gz
22 # Source5-md5: c99c927430a4ccb07d3317614520caf2
23 Patch0: %{name}-tinfo.patch
24 URL: http://bird.network.cz/
25 BuildRequires: autoconf
26 BuildRequires: automake
29 BuildRequires: readline-devel >= 4.2
30 BuildRequires: rpmbuild(macros) >= 1.268
31 Requires(post,preun): /sbin/chkconfig
37 Obsoletes: zebra-guile
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 The BIRD project is an attempt to create a routing daemon running on
42 UNIX-like systems (but not necessarily limited to them) with full
43 support of all modern routing protocols, easy to use configuration
44 interface and powerful route filtering language.
46 %description -l pl.UTF-8
47 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
48 pracującego na systemach UNIX z pełnym wsparciem dla nowoczesnych
49 protokołów routingu, łatwym interfejsem konfiguracji i językiem
50 filtrów o dużych możliwościach.
53 Summary: Routing daemon for IPv4
54 Summary(pl.UTF-8): Demon dynamicznego routingu IPv4
55 Group: Networking/Daemons
56 Requires(post,preun): /sbin/chkconfig
57 Requires: %{name} = %{version}-%{release}
60 Provides: routingdaemon
64 Obsoletes: zebra-guile
67 The BIRD project is an attempt to create a routing daemon running on
68 UNIX-like systems (but not necessarily limited to them) with full
69 support of all modern routing protocols, easy to use configuration
70 interface and powerful route filtering language.
72 %description ipv4 -l pl.UTF-8
73 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
74 pracującego na systemach UNIX z pełnym wsparciem dla nowoczesnych
75 protokołów routingu, łatwym interfejsem konfiguracji i językiem
76 filtrów o dużych możliwościach.
79 Summary: Routing daemon for IPv6
80 Summary(pl.UTF-8): Demon dynamicznego routingu IPv6
81 Group: Networking/Daemons
82 Requires(post,preun): /sbin/chkconfig
83 Requires: %{name} = %{version}-%{release}
86 Provides: routingdaemon
90 Obsoletes: zebra-guile
93 The BIRD project is an attempt to create a routing daemon running on
94 UNIX-like systems (but not necessarily limited to them) with full
95 support of all modern routing protocols, easy to use configuration
96 interface and powerful route filtering language.
98 %description ipv6 -l pl.UTF-8
99 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
100 pracującego na systemach UNIX z pełnym wsparciem dla nowoczesnych
101 protokołów routingu, łatwym interfejsem konfiguracji i językiem
102 filtrów o dużych możliwościach.
109 cp -f /usr/share/automake/config.* tools
112 export CFLAGS="%{rpmcflags} -I%{_includedir}/ncursesw"
135 rm -rf $RPM_BUILD_ROOT
136 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig,%{_sbindir}}
138 install birdc $RPM_BUILD_ROOT%{_sbindir}
141 install bird $RPM_BUILD_ROOT%{_sbindir}
142 install doc/bird.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
143 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-ipv4
144 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-ipv4
148 install bird-6 $RPM_BUILD_ROOT%{_sbindir}
149 cat <<EOF > $RPM_BUILD_ROOT%{_sbindir}/birdc-6
151 exec %{_sbindir}/birdc -s /var/run/bird-6.ctl
153 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-ipv6
154 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-ipv6
158 rm -rf $RPM_BUILD_ROOT
161 /sbin/chkconfig --add %{name}-ipv4
162 %service %{name}-ipv4 restart "routing daemon"
165 if [ "$1" = "0" ]; then
166 %service %{name}-ipv4 stop
167 /sbin/chkconfig --del %{name}-ipv4
171 /sbin/chkconfig --add %{name}-ipv6
172 %service %{name}-ipv6 restart "routing daemon"
175 if [ "$1" = "0" ]; then
176 %service %{name}-ipv6 stop
177 /sbin/chkconfig --del %{name}-ipv6
181 %defattr(644,root,root,755)
182 %doc doc/*.html doc/reply_codes %{name}-doc-%{version}/doc/*.ps ChangeLog NEWS README TODO
183 %attr(755,root,root) %{_sbindir}/birdc
187 %defattr(644,root,root,755)
188 %attr(755,root,root) %{_sbindir}/bird
189 %attr(754,root,root) /etc/rc.d/init.d/bird-ipv4
190 %attr(754,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bird-ipv4
191 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bird.conf
196 %defattr(644,root,root,755)
197 %attr(755,root,root) %{_sbindir}/bird-6
198 %attr(755,root,root) %{_sbindir}/birdc-6
199 %attr(754,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bird-ipv6
200 %attr(754,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/rc.d/init.d/bird-ipv6
201 #%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bird-6.conf