]> git.pld-linux.org Git - packages/libteam.git/blob - libteam.spec
- split libteamdctl* packages; release 3
[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.26
5 Release:        3
6 License:        LGPL v2.1+
7 Group:          Libraries
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)
34
35 %description
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.
41
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.
48
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.
56
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.
63
64 %package devel
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
70
71 %description devel
72 Header files for libteam library.
73
74 %description devel -l pl.UTF-8
75 Pliki nagłówkowe biblioteki libteam.
76
77 %package static
78 Summary:        Static libteam library
79 Summary(pl.UTF-8):      Statyczna biblioteka libteam
80 Group:          Development/Libraries
81 Requires:       %{name}-devel = %{version}-%{release}
82
83 %description static
84 Static libteam library.
85
86 %description static -l pl.UTF-8
87 Statyczna biblioteka libteam.
88
89 %package -n libteamdctl
90 Summary:        Teamd daemon control library
91 Summary(pl.UTF-8):      Biblioteka sterująca demonem teamd
92 Group:          Libraries
93 Requires:       zeromq >= 3.2.0
94 Conflicts:      teamd < 1.26-3
95
96 %description -n libteamdctl
97 Teamd daemon control library.
98
99 %description -n libteamdctl -l pl.UTF-8
100 Biblioteka sterująca demonem teamd.
101
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}
107 Requires:       dbus-devel
108 Requires:       libdaemon-devel
109 Requires:       systemd-devel
110 Requires:       zeromq-devel >= 3.2.0
111
112 %description -n libteamdctl-devel
113 Header file for libteamdctl library.
114
115 %description -n libteamdctl-devel -l pl.UTF-8
116 Plik nagłówkowy biblioteki libteamdctl.
117
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}
123
124 %description -n libteamdctl-static
125 Static libteamdctl library.
126
127 %description -n libteamdctl-static -l pl.UTF-8
128 Statyczna biblioteka libteamdctl.
129
130 %package -n teamd
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}
136
137 %description -n teamd
138 The teamd package contains team network device control daemon.
139
140 %description -n teamd -l pl.UTF-8
141 Ten pakiet zawiera demona sterującego grupowymi urządzeniami
142 sieciowymi.
143
144 %prep
145 %setup -q
146 %patch0 -p1
147
148 %build
149 %{__libtoolize}
150 %{__aclocal} -I m4
151 %{__autoconf}
152 %{__autoheader}
153 %{__automake}
154 %configure \
155         --disable-silent-rules
156
157 %{__make}
158
159 %install
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}
164
165 %{__make} install \
166         DESTDIR=$RPM_BUILD_ROOT
167
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}
176
177 # obsoleted by pkg-config
178 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
179
180 %clean
181 rm -rf $RPM_BUILD_ROOT
182
183 %post   -p /sbin/ldconfig
184 %postun -p /sbin/ldconfig
185
186 %post   -n libteamdctl -p /sbin/ldconfig
187 %postun -n libteamdctl -p /sbin/ldconfig
188
189 %post -n teamd
190 export NORESTART="yes"
191 %systemd_post teamd-lvl1.target teamd-lvl2.target
192
193 %preun -n teamd
194 %systemd_preun teamd-lvl1.target teamd-lvl2.target
195
196 %postun -n teamd
197 %systemd_reload
198
199 %files
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*
205
206 %files devel
207 %defattr(644,root,root,755)
208 %attr(755,root,root) %{_libdir}/libteam.so
209 %{_includedir}/team.h
210 %{_pkgconfigdir}/libteam.pc
211
212 %files static
213 %defattr(644,root,root,755)
214 %{_libdir}/libteam.a
215
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
220
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
226
227 %files -n libteamdctl-static
228 %defattr(644,root,root,755)
229 %{_libdir}/libteamdctl.a
230
231 %files -n teamd
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*
This page took 0.097195 seconds and 3 git commands to generate.