Logoj0ke.net Open Build Service > Projects > server:routing > bird > bird.spec
Sign Up | Log In

File bird.spec of Package bird (Revision 793de456a34837fcd748fe1f3fd0b0f9)

Currently displaying revision 793de456a34837fcd748fe1f3fd0b0f9, show latest

x
 
1
#!BuildIgnore:  post-build-checks
2
Summary:    BIRD Internet Routing Daemon
3
Name:       bird
4
Version:    1.4.1
5
Release:    1
6
License:    GPL
7
Group:      Networking/Daemons
8
Source:     ftp://bird.network.cz/pub/bird/bird-%{version}.tar.bz2
9
Source1:    bird.init
10
Source2:    birdc6
11
Source3:    bird.init.suse
12
Buildroot:  %{_tmppath}/%{name}-%{version}
13
Url:        http://bird.network.cz
14
PreReq:     /sbin/chkconfig
15
16
BuildRequires:  readline-devel flex bison
17
18
%description
19
BIRD is dynamic routing daemon supporting IPv4 and IPv6 versions of routing
20
protocols BGP, RIP and OSPF.
21
22
%prep
23
%setup -n bird-%{version}
24
25
%build
26
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-ipv6
27
make
28
mv bird bird6
29
make clean
30
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
31
make
32
33
34
%install
35
rm -rf $RPM_BUILD_ROOT/*
36
make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var
37
install -s bird6 $RPM_BUILD_ROOT/usr/sbin
38
39
cd $RPM_BUILD_ROOT
40
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
41
install -d etc/rc.d/init.d
42
install $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird
43
%endif
44
%if 0%{?suse_version} || 0%{?sles_version}
45
install -d etc/init.d
46
install $RPM_SOURCE_DIR/bird.init.suse etc/init.d/bird
47
%endif
48
install $RPM_SOURCE_DIR/birdc6 usr/sbin/birdc6
49
50
%post
51
/sbin/ldconfig
52
/sbin/chkconfig --add bird
53
54
%preun
55
%stop_on_removal
56
if [ $1 -eq 0 ]; then
57
    /sbin/service bird stop &> /dev/null || :
58
    /sbin/chkconfig --del bird
59
fi
60
61
%postun
62
%insserv_cleanup
63
64
%files
65
%defattr(-,root,root)
66
%doc doc/*.html
67
%doc NEWS README TODO
68
%config(noreplace) %attr(644,root,root) /etc/bird.conf
69
%attr(755,root,root) /usr/sbin/bird
70
%attr(755,root,root) /usr/sbin/bird6
71
%attr(755,root,root) /usr/sbin/birdc
72
%attr(755,root,root) /usr/sbin/birdc6
73
%attr(755,root,root) /usr/sbin/birdcl
74
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
75
%attr(755,root,root) /etc/rc.d/init.d/bird
76
%endif
77
%if 0%{?suse_version} || 0%{?sles_version}
78
%attr(755,root,root) /etc/init.d/bird
79
%endif
80
81
%changelog
82
* Wed Aug 04 2010 Carsten Schoene <cs@linux-administrator.com> - 1.2.4-1
83
- update to release 1.2.4
84
85
* Tue Jun 01 2010 Carsten Schoene <cs@linux-administrator.com> - 1.2.3-1
86
- update to release 1.2.3
87
88
* Sat Apr 10 2010 Carsten Schoene <cs@linux-administrator.com> - 1.2.2-1
89
- update to release 1.2.2
90
91
* Thu Feb 11 2010 Carsten Schoene <cs@linux-administrator.com> - 1.2.1-1
92
- update to release 1.2.1
93
94
* Thu Jan 14 2010 Carsten Schoene <cs@linux-administrator.com> - 1.2.0-1
95
- update to release 1.2.0
96
97
* Sun Dec 20 2009 Carsten Schoene <cs@linux-administrator.com> - 1.1.7-1
98
- update to release 1.1.7
99
100
* Fri Nov 20 2009 Carsten Schoene <cs@linux-administrator.com> - 1.1.6-1
101
- update to release 1.1.6
102
103
* Mon Nov 02 2009 Carsten Schoene <cs@linux-administrator.com> - 1.1.5-1
104
- update to release 1.1.5
105
106
* Sat Oct 03 2009 Carsten Schoene <cs@linux-administrator.com> - 1.1.4-1
107
- update to release 1.1.4
108
109
* Fri Sep 11 2009 Carsten Schoene <cs@linux-administrator.com> - 1.1.3-1
110
- update to release 1.1.3
111
112
* Mon Aug 17 2009 Carsten Schoene <cs@linux-administrator.com> - 1.1.1-1
113
- update to release 1.1.1
114
115
* Sun Jul 05 2009 Carsten Schoene <cs@linux-administrator.com> - 1.1.0-1
116
- build release 1.1.0
117