]>
Commit | Line | Data |
---|---|---|
40d088c8 JB |
1 | Summary: Library for controlling team network device |
2 | Summary(pl.UTF-8): Biblioteka do sterowania grupowymi urządzeniami sieciowymi | |
3 | Name: libteam | |
2419f546 | 4 | Version: 1.15 |
40d088c8 JB |
5 | Release: 1 |
6 | License: LGPL v2.1+ | |
7 | Group: Libraries | |
8 | #Source0Download: http://libteam.org/ | |
9 | Source0: http://libteam.org/files/%{name}-%{version}.tar.gz | |
2419f546 JB |
10 | # Source0-md5: 4f563df390b4f11e45c030a9ac38a250 |
11 | Patch0: %{name}-link.patch | |
40d088c8 JB |
12 | URL: http://libteam.org/ |
13 | BuildRequires: autoconf >= 2.50 | |
14 | BuildRequires: automake | |
15 | BuildRequires: dbus-devel | |
16 | BuildRequires: jansson-devel | |
17 | BuildRequires: libdaemon-devel | |
18 | BuildRequires: libnl-devel >= 3.2 | |
19 | BuildRequires: libtool >= 2:2 | |
20 | BuildRequires: pkgconfig | |
21 | BuildRequires: zeromq-devel >= 3.2.0 | |
22 | Requires: libnl >= 3.2 | |
23 | Requires: zeromq >= 3.2.0 | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | The purpose of the Team driver is to provide a mechanism to team | |
28 | multiple NICs (ports) into one logical one (teamdev) at L2 layer. The | |
29 | process is called "channel bonding", "Ethernet bonding", "channel | |
30 | teaming", "link aggregation", etc. This is already implemented in the | |
31 | Linux kernel by the bonding driver. | |
32 | ||
33 | One thing to note is that Team driver project does try to provide the | |
34 | similar functionality as the bonding driver, however architecturally | |
35 | it is quite different from bonding driver. Team driver is modular, | |
36 | userspace driven, very lean and efficient, and it does have some | |
37 | distinct advantages over bonding. The way Team is configured differs | |
38 | dramatically from the way bonding is. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Celem sterownika Team jest dostarczenie mechanizmu do grupowania | |
42 | (team) wielu interfejsów (portów) sieciowych (czyli NIC) w jeden | |
43 | logiczny (teamdev) w warstwie L2. Proces ten jest nazywany | |
44 | "channel bonding", "Ethernet bonding", "channel teaming", "link | |
45 | aggregation" itp. Jest to już zaimplementowane w jądrze Linuksa | |
46 | poprzez sterownik bonding. | |
47 | ||
48 | Należy zauważyć, że projekt sterownika Team próbuje zapewnić | |
49 | podobną funkcjonalność co sterownik bonding, ale architektonicznie | |
50 | różni się od niego. Jest modularny, działa w przestrzeni użytkownika, | |
51 | jest bardzo lekki i wydajny, ma też kilka zalet, których nie ma | |
52 | bonding. Sposób konfiguracji sterownika Team znacząco różni się od | |
53 | konfiguracji sterownika bonding. | |
54 | ||
55 | %package devel | |
56 | Summary: Header files for libteam library | |
57 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libteam | |
58 | Group: Development/Libraries | |
59 | Requires: %{name} = %{version}-%{release} | |
60 | Requires: libnl-devel >= 3.2 | |
61 | ||
62 | %description devel | |
63 | Header files for libteam library. | |
64 | ||
65 | %description devel -l pl.UTF-8 | |
66 | Pliki nagłówkowe biblioteki libteam. | |
67 | ||
68 | %package static | |
69 | Summary: Static libteam library | |
70 | Summary(pl.UTF-8): Statyczna biblioteka libteam | |
71 | Group: Development/Libraries | |
72 | Requires: %{name}-devel = %{version}-%{release} | |
73 | ||
74 | %description static | |
75 | Static libteam library. | |
76 | ||
77 | %description static -l pl.UTF-8 | |
78 | Statyczna biblioteka libteam. | |
79 | ||
80 | %prep | |
81 | %setup -q | |
82 | %patch0 -p1 | |
40d088c8 JB |
83 | |
84 | %build | |
85 | %{__libtoolize} | |
86 | %{__aclocal} -I m4 | |
87 | %{__autoconf} | |
88 | %{__autoheader} | |
89 | %{__automake} | |
90 | %configure \ | |
91 | --disable-silent-rules | |
92 | ||
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %{__make} install \ | |
99 | DESTDIR=$RPM_BUILD_ROOT | |
100 | ||
101 | # obsoleted by pkg-config | |
102 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
103 | ||
104 | %clean | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %post -p /sbin/ldconfig | |
108 | %postun -p /sbin/ldconfig | |
109 | ||
110 | %files | |
111 | %defattr(644,root,root,755) | |
112 | %doc README | |
113 | %attr(755,root,root) %{_bindir}/bond2team | |
114 | %attr(755,root,root) %{_bindir}/teamd | |
115 | %attr(755,root,root) %{_bindir}/teamdctl | |
116 | %attr(755,root,root) %{_bindir}/teamnl | |
117 | %attr(755,root,root) %{_libdir}/libteam.so.*.*.* | |
118 | %attr(755,root,root) %ghost %{_libdir}/libteam.so.5 | |
119 | %attr(755,root,root) %{_libdir}/libteamdctl.so.*.*.* | |
120 | %attr(755,root,root) %ghost %{_libdir}/libteamdctl.so.0 | |
121 | %{_mandir}/man1/bond2team.1* | |
122 | %{_mandir}/man5/teamd.conf.5* | |
123 | %{_mandir}/man8/teamd.8* | |
124 | %{_mandir}/man8/teamdctl.8* | |
125 | %{_mandir}/man8/teamnl.8* | |
126 | ||
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
129 | %attr(755,root,root) %{_libdir}/libteam.so | |
130 | %attr(755,root,root) %{_libdir}/libteamdctl.so | |
131 | %{_includedir}/team.h | |
132 | %{_includedir}/teamdctl.h | |
133 | %{_pkgconfigdir}/libteam.pc | |
134 | %{_pkgconfigdir}/libteamdctl.pc | |
135 | ||
136 | %files static | |
137 | %defattr(644,root,root,755) | |
138 | %{_libdir}/libteam.a | |
139 | %{_libdir}/libteamdctl.a |