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