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: Routing daemon
9 Summary(pl.UTF-8): Demon dynamicznego routingu
14 Group: Networking/Daemons
15 Source0: ftp://bird.network.cz/pub/bird/%{name}-%{version}.tar.gz
16 # Source0-md5: 9f9dfe2af0bde45a0adbbd0ebc36f249
17 Source1: %{name}-ipv4.init
18 Source2: %{name}-ipv4.sysconfig
19 Source3: %{name}-ipv6.init
20 Source4: %{name}-ipv6.sysconfig
21 Patch0: %{name}-flex.patch
22 Patch1: %{name}-64bit.patch
23 URL: http://bird.network.cz/
24 BuildRequires: autoconf
25 BuildRequires: automake
28 BuildRequires: readline-devel >= 4.2
29 BuildRequires: rpmbuild(macros) >= 1.268
30 Requires(post,preun): /sbin/chkconfig
36 Obsoletes: zebra-guile
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 The BIRD project is an attempt to create a routing daemon running on
41 UNIX-like systems (but not necessarily limited to them) with full
42 support of all modern routing protocols, easy to use configuration
43 interface and powerful route filtering language.
45 %description -l pl.UTF-8
46 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
47 pracującego na systemach UNIX z pełnym wsparciem dla nowoczesnych
48 protokołów routingu, łatwym interfejsem konfiguracji i językiem
49 filtrów o dużych możliwościach.
52 Summary: Routing daemon for IPv4
53 Summary(pl.UTF-8): Demon dynamicznego routingu IPv4
54 Group: Networking/Daemons
55 Requires(post,preun): /sbin/chkconfig
56 Requires: %{name} = %{version}-%{release}
59 Provides: routingdaemon
63 Obsoletes: zebra-guile
66 The BIRD project is an attempt to create a routing daemon running on
67 UNIX-like systems (but not necessarily limited to them) with full
68 support of all modern routing protocols, easy to use configuration
69 interface and powerful route filtering language.
71 %description ipv4 -l pl.UTF-8
72 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
73 pracującego na systemach UNIX z pełnym wsparciem dla nowoczesnych
74 protokołów routingu, łatwym interfejsem konfiguracji i językiem
75 filtrów o dużych możliwościach.
78 Summary: Routing daemon for IPv6
79 Summary(pl.UTF-8): Demon dynamicznego routingu IPv6
80 Group: Networking/Daemons
81 Requires(post,preun): /sbin/chkconfig
82 Requires: %{name} = %{version}-%{release}
85 Provides: routingdaemon
89 Obsoletes: zebra-guile
92 The BIRD project is an attempt to create a routing daemon running on
93 UNIX-like systems (but not necessarily limited to them) with full
94 support of all modern routing protocols, easy to use configuration
95 interface and powerful route filtering language.
97 %description ipv6 -l pl.UTF-8
98 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
99 pracującego na systemach UNIX z pełnym wsparciem dla nowoczesnych
100 protokołów routingu, łatwym interfejsem konfiguracji i językiem
101 filtrów o dużych możliwościach.
109 cp -f /usr/share/automake/config.* tools
133 rm -rf $RPM_BUILD_ROOT
134 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig,%{_sbindir}}
136 install birdc $RPM_BUILD_ROOT%{_sbindir}
139 install bird $RPM_BUILD_ROOT%{_sbindir}
140 install doc/bird.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
141 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-ipv4
142 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-ipv4
146 install bird-6 $RPM_BUILD_ROOT%{_sbindir}
147 cat <<EOF > $RPM_BUILD_ROOT%{_sbindir}/birdc-6
149 exec %{_sbindir}/birdc -s /var/run/bird-6.ctl
151 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}-ipv6
152 install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/%{name}-ipv6
156 rm -rf $RPM_BUILD_ROOT
159 /sbin/chkconfig --add %{name}-ipv4
160 %service %{name}-ipv4 restart "routing daemon"
163 if [ "$1" = "0" ]; then
164 %service %{name}-ipv4 stop
165 /sbin/chkconfig --del %{name}-ipv4
169 /sbin/chkconfig --add %{name}-ipv6
170 %service %{name}-ipv6 restart "routing daemon"
173 if [ "$1" = "0" ]; then
174 %service %{name}-ipv6 stop
175 /sbin/chkconfig --del %{name}-ipv6
179 %defattr(644,root,root,755)
180 %doc doc/*.html TODO README
181 %attr(755,root,root) %{_sbindir}/birdc
185 %defattr(644,root,root,755)
186 %attr(755,root,root) %{_sbindir}/bird
187 %attr(754,root,root) /etc/rc.d/init.d/bird-ipv4
188 %attr(754,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bird-ipv4
189 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bird.conf
194 %defattr(644,root,root,755)
195 %attr(755,root,root) %{_sbindir}/bird-6
196 %attr(755,root,root) %{_sbindir}/birdc-6
197 %attr(754,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/bird-ipv6
198 %attr(754,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/rc.d/init.d/bird-ipv6
199 #%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/bird-6.conf