]> git.pld-linux.org Git - packages/libteam.git/blame - libteam.spec
- split libteamdctl* packages; release 3
[packages/libteam.git] / libteam.spec
CommitLineData
40d088c8
JB
1Summary: Library for controlling team network device
2Summary(pl.UTF-8): Biblioteka do sterowania grupowymi urządzeniami sieciowymi
3Name: libteam
4f54d96f 4Version: 1.26
1f4dc11b 5Release: 3
40d088c8
JB
6License: LGPL v2.1+
7Group: Libraries
4f54d96f
MM
8Source0: http://libteam.org/files/%{name}-%{version}.tar.gz
9# Source0-md5: f8529a3bfee28500bef5faff6aeb0063
1f4dc11b
JB
10Source1: teamd.sysconfig
11Source2: teamd-lvl1-service-generator
12Source3: teamd-lvl2-service-generator
13Source4: teamd@.service
14Source5: teamd-lvl1.target
15Source6: teamd-lvl2.target
27b8783c
MM
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/
1f4dc11b 18Source7: teamd-shutdown-workaround.service
2419f546 19Patch0: %{name}-link.patch
40d088c8
JB
20URL: http://libteam.org/
21BuildRequires: autoconf >= 2.50
22BuildRequires: automake
23BuildRequires: dbus-devel
24BuildRequires: jansson-devel
753e4574
JB
25# if non-root --with-group or --with-user
26#BuildRequires: libcap-devel
40d088c8
JB
27BuildRequires: libdaemon-devel
28BuildRequires: libnl-devel >= 3.2
29BuildRequires: libtool >= 2:2
30BuildRequires: pkgconfig
31BuildRequires: zeromq-devel >= 3.2.0
32Requires: libnl >= 3.2
40d088c8
JB
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
36The purpose of the Team driver is to provide a mechanism to team
37multiple NICs (ports) into one logical one (teamdev) at L2 layer. The
38process is called "channel bonding", "Ethernet bonding", "channel
39teaming", "link aggregation", etc. This is already implemented in the
40Linux kernel by the bonding driver.
41
42One thing to note is that Team driver project does try to provide the
43similar functionality as the bonding driver, however architecturally
44it is quite different from bonding driver. Team driver is modular,
45userspace driven, very lean and efficient, and it does have some
46distinct advantages over bonding. The way Team is configured differs
47dramatically from the way bonding is.
48
49%description -l pl.UTF-8
50Celem sterownika Team jest dostarczenie mechanizmu do grupowania
51(team) wielu interfejsów (portów) sieciowych (czyli NIC) w jeden
52logiczny (teamdev) w warstwie L2. Proces ten jest nazywany
53"channel bonding", "Ethernet bonding", "channel teaming", "link
54aggregation" itp. Jest to już zaimplementowane w jądrze Linuksa
55poprzez sterownik bonding.
56
57Należy zauważyć, że projekt sterownika Team próbuje zapewnić
58podobną funkcjonalność co sterownik bonding, ale architektonicznie
59różni się od niego. Jest modularny, działa w przestrzeni użytkownika,
60jest bardzo lekki i wydajny, ma też kilka zalet, których nie ma
61bonding. Sposób konfiguracji sterownika Team znacząco różni się od
62konfiguracji sterownika bonding.
63
64%package devel
65Summary: Header files for libteam library
66Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libteam
67Group: Development/Libraries
68Requires: %{name} = %{version}-%{release}
69Requires: libnl-devel >= 3.2
70
71%description devel
72Header files for libteam library.
73
74%description devel -l pl.UTF-8
75Pliki nagłówkowe biblioteki libteam.
76
77%package static
78Summary: Static libteam library
79Summary(pl.UTF-8): Statyczna biblioteka libteam
80Group: Development/Libraries
81Requires: %{name}-devel = %{version}-%{release}
82
83%description static
84Static libteam library.
85
86%description static -l pl.UTF-8
87Statyczna biblioteka libteam.
88
1f4dc11b
JB
89%package -n libteamdctl
90Summary: Teamd daemon control library
91Summary(pl.UTF-8): Biblioteka sterująca demonem teamd
92Group: Libraries
93Requires: zeromq >= 3.2.0
94Conflicts: teamd < 1.26-3
95
96%description -n libteamdctl
97Teamd daemon control library.
98
99%description -n libteamdctl -l pl.UTF-8
100Biblioteka sterująca demonem teamd.
101
102%package -n libteamdctl-devel
103Summary: Header file for libteamdctl library
104Summary(pl.UTF-8): Plik nagłówkowy biblioteki libteamdctl
105Group: Development/Libraries
106Requires: libteamdctl = %{version}-%{release}
107Requires: dbus-devel
108Requires: libdaemon-devel
109Requires: systemd-devel
110Requires: zeromq-devel >= 3.2.0
111
112%description -n libteamdctl-devel
113Header file for libteamdctl library.
114
115%description -n libteamdctl-devel -l pl.UTF-8
116Plik nagłówkowy biblioteki libteamdctl.
117
118%package -n libteamdctl-static
119Summary: Static libteamdctl library
120Summary(pl.UTF-8): Statyczna biblioteka libteamdctl
121Group: Development/Libraries
122Requires: libteamdctl-devel = %{version}-%{release}
123
124%description -n libteamdctl-static
125Static libteamdctl library.
126
127%description -n libteamdctl-static -l pl.UTF-8
128Statyczna biblioteka libteamdctl.
129
b11fb01e 130%package -n teamd
1f4dc11b
JB
131Summary: Team network device control daemon
132Summary(pl.UTF-8): Demon sterujący grupowymi urządzeniami sieciowymi
133Group: Networking/Admin
134Requires: %{name} = %{version}-%{release}
135Requires: libteamdctl = %{version}-%{release}
b11fb01e
MM
136
137%description -n teamd
138The teamd package contains team network device control daemon.
139
1f4dc11b
JB
140%description -n teamd -l pl.UTF-8
141Ten pakiet zawiera demona sterującego grupowymi urządzeniami
142sieciowymi.
143
40d088c8 144%prep
4f54d96f 145%setup -q
40d088c8 146%patch0 -p1
40d088c8
JB
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
160rm -rf $RPM_BUILD_ROOT
ea034156 161install -d $RPM_BUILD_ROOT/etc/dbus-1/system.d \
1f4dc11b
JB
162 $RPM_BUILD_ROOT/etc/sysconfig \
163 $RPM_BUILD_ROOT/lib/systemd/{system-generators,system}
40d088c8
JB
164
165%{__make} install \
166 DESTDIR=$RPM_BUILD_ROOT
167
ea034156
MM
168install teamd/dbus/teamd.conf $RPM_BUILD_ROOT/etc/dbus-1/system.d
169install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/teamd
170install %{SOURCE2} $RPM_BUILD_ROOT/lib/systemd/system-generators
171install %{SOURCE3} $RPM_BUILD_ROOT/lib/systemd/system-generators
172install %{SOURCE4} $RPM_BUILD_ROOT%{systemdunitdir}
173install %{SOURCE5} $RPM_BUILD_ROOT%{systemdunitdir}
174install %{SOURCE6} $RPM_BUILD_ROOT%{systemdunitdir}
27b8783c 175install %{SOURCE7} $RPM_BUILD_ROOT%{systemdunitdir}
ea034156 176
40d088c8
JB
177# obsoleted by pkg-config
178%{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
179
180%clean
181rm -rf $RPM_BUILD_ROOT
182
ac41c7a5
ER
183%post -p /sbin/ldconfig
184%postun -p /sbin/ldconfig
b11fb01e 185
1f4dc11b
JB
186%post -n libteamdctl -p /sbin/ldconfig
187%postun -n libteamdctl -p /sbin/ldconfig
188
b11fb01e 189%post -n teamd
173d708b 190export NORESTART="yes"
4a9467fc 191%systemd_post teamd-lvl1.target teamd-lvl2.target
ea034156 192
b11fb01e 193%preun -n teamd
4a9467fc 194%systemd_preun teamd-lvl1.target teamd-lvl2.target
ea034156 195
b11fb01e 196%postun -n teamd
ea034156 197%systemd_reload
40d088c8 198
ac41c7a5
ER
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
1f4dc11b
JB
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
b11fb01e 231%files -n teamd
40d088c8 232%defattr(644,root,root,755)
d766e4fd 233%doc README teamd/example_configs
ea034156
MM
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
27b8783c 238%{systemdunitdir}/teamd-shutdown-workaround.service
40d088c8
JB
239%attr(755,root,root) %{_bindir}/bond2team
240%attr(755,root,root) %{_bindir}/teamd
241%attr(755,root,root) %{_bindir}/teamdctl
ea034156 242%attr(755,root,root) /lib/systemd/system-generators/teamd-lvl?-service-generator
40d088c8
JB
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.134954 seconds and 4 git commands to generate.