summaryrefslogtreecommitdiff
path: root/release/src/router/bridge/bridge-utils.spec
blob: 484ceba5c125bda798e063b310598928c9493ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# $Id: bridge-utils.spec,v 1.1.1.4 2003/10/14 08:09:37 sparq Exp $

Summary: Utilities for configuring the linux ethernet bridge.
Name: bridge-utils
Version: 0.9.1
Release: 1
Copyright: GPL
Group: Applications/System
Source0: ftp://openrock.net/bridge/bridge-utils-%{PACKAGE_VERSION}.tar.gz
BuildRoot: /var/tmp/%{name}-root

%description
This package contains utilities for configuring the linux ethernet
bridge. The linux ethernet bridge can be used for connecting multiple
ethernet devices together. The connecting is fully transparent: hosts
connected to one ethernet device see hosts connected to the other
ethernet devices directly.

Install bridge-utils if you want to use the linux ethernet bridge.

%package -n bridge-utils-devel
Summary: Utilities for configuring the linux ethernet bridge.
Group: Development/Libraries

%description -n bridge-utils-devel
The bridge-utils-devel package contains the header and object files
necessary for developing programs which use 'libbridge.a', the
interface to the linux kernel ethernet bridge. If you are developing
programs which need to configure the linux ethernet bridge, your
system needs to have these standard header and object files available
in order to create the executables.

Install bridge-utils-devel if you are going to develop programs which
will use the linux ethernet bridge interface library.

%prep
%setup -n bridge

%build
make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}/sbin
mkdir -p ${RPM_BUILD_ROOT}/usr/include
mkdir -p ${RPM_BUILD_ROOT}/usr/lib
mkdir -p ${RPM_BUILD_ROOT}/usr/man/man8
mkdir -p ${RPM_BUILD_ROOT}/usr/sbin
strip brctl/brctl
cp brctl/brctl ${RPM_BUILD_ROOT}/sbin
cp doc/brctl.8 ${RPM_BUILD_ROOT}/usr/man/man8
cp libbridge/libbridge.h ${RPM_BUILD_ROOT}/usr/include
cp libbridge/libbridge.a ${RPM_BUILD_ROOT}/usr/lib

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr (-,root,root)
%doc AUTHORS COPYING doc/FAQ doc/HOWTO doc/RPM-GPG-KEY
/sbin/brctl
/usr/man/man8/brctl.8

%files -n bridge-utils-devel
%defattr (-,root,root)
/usr/include/libbridge.h
/usr/lib/libbridge.a