1 Summary: Library for controlling team network device
2 Summary(pl.UTF-8): Biblioteka do sterowania grupowymi urządzeniami sieciowymi
8 #Source0Download: http://libteam.org/
9 Source0: http://libteam.org/files/%{name}-%{version}.tar.gz
10 # Source0-md5: d37f1c0fd6d236869ff0d39df9e1f4b4
11 Source1: teamd.sysconfig
12 Source2: teamd-lvl1-service-generator
13 Source3: teamd-lvl2-service-generator
14 Source4: teamd@.service
15 Source5: teamd-lvl1.target
16 Source6: teamd-lvl2.target
17 # You might not be able to shut down your system without this:
18 # https://lists.fedorahosted.org/archives/list/libteam@lists.fedorahosted.org/thread/QYCLFVANHB47URKOST5HFT5EVWPRHGVQ/
19 Source7: teamd-shutdown-workaround.service
20 Patch0: %{name}-link.patch
21 URL: http://libteam.org/
22 BuildRequires: autoconf >= 2.50
23 BuildRequires: automake
24 BuildRequires: dbus-devel
25 BuildRequires: jansson-devel
26 # if non-root --with-group or --with-user
27 #BuildRequires: libcap-devel
28 BuildRequires: libdaemon-devel
29 BuildRequires: libnl-devel >= 3.2
30 BuildRequires: libtool >= 2:2
31 BuildRequires: pkgconfig
32 BuildRequires: zeromq-devel >= 3.2.0
33 Requires: libnl >= 3.2
34 Requires: zeromq >= 3.2.0
35 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 The purpose of the Team driver is to provide a mechanism to team
39 multiple NICs (ports) into one logical one (teamdev) at L2 layer. The
40 process is called "channel bonding", "Ethernet bonding", "channel
41 teaming", "link aggregation", etc. This is already implemented in the
42 Linux kernel by the bonding driver.
44 One thing to note is that Team driver project does try to provide the
45 similar functionality as the bonding driver, however architecturally
46 it is quite different from bonding driver. Team driver is modular,
47 userspace driven, very lean and efficient, and it does have some
48 distinct advantages over bonding. The way Team is configured differs
49 dramatically from the way bonding is.
51 %description -l pl.UTF-8
52 Celem sterownika Team jest dostarczenie mechanizmu do grupowania
53 (team) wielu interfejsów (portów) sieciowych (czyli NIC) w jeden
54 logiczny (teamdev) w warstwie L2. Proces ten jest nazywany
55 "channel bonding", "Ethernet bonding", "channel teaming", "link
56 aggregation" itp. Jest to już zaimplementowane w jądrze Linuksa
57 poprzez sterownik bonding.
59 Należy zauważyć, że projekt sterownika Team próbuje zapewnić
60 podobną funkcjonalność co sterownik bonding, ale architektonicznie
61 różni się od niego. Jest modularny, działa w przestrzeni użytkownika,
62 jest bardzo lekki i wydajny, ma też kilka zalet, których nie ma
63 bonding. Sposób konfiguracji sterownika Team znacząco różni się od
64 konfiguracji sterownika bonding.
67 Summary: Header files for libteam library
68 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libteam
69 Group: Development/Libraries
70 Requires: %{name} = %{version}-%{release}
71 Requires: libnl-devel >= 3.2
74 Header files for libteam library.
76 %description devel -l pl.UTF-8
77 Pliki nagłówkowe biblioteki libteam.
80 Summary: Static libteam library
81 Summary(pl.UTF-8): Statyczna biblioteka libteam
82 Group: Development/Libraries
83 Requires: %{name}-devel = %{version}-%{release}
86 Static libteam library.
88 %description static -l pl.UTF-8
89 Statyczna biblioteka libteam.
91 %package -n libteamdctl
92 Summary: Teamd daemon control library
93 Summary(pl.UTF-8): Biblioteka sterująca demonem teamd
95 Requires: zeromq >= 3.2.0
96 Conflicts: libteam < 1.26-1
97 Conflicts: teamd < 1.26-3
99 %description -n libteamdctl
100 Teamd daemon control library.
102 %description -n libteamdctl -l pl.UTF-8
103 Biblioteka sterująca demonem teamd.
105 %package -n libteamdctl-devel
106 Summary: Header file for libteamdctl library
107 Summary(pl.UTF-8): Plik nagłówkowy biblioteki libteamdctl
108 Group: Development/Libraries
109 Requires: libteamdctl = %{version}-%{release}
111 Requires: libdaemon-devel
112 Requires: systemd-devel
113 Requires: zeromq-devel >= 3.2.0
115 %description -n libteamdctl-devel
116 Header file for libteamdctl library.
118 %description -n libteamdctl-devel -l pl.UTF-8
119 Plik nagłówkowy biblioteki libteamdctl.
121 %package -n libteamdctl-static
122 Summary: Static libteamdctl library
123 Summary(pl.UTF-8): Statyczna biblioteka libteamdctl
124 Group: Development/Libraries
125 Requires: libteamdctl-devel = %{version}-%{release}
127 %description -n libteamdctl-static
128 Static libteamdctl library.
130 %description -n libteamdctl-static -l pl.UTF-8
131 Statyczna biblioteka libteamdctl.
134 Summary: Team network device control daemon
135 Summary(pl.UTF-8): Demon sterujący grupowymi urządzeniami sieciowymi
136 Group: Networking/Admin
137 Requires: %{name} = %{version}-%{release}
138 Requires: libteamdctl = %{version}-%{release}
140 %description -n teamd
141 The teamd package contains team network device control daemon.
143 %description -n teamd -l pl.UTF-8
144 Ten pakiet zawiera demona sterującego grupowymi urządzeniami
158 --disable-silent-rules
163 rm -rf $RPM_BUILD_ROOT
164 install -d $RPM_BUILD_ROOT/etc/dbus-1/system.d \
165 $RPM_BUILD_ROOT/etc/sysconfig \
166 $RPM_BUILD_ROOT/lib/systemd/{system-generators,system}
169 DESTDIR=$RPM_BUILD_ROOT
171 install teamd/dbus/teamd.conf $RPM_BUILD_ROOT/etc/dbus-1/system.d
172 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/teamd
173 install %{SOURCE2} $RPM_BUILD_ROOT/lib/systemd/system-generators
174 install %{SOURCE3} $RPM_BUILD_ROOT/lib/systemd/system-generators
175 install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}
176 install %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}
177 install %{SOURCE6} $RPM_BUILD_ROOT%{systemdunitdir}
178 install %{SOURCE7} $RPM_BUILD_ROOT%{systemdunitdir}
180 # obsoleted by pkg-config
181 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
184 rm -rf $RPM_BUILD_ROOT
186 %post -p /sbin/ldconfig
187 %postun -p /sbin/ldconfig
189 %post -n libteamdctl -p /sbin/ldconfig
190 %postun -n libteamdctl -p /sbin/ldconfig
193 export NORESTART="yes"
194 %systemd_post teamd-lvl1.target teamd-lvl2.target
197 %systemd_preun teamd-lvl1.target teamd-lvl2.target
203 %defattr(644,root,root,755)
204 %attr(755,root,root) %{_bindir}/teamnl
205 %attr(755,root,root) %{_libdir}/libteam.so.*.*.*
206 %attr(755,root,root) %ghost %{_libdir}/libteam.so.5
207 %{_mandir}/man8/teamnl.8*
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_libdir}/libteam.so
212 %{_includedir}/team.h
213 %{_pkgconfigdir}/libteam.pc
216 %defattr(644,root,root,755)
219 %files -n libteamdctl
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/libteamdctl.so.*.*.*
222 %attr(755,root,root) %ghost %{_libdir}/libteamdctl.so.0
224 %files -n libteamdctl-devel
225 %defattr(644,root,root,755)
226 %attr(755,root,root) %{_libdir}/libteamdctl.so
227 %{_includedir}/teamdctl.h
228 %{_pkgconfigdir}/libteamdctl.pc
230 %files -n libteamdctl-static
231 %defattr(644,root,root,755)
232 %{_libdir}/libteamdctl.a
235 %defattr(644,root,root,755)
236 %doc README teamd/example_configs
237 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/teamd
238 /etc/dbus-1/system.d/teamd.conf
239 %{systemdunitdir}/teamd@.service
240 %{systemdunitdir}/teamd-lvl?.target
241 %{systemdunitdir}/teamd-shutdown-workaround.service
242 %attr(755,root,root) %{_bindir}/bond2team
243 %attr(755,root,root) %{_bindir}/teamd
244 %attr(755,root,root) %{_bindir}/teamdctl
245 %attr(755,root,root) /lib/systemd/system-generators/teamd-lvl?-service-generator
246 %{_mandir}/man1/bond2team.1*
247 %{_mandir}/man5/teamd.conf.5*
248 %{_mandir}/man8/teamd.8*
249 %{_mandir}/man8/teamdctl.8*