1Name: @PACKAGE@ 2Version: @VERSION@ 3Release: 1 4Copyright: GPL 5Group: System Environment/Base 6Url: http://bridge.sourceforge.net 7Summary: Utilities for configuring the linux ethernet bridge. 8Buildroot: %{_tmppath}/%{name}-%{version} 9Source: %{name}-%{version}.tar.gz 10 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 36%setup -q 37 38%build 39CFLAGS="${RPM_OPT_FLAGS}" ./configure --prefix=/usr --mandir=%{_mandir} 40make 41 42%install 43rm -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} 54 55%clean 56[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 57 58%files 59%defattr (-,root,root) 60%doc AUTHORS COPYING doc/FAQ doc/HOWTO doc/RPM-GPG-KEY 61%{_sbindir}/brctl 62%{_mandir}/man8/brctl.8.gz 63 64%files -n bridge-utils-devel 65%defattr (-,root,root) 66%{_includedir}/libbridge.h 67%{_libdir}/libbridge.a 68 69%changelog 70* Tue May 25 2004 Stephen Hemminger <shemminger@osdl.org> 71- cleanup to work for 1.0 code 72- add dependency on sysfs 73 74* Wed Nov 07 2001 Matthew Galgoci <mgalgoci@redhat.com> 75- initial cleanup of spec file from net release 76 77