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