]> git.pld-linux.org Git - packages/bird.git/blob - bird.spec
- rel.1., fixed obsoletes
[packages/bird.git] / bird.spec
1 Summary:        Routing daemon
2 Summary(pl):    Demon dynamicznego routingu
3 Name:           bird
4 Version:        1.0.5
5 Release:        1
6 License:        GPL
7 Group:          Networking/Daemons
8 Source0:        ftp://bird.network.cz/pub/bird/%{name}-%{version}.tar.gz
9 Source1:        ftp://bird.network.cz/pub/bird/%{name}-doc-%{version}.tar.gz
10 Source2:        %{name}.init
11 Patch0:         %{name}-stdio.patch
12 URL:            http://bird.network.cz/
13 BuildRequires:  readline-devel >= 4.2
14 Provides:       routingdaemon
15 Prereq:         rc-scripts
16 Prereq:         /sbin/chkconfig
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 %patch0 -p1
38
39 %build
40 %configure2_13 \
41         --disable-memcheck \
42         --enable-client \
43         --enable-ipv6
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/rc.d/init.d,%{_sbindir}}
49
50 install bird $RPM_BUILD_ROOT%{_sbindir}
51 install birdc $RPM_BUILD_ROOT%{_sbindir}
52
53 install doc/bird.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
54 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
55
56 gzip -9nf %{name}-doc-*/doc/*.ps TODO README
57
58 %clean
59 rm -rf $RPM_BUILD_ROOT
60
61 %post
62 /sbin/chkconfig --add %{name} >&2
63
64 if [ -f /var/lock/subsys/%{name} ]; then
65         /etc/rc.d/init.d/%{name} restart >&2
66 else
67         echo "Run '/etc/rc.d/init.d/%{name} start' to start routing deamon." >&2
68 fi
69
70 %preun
71 if [ "$1" = "0" ]; then
72         if [ -f /var/lock/subsys/%{name} ]; then
73                 /etc/rc.d/init.d/%{name} stop >&2
74         fi
75         /sbin/chkconfig --del %{name} >&2
76 fi
77
78 %files
79 %defattr(644,root,root,755)
80 %doc doc/*.html %{name}-doc-*/doc/*.ps.gz *.gz
81
82 %attr(755,root,root) %{_sbindir}/*
83 %attr(754,root,root) /etc/rc.d/init.d/*
84 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf
This page took 0.070844 seconds and 4 git commands to generate.