]>
Commit | Line | Data |
---|---|---|
5d27855d | 1 | Summary: Utilities for configuring the Linux ethernet bridge |
e1366da4 | 2 | Summary(pl.UTF-8): Narzędzia przeznaczone do konfiguracji linuksowego ethernet bridge |
2e48ab2c | 3 | Name: bridge-utils |
62a2ecdb JB |
4 | Version: 1.6 |
5 | Release: 1 | |
ce8e8858 | 6 | License: GPL v2+ |
2e48ab2c | 7 | Group: Networking/Admin |
62a2ecdb JB |
8 | Source0: https://www.kernel.org/pub/linux/utils/net/bridge-utils/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 541ae1c50cc268056693608920e6c908 | |
826b1b83 MK |
10 | Patch0: debian.patch |
11 | Patch1: man.patch | |
62a2ecdb | 12 | Patch2: build_fix.patch |
826b1b83 | 13 | URL: http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge |
8a30c702 JB |
14 | BuildRequires: autoconf |
15 | BuildRequires: automake | |
5f019a72 | 16 | BuildRequires: linux-libc-headers >= 7:2.6.7 |
5f019a72 | 17 | BuildRequires: sed >= 4.0 |
62a2ecdb JB |
18 | BuildRequires: tar >= 1:1.22 |
19 | BuildRequires: xz | |
8e467d9d | 20 | Obsoletes: brcfg |
7c3287c9 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
2e48ab2c | 22 | |
9ee409b7 | 23 | %define _sbindir /sbin |
24 | ||
2e48ab2c | 25 | %description |
5d27855d JB |
26 | This package contains utilities for configuring the Linux ethernet |
27 | bridge. The Linux ethernet bridge can be used for connecting multiple | |
a7282dc4 | 28 | ethernet devices together. The connecting is fully transparent: hosts |
29 | connected to one ethernet device see hosts connected to the other | |
30 | ethernet devices directly. | |
2e48ab2c | 31 | |
43a3ef86 JR |
32 | %description -l pl.UTF-8 |
33 | Ten pakiet zawiera narzędzia przeznaczone do konfigurowania | |
7c3287c9 | 34 | linuksowego ethernet bridge (inteligentnego switcha). Linux ethernet |
43a3ef86 JR |
35 | bridge może być użyty do łączenia kilku ethernetowych interfejsów |
36 | sieciowych w jeden. Połączenie jest w pełni przezroczyste; hosty | |
37 | przyłączone po jednej stronie widzą hosty z drugiej strony | |
38 | bezpośrednio. | |
2e48ab2c AM |
39 | |
40 | %package devel | |
26be7a3f | 41 | Summary: Libraries for the linux ethernet bridge programs |
e1366da4 | 42 | Summary(pl.UTF-8): Biblioteki używane do sterowania linuksowym bridge |
9ee409b7 | 43 | Group: Development/Libraries |
2e48ab2c AM |
44 | |
45 | %description devel | |
a7282dc4 | 46 | This package contains the header and object files necessary for |
47 | developing programs which use 'libbridge', the interface to the linux | |
48 | kernel ethernet bridge. | |
2e48ab2c | 49 | |
43a3ef86 JR |
50 | %description devel -l pl.UTF-8 |
51 | Ten pakiet zawiera pliki nagłówkowe i bibliotekę konieczną do rozwoju | |
52 | programów używających libbridge - interfejsu do linuksowego ethernet | |
9ee409b7 | 53 | bridge. |
2e48ab2c AM |
54 | |
55 | %prep | |
ec675456 | 56 | %setup -q |
826b1b83 MK |
57 | %patch0 -p1 |
58 | %patch1 -p1 | |
59 | %patch2 -p1 | |
2e48ab2c AM |
60 | |
61 | %build | |
0a2dd00d | 62 | cp -f /usr/share/automake/{config.*,missing} . |
ff145a7a | 63 | %{__aclocal} |
64 | %{__autoconf} | |
81c7ac63 AM |
65 | %configure \ |
66 | --with-linux-headers=%{_includedir} | |
67 | ||
ec675456 | 68 | %{__make} \ |
81c7ac63 | 69 | CFLAGS="%{rpmcflags} %{rpmcppflags} -Wall" |
2e48ab2c AM |
70 | |
71 | %install | |
72 | rm -rf $RPM_BUILD_ROOT | |
d1861ad3 | 73 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_libdir},%{_includedir}} \ |
9ee409b7 | 74 | $RPM_BUILD_ROOT%{_mandir}/man8 |
2e48ab2c | 75 | |
ec675456 AM |
76 | %{__make} install \ |
77 | DESTDIR=$RPM_BUILD_ROOT | |
8a0f0cd6 | 78 | |
81c7ac63 AM |
79 | install libbridge/libbridge.h $RPM_BUILD_ROOT%{_includedir} |
80 | install libbridge/libbridge.a $RPM_BUILD_ROOT%{_libdir} | |
81 | ||
2e48ab2c AM |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %files | |
86 | %defattr(644,root,root,755) | |
d0ea468e | 87 | %doc AUTHORS ChangeLog THANKS TODO doc/{FAQ,FIREWALL,HOWTO,SMPNOTES,WISHLIST} |
ce8e8858 JB |
88 | %attr(755,root,root) %{_sbindir}/brctl |
89 | %{_mandir}/man8/brctl.8* | |
2e48ab2c AM |
90 | |
91 | %files devel | |
92 | %defattr(644,root,root,755) | |
ce8e8858 JB |
93 | %{_libdir}/libbridge.a |
94 | %{_includedir}/libbridge.h |