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