]> git.pld-linux.org Git - packages/bird.git/blob - bird.spec
- use macros in %{pre,post}{,un}
[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:        2
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 Patch0:         %{name}-time.h.patch
14 URL:            http://bird.network.cz/
15 BuildRequires:  readline-devel >= 4.2
16 Provides:       routingdaemon
17 Prereq:         rc-scripts
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Obsoletes:      gated
20 Obsoletes:      mtr
21 Obsoletes:      zebra
22 Obsoletes:      zebra-guile
23
24 %description
25 The BIRD project is an attempt to create a routing daemon running on
26 UNIX-like systems (but not necessarily limited to them) with full
27 support of all modern routing protocols, easy to use configuration
28 interface and powerful route filtering language.
29
30 %description -l pl
31 Projekt BIRD ma na celu utworzenie daemona dynamicznego routingu
32 pracuj±cego na systemach UNIX z pe³nym wsparciem dla nowoczesnych
33 protoko³ów routingu, ³atwym interfejsem konfiguracji i jêzykiem
34 filtrów o du¿ych mo¿liwo¶ciach.
35
36 %prep
37 %setup -q -a 1
38 %patch -p1
39
40 %build
41 %configure \
42         --disable-memcheck \
43         --enable-client \
44         --enable-ipv6
45 %{__make}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{_sysconfdir}/rc.d/init.d,%{_sbindir}}
50
51 install bird $RPM_BUILD_ROOT%{_sbindir}
52 install birdc $RPM_BUILD_ROOT%{_sbindir}
53
54 install doc/bird.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
55 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
56
57 gzip -9nf %{name}-doc-%{version}/doc/*.ps TODO README
58
59 %post
60 DESC="routing daemon"; %chkconfig_post
61     
62 %preun
63 %chkconfig_preun
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc doc/*.html %{name}-doc-%{version}/doc/*.ps.gz *.gz
71
72 %attr(755,root,root) %{_sbindir}/*
73 %attr(754,root,root) /etc/rc.d/init.d/*
74 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/*.conf
This page took 0.072959 seconds and 4 git commands to generate.