Revision 6721e286 misc/bird.spec

View differences:

misc/bird.spec
1 1
Summary: BIRD Internet Routing Daemon
2 2
Name: bird
3
Version: 1.0.5
3
Version: 1.0.8
4 4
Release: 1
5 5
Copyright: GPL
6 6
Group: Networking/Daemons
7 7
Source: ftp://bird.network.cz/pub/bird/bird-%{version}.tar.gz
8 8
Source1: bird.init
9
Source2: birdc6
9 10
Buildroot: /var/tmp/bird-root
10 11
Url: http://bird.network.cz
11 12
Prereq: /sbin/chkconfig
......
18 19
%setup -n bird-%{version}
19 20

  
20 21
%build
21
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --enable-ipv6
22
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-ipv6
22 23
make
23 24
mv bird bird6
24
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run
25
make clean
26
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
25 27
make
26 28

  
27 29

  
28 30
%install
29 31
rm -rf $RPM_BUILD_ROOT/*
30
make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var/run
32
make install prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc localstatedir=$RPM_BUILD_ROOT/var
31 33
install bird6 $RPM_BUILD_ROOT/usr/sbin
32 34

  
33 35
cd $RPM_BUILD_ROOT
34 36
install -d etc/rc.d/init.d
35 37
install $RPM_SOURCE_DIR/bird.init etc/rc.d/init.d/bird
36
install $RPM_SOURCE_DIR/birdc6 usr/bin/
38
install $RPM_SOURCE_DIR/birdc6 usr/sbin/birdc6
37 39

  
38 40
%post
39 41
/sbin/ldconfig
......
50 52
%attr(755,root,root) /usr/sbin/birdc
51 53
%attr(755,root,root) /usr/sbin/birdc6
52 54
%attr(755,root,root) /etc/rc.d/init.d/bird
53
%config /etc/bird.conf

Also available in: Unified diff