blob: 32d0132e2f1a2ff0a3a98a139daa4d691d5d93ab [file] [log] [blame]
shemminger9c6f7c32004-05-27 16:50:56 +00001Name: @PACKAGE@
2Version: @VERSION@
buytenh47530402002-01-06 11:50:28 +00003Release: 1
buytenh38837a82001-06-22 19:59:02 +00004Copyright: GPL
buytenh0661baa2002-01-06 11:41:27 +00005Group: System Environment/Base
shemmingerdb6f5c32004-05-25 18:36:27 +00006Url: http://bridge.sourceforge.net
shemminger5c76d5a2004-05-11 21:22:28 +00007Summary: Utilities for configuring the linux ethernet bridge.
8Buildroot: %{_tmppath}/%{name}-%{version}
9Source: %{name}-%{version}.tar.gz
buytenh38837a82001-06-22 19:59:02 +000010
11%description
12This package contains utilities for configuring the linux ethernet
13bridge. The linux ethernet bridge can be used for connecting multiple
14ethernet devices together. The connecting is fully transparent: hosts
15connected to one ethernet device see hosts connected to the other
16ethernet devices directly.
17
18Install bridge-utils if you want to use the linux ethernet bridge.
19
20%package -n bridge-utils-devel
21Summary: Utilities for configuring the linux ethernet bridge.
22Group: Development/Libraries
23
24%description -n bridge-utils-devel
25The bridge-utils-devel package contains the header and object files
26necessary for developing programs which use 'libbridge.a', the
27interface to the linux kernel ethernet bridge. If you are developing
28programs which need to configure the linux ethernet bridge, your
29system needs to have these standard header and object files available
30in order to create the executables.
31
32Install bridge-utils-devel if you are going to develop programs which
33will use the linux ethernet bridge interface library.
34
35%prep
shemminger7e3b3ba2004-05-11 22:13:03 +000036%setup -q
buytenh38837a82001-06-22 19:59:02 +000037
38%build
shemminger1fab1232004-05-11 21:32:22 +000039CFLAGS="${RPM_OPT_FLAGS}" ./configure --prefix=/usr --mandir=%{_mandir}
buytenh38837a82001-06-22 19:59:02 +000040make
41
42%install
shemminger064717a2004-05-11 22:58:13 +000043rm -rf %{buildroot}
44
45mkdir -p %{buildroot}%{_sbindir}
46mkdir -p %{buildroot}%{_includedir}
47mkdir -p %{buildroot}%{_libdir}
48mkdir -p %{buildroot}%{_mandir}/man8
49install -m755 brctl/brctl %{buildroot}%{_sbindir}
50gzip doc/brctl.8
51install -m 644 doc/brctl.8.gz %{buildroot}%{_mandir}/man8
52install -m 644 libbridge/libbridge.h %{buildroot}%{_includedir}
53install -m 644 libbridge/libbridge.a %{buildroot}%{_libdir}
buytenh38837a82001-06-22 19:59:02 +000054
55%clean
buytenh0661baa2002-01-06 11:41:27 +000056[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
buytenh38837a82001-06-22 19:59:02 +000057
58%files
59%defattr (-,root,root)
buytenh0661baa2002-01-06 11:41:27 +000060%doc AUTHORS COPYING doc/FAQ doc/HOWTO doc/RPM-GPG-KEY
61%{_sbindir}/brctl
62%{_mandir}/man8/brctl.8.gz
buytenh38837a82001-06-22 19:59:02 +000063
64%files -n bridge-utils-devel
65%defattr (-,root,root)
buytenh0661baa2002-01-06 11:41:27 +000066%{_includedir}/libbridge.h
67%{_libdir}/libbridge.a
68
69%changelog
shemmingera5916bc2004-05-25 18:47:17 +000070* Tue May 25 2004 Stephen Hemminger <shemminger@osdl.org>
shemmingerdb6f5c32004-05-25 18:36:27 +000071- cleanup to work for 1.0 code
72- add dependency on sysfs
73
buytenh0661baa2002-01-06 11:41:27 +000074* Wed Nov 07 2001 Matthew Galgoci <mgalgoci@redhat.com>
75- initial cleanup of spec file from net release
76