]> git.pld-linux.org Git - packages/bird.git/blob - bird.spec
- updated to 1.0.6
[packages/bird.git] / bird.spec
1 Summary:        Routing daemon
2 Summary(pl):    Demon dynamicznego routingu
3 Name:           bird
4 Version:        1.0.6
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        ftp://bird.network.cz/pub/bird/%{name}-%{version}.tar.gz
9 # Source0-md5   e21533bf0223c3a1fd2b984a5952fd45
10 Source1:        ftp://bird.network.cz/pub/bird/%{name}-doc-%{version}.tar.gz
11 # Source1-md5   a8fb98281a918a725ded174c3f9655a3
12 Source2:        %{name}.init
13 URL:            http://bird.network.cz/
14 BuildRequires:  readline-devel >= 4.2
15 Prereq:         /sbin/chkconfig
16 Provides:       routingdaemon
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Obsoletes:      gated
19 Obsoletes:      mrt
20 Obsoletes:      zebra
21 Obsoletes:      zebra-guile
22
23 %description
24 The BIRD project is an attempt to create a routing daemon running on
25 UNIX-like systems (but not necessarily limited to them) with full
26 support of all modern routing protocols, easy to use configuration
27 interface and powerful route filtering language.
28
29 %description -l pl
30 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
31 pracuj±cego na systemach UNIX z pe³nym wsparciem dla nowoczesnych
32 protoko³ów routingu, ³atwym interfejsem konfiguracji i jêzykiem
33 filtrów o du¿ych mo¿liwo¶ciach.
34
35 %prep
36 %setup -q -a 1
37
38 %build
39 %configure2_13 \
40         --disable-memcheck \
41         --enable-client \
42         --enable-ipv6
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sbindir}}
48
49 install bird $RPM_BUILD_ROOT%{_sbindir}
50 install birdc $RPM_BUILD_ROOT%{_sbindir}
51
52 install doc/bird.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
53 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post
59 /sbin/chkconfig --add %{name} >&2
60
61 if [ -f /var/lock/subsys/%{name} ]; then
62         /etc/rc.d/init.d/%{name} restart >&2
63 else
64         echo "Run '/etc/rc.d/init.d/%{name} start' to start routing deamon." >&2
65 fi
66
67 %preun
68 if [ "$1" = "0" ]; then
69         if [ -f /var/lock/subsys/%{name} ]; then
70                 /etc/rc.d/init.d/%{name} stop >&2
71         fi
72         /sbin/chkconfig --del %{name} >&2
73 fi
74
75 %files
76 %defattr(644,root,root,755)
77 %doc doc/*.html %{name}-doc-*/doc/*.ps TODO README
78
79 %attr(755,root,root) %{_sbindir}/*
80 %attr(754,root,root) /etc/rc.d/init.d/*
81 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf
This page took 0.090166 seconds and 4 git commands to generate.