shemminger | 9c6f7c3 | 2004-05-27 16:50:56 +0000 | [diff] [blame] | 1 | Name: @PACKAGE@ |
| 2 | Version: @VERSION@ |
buytenh | 4753040 | 2002-01-06 11:50:28 +0000 | [diff] [blame] | 3 | Release: 1 |
buytenh | 38837a8 | 2001-06-22 19:59:02 +0000 | [diff] [blame] | 4 | Copyright: GPL |
buytenh | 0661baa | 2002-01-06 11:41:27 +0000 | [diff] [blame] | 5 | Group: System Environment/Base |
Stephen Hemminger | fd64734 | 2011-03-28 17:52:54 -0700 | [diff] [blame^] | 6 | Url: git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git |
shemminger | 5c76d5a | 2004-05-11 21:22:28 +0000 | [diff] [blame] | 7 | Summary: Utilities for configuring the linux ethernet bridge. |
| 8 | Buildroot: %{_tmppath}/%{name}-%{version} |
| 9 | Source: %{name}-%{version}.tar.gz |
buytenh | 38837a8 | 2001-06-22 19:59:02 +0000 | [diff] [blame] | 10 | |
| 11 | %description |
| 12 | This package contains utilities for configuring the linux ethernet |
| 13 | bridge. The linux ethernet bridge can be used for connecting multiple |
| 14 | ethernet devices together. The connecting is fully transparent: hosts |
| 15 | connected to one ethernet device see hosts connected to the other |
| 16 | ethernet devices directly. |
| 17 | |
| 18 | Install bridge-utils if you want to use the linux ethernet bridge. |
| 19 | |
| 20 | %package -n bridge-utils-devel |
| 21 | Summary: Utilities for configuring the linux ethernet bridge. |
| 22 | Group: Development/Libraries |
| 23 | |
| 24 | %description -n bridge-utils-devel |
| 25 | The bridge-utils-devel package contains the header and object files |
| 26 | necessary for developing programs which use 'libbridge.a', the |
| 27 | interface to the linux kernel ethernet bridge. If you are developing |
| 28 | programs which need to configure the linux ethernet bridge, your |
| 29 | system needs to have these standard header and object files available |
| 30 | in order to create the executables. |
| 31 | |
| 32 | Install bridge-utils-devel if you are going to develop programs which |
| 33 | will use the linux ethernet bridge interface library. |
| 34 | |
| 35 | %prep |
shemminger | 7e3b3ba | 2004-05-11 22:13:03 +0000 | [diff] [blame] | 36 | %setup -q |
buytenh | 38837a8 | 2001-06-22 19:59:02 +0000 | [diff] [blame] | 37 | |
| 38 | %build |
shemminger | 1fab123 | 2004-05-11 21:32:22 +0000 | [diff] [blame] | 39 | CFLAGS="${RPM_OPT_FLAGS}" ./configure --prefix=/usr --mandir=%{_mandir} |
buytenh | 38837a8 | 2001-06-22 19:59:02 +0000 | [diff] [blame] | 40 | make |
| 41 | |
| 42 | %install |
shemminger | 064717a | 2004-05-11 22:58:13 +0000 | [diff] [blame] | 43 | rm -rf %{buildroot} |
| 44 | |
| 45 | mkdir -p %{buildroot}%{_sbindir} |
| 46 | mkdir -p %{buildroot}%{_includedir} |
| 47 | mkdir -p %{buildroot}%{_libdir} |
| 48 | mkdir -p %{buildroot}%{_mandir}/man8 |
| 49 | install -m755 brctl/brctl %{buildroot}%{_sbindir} |
| 50 | gzip doc/brctl.8 |
| 51 | install -m 644 doc/brctl.8.gz %{buildroot}%{_mandir}/man8 |
| 52 | install -m 644 libbridge/libbridge.h %{buildroot}%{_includedir} |
| 53 | install -m 644 libbridge/libbridge.a %{buildroot}%{_libdir} |
buytenh | 38837a8 | 2001-06-22 19:59:02 +0000 | [diff] [blame] | 54 | |
| 55 | %clean |
buytenh | 0661baa | 2002-01-06 11:41:27 +0000 | [diff] [blame] | 56 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
buytenh | 38837a8 | 2001-06-22 19:59:02 +0000 | [diff] [blame] | 57 | |
| 58 | %files |
| 59 | %defattr (-,root,root) |
buytenh | 0661baa | 2002-01-06 11:41:27 +0000 | [diff] [blame] | 60 | %doc AUTHORS COPYING doc/FAQ doc/HOWTO doc/RPM-GPG-KEY |
| 61 | %{_sbindir}/brctl |
| 62 | %{_mandir}/man8/brctl.8.gz |
buytenh | 38837a8 | 2001-06-22 19:59:02 +0000 | [diff] [blame] | 63 | |
| 64 | %files -n bridge-utils-devel |
| 65 | %defattr (-,root,root) |
buytenh | 0661baa | 2002-01-06 11:41:27 +0000 | [diff] [blame] | 66 | %{_includedir}/libbridge.h |
| 67 | %{_libdir}/libbridge.a |
| 68 | |
| 69 | %changelog |
shemminger | a5916bc | 2004-05-25 18:47:17 +0000 | [diff] [blame] | 70 | * Tue May 25 2004 Stephen Hemminger <shemminger@osdl.org> |
shemminger | db6f5c3 | 2004-05-25 18:36:27 +0000 | [diff] [blame] | 71 | - cleanup to work for 1.0 code |
| 72 | - add dependency on sysfs |
| 73 | |
buytenh | 0661baa | 2002-01-06 11:41:27 +0000 | [diff] [blame] | 74 | * Wed Nov 07 2001 Matthew Galgoci <mgalgoci@redhat.com> |
| 75 | - initial cleanup of spec file from net release |
| 76 | |