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