]> git.pld-linux.org Git - packages/bird.git/blob - bird.spec
- updated to 1.0.8 rel 0.1 (untested)
[packages/bird.git] / bird.spec
1 Summary:        Routing daemon
2 Summary(pl):    Demon dynamicznego routingu
3 Name:           bird
4 Version:        1.0.8
5 Release:        0.1
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        ftp://bird.network.cz/pub/bird/%{name}-%{version}.tar.gz
9 # Source0-md5:  8ea164c83a2bbff00f2e3826a8490b4f
10 Source1:        ftp://bird.network.cz/pub/bird/%{name}-doc-%{version}.tar.gz
11 # Source1-md5:  3151e8a9f08d4155cf4c160f3238ad96
12 Source2:        %{name}.init
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
18 PreReq:         rc-scripts
19 Requires(post,preun):   /sbin/chkconfig
20 Provides:       routingdaemon
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 Obsoletes:      gated
23 Obsoletes:      mrt
24 Obsoletes:      zebra
25 Obsoletes:      zebra-guile
26
27 %description
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.
32
33 %description -l pl
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.
38
39 %prep
40 %setup -q -a1
41 %patch0 -p1
42 %patch1 -p1
43
44 %build
45 cp -f /usr/share/automake/config.* tools
46 %configure2_13 \
47         --disable-memcheck \
48         --enable-client \
49         --enable-ipv6
50 %{__make}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sbindir}}
55
56 install bird $RPM_BUILD_ROOT%{_sbindir}
57 install birdc $RPM_BUILD_ROOT%{_sbindir}
58
59 install doc/bird.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
60 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %post
66 /sbin/chkconfig --add %{name} >&2
67
68 if [ -f /var/lock/subsys/%{name} ]; then
69         /etc/rc.d/init.d/%{name} restart >&2
70 else
71         echo "Run '/etc/rc.d/init.d/%{name} start' to start routing deamon." >&2
72 fi
73
74 %preun
75 if [ "$1" = "0" ]; then
76         if [ -f /var/lock/subsys/%{name} ]; then
77                 /etc/rc.d/init.d/%{name} stop >&2
78         fi
79         /sbin/chkconfig --del %{name} >&2
80 fi
81
82 %files
83 %defattr(644,root,root,755)
84 %doc doc/*.html %{name}-doc-*/doc/*.ps TODO README
85
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
This page took 0.038555 seconds and 4 git commands to generate.