File bird.spec of Package bird (Revision 5)
Currently displaying revision 5, show latest
x
1
Summary: BIRD Internet Routing Daemon
2
Name: bird
3
Version: 1.0.13
4
Release: 1
5
License: GPL
6
Group: Networking/Daemons
7
Source: ftp://bird.network.cz/pub/bird/bird-%{version}.tar.gz
8
Source1: bird.init
9
Source2: birdc6
10
Buildroot: %{_tmppath}/%{name}-%{version}
11
Url: http://bird.network.cz
12
PreReq: %insserv_prereq
13
14
15
BuildRequires: readline-devel flex bison
16
17
%description
18
BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing
19
protocols BGP, RIP and OSPF.
20
21
%prep
22
%setup -n bird-%{version}
23
24
%build
25
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-ipv6
26
make
27
mv bird bird6
28
make clean
29
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
30
make
31
32
33
%install
34
rm -rf $RPM_BUILD_ROOT/*
35
make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var
36
install bird6 $RPM_BUILD_ROOT/usr/sbin
37
38
cd $RPM_BUILD_ROOT
39
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
40
install -d etc/rc.d/init.d
41
install $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird
42
%endif
43
%if 0%{?suse_version}
44
install -d etc/init.d
45
install $RPM_SOURCE_DIR/bird.init etc/init.d/bird
46
%endif
47
install $RPM_SOURCE_DIR/birdc6 usr/sbin/birdc6
48
49
%post
50
/sbin/ldconfig
51
%if 0%{?suse_version}
52
%{fillup_and_insserv -f bird}
53
%endif
54
55
%postun
56
%if 0%{?suse_version
57
%insserv_cleanup
58
%endif
59
60
%files
61
%defattr(-,root,root)
62
%doc doc/*.html
63
%doc NEWS README TODO
64
%attr(644,root,root) /etc/bird.conf
65
%attr(755,root,root) /usr/sbin/bird
66
%attr(755,root,root) /usr/sbin/bird6
67
%attr(755,root,root) /usr/sbin/birdc
68
%attr(755,root,root) /usr/sbin/birdc6
69
%attr(755,root,root) /etc/rc.d/init.d/bird
70