]> git.pld-linux.org Git - packages/libteam.git/blob - libteam.spec
- updated to 1.32
[packages/libteam.git] / libteam.spec
1 Summary:        Library for controlling team network device
2 Summary(pl.UTF-8):      Biblioteka do sterowania grupowymi urządzeniami sieciowymi
3 Name:           libteam
4 Version:        1.32
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
10 # Source0-md5:  7954f7f74070c6e228b5659302b09e9a
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)
36
37 %description
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.
43
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.
50
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.
58
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.
65
66 %package devel
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
72
73 %description devel
74 Header files for libteam library.
75
76 %description devel -l pl.UTF-8
77 Pliki nagłówkowe biblioteki libteam.
78
79 %package static
80 Summary:        Static libteam library
81 Summary(pl.UTF-8):      Statyczna biblioteka libteam
82 Group:          Development/Libraries
83 Requires:       %{name}-devel = %{version}-%{release}
84
85 %description static
86 Static libteam library.
87
88 %description static -l pl.UTF-8
89 Statyczna biblioteka libteam.
90
91 %package -n libteamdctl
92 Summary:        Teamd daemon control library
93 Summary(pl.UTF-8):      Biblioteka sterująca demonem teamd
94 Group:          Libraries
95 Requires:       zeromq >= 3.2.0
96 Conflicts:      libteam < 1.26-1
97 Conflicts:      teamd < 1.26-3
98
99 %description -n libteamdctl
100 Teamd daemon control library.
101
102 %description -n libteamdctl -l pl.UTF-8
103 Biblioteka sterująca demonem teamd.
104
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}
110 Requires:       dbus-devel
111 Requires:       libdaemon-devel
112 Requires:       systemd-devel
113 Requires:       zeromq-devel >= 3.2.0
114
115 %description -n libteamdctl-devel
116 Header file for libteamdctl library.
117
118 %description -n libteamdctl-devel -l pl.UTF-8
119 Plik nagłówkowy biblioteki libteamdctl.
120
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}
126
127 %description -n libteamdctl-static
128 Static libteamdctl library.
129
130 %description -n libteamdctl-static -l pl.UTF-8
131 Statyczna biblioteka libteamdctl.
132
133 %package -n teamd
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}
139
140 %description -n teamd
141 The teamd package contains team network device control daemon.
142
143 %description -n teamd -l pl.UTF-8
144 Ten pakiet zawiera demona sterującego grupowymi urządzeniami
145 sieciowymi.
146
147 %prep
148 %setup -q
149 %patch0 -p1
150
151 %build
152 %{__libtoolize}
153 %{__aclocal} -I m4
154 %{__autoconf}
155 %{__autoheader}
156 %{__automake}
157 %configure \
158         --disable-silent-rules
159
160 %{__make}
161
162 %install
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}
167
168 %{__make} install \
169         DESTDIR=$RPM_BUILD_ROOT
170
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}
179
180 # obsoleted by pkg-config
181 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
182
183 %clean
184 rm -rf $RPM_BUILD_ROOT
185
186 %post   -p /sbin/ldconfig
187 %postun -p /sbin/ldconfig
188
189 %post   -n libteamdctl -p /sbin/ldconfig
190 %postun -n libteamdctl -p /sbin/ldconfig
191
192 %post -n teamd
193 export NORESTART="yes"
194 %systemd_post teamd-lvl1.target teamd-lvl2.target
195
196 %preun -n teamd
197 %systemd_preun teamd-lvl1.target teamd-lvl2.target
198
199 %postun -n teamd
200 %systemd_reload
201
202 %files
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*
208
209 %files devel
210 %defattr(644,root,root,755)
211 %attr(755,root,root) %{_libdir}/libteam.so
212 %{_includedir}/team.h
213 %{_pkgconfigdir}/libteam.pc
214
215 %files static
216 %defattr(644,root,root,755)
217 %{_libdir}/libteam.a
218
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
223
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
229
230 %files -n libteamdctl-static
231 %defattr(644,root,root,755)
232 %{_libdir}/libteamdctl.a
233
234 %files -n teamd
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*
This page took 0.098534 seconds and 4 git commands to generate.