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