]> git.pld-linux.org Git - packages/libteam.git/blob - libteam.spec
- updated to 1.25
[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.25
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:  9e51c42b08ff8e80561e0b1cd5af266f
11 Patch0:         %{name}-link.patch
12 URL:            http://libteam.org/
13 BuildRequires:  autoconf >= 2.50
14 BuildRequires:  automake
15 BuildRequires:  dbus-devel
16 BuildRequires:  jansson-devel
17 # if non-root --with-group or --with-user
18 #BuildRequires: libcap-devel
19 BuildRequires:  libdaemon-devel
20 BuildRequires:  libnl-devel >= 3.2
21 BuildRequires:  libtool >= 2:2
22 BuildRequires:  pkgconfig
23 BuildRequires:  zeromq-devel >= 3.2.0
24 Requires:       libnl >= 3.2
25 Requires:       zeromq >= 3.2.0
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 The purpose of the Team driver is to provide a mechanism to team
30 multiple NICs (ports) into one logical one (teamdev) at L2 layer. The
31 process is called "channel bonding", "Ethernet bonding", "channel
32 teaming", "link aggregation", etc. This is already implemented in the
33 Linux kernel by the bonding driver.
34
35 One thing to note is that Team driver project does try to provide the
36 similar functionality as the bonding driver, however architecturally
37 it is quite different from bonding driver. Team driver is modular,
38 userspace driven, very lean and efficient, and it does have some
39 distinct advantages over bonding. The way Team is configured differs
40 dramatically from the way bonding is.
41
42 %description -l pl.UTF-8
43 Celem sterownika Team jest dostarczenie mechanizmu do grupowania
44 (team) wielu interfejsów (portów) sieciowych (czyli NIC) w jeden
45 logiczny (teamdev) w warstwie L2. Proces ten jest nazywany
46 "channel bonding", "Ethernet bonding", "channel teaming", "link
47 aggregation" itp. Jest to już zaimplementowane w jądrze Linuksa
48 poprzez sterownik bonding.
49
50 Należy zauważyć, że projekt sterownika Team próbuje zapewnić
51 podobną funkcjonalność co sterownik bonding, ale architektonicznie
52 różni się od niego. Jest modularny, działa w przestrzeni użytkownika,
53 jest bardzo lekki i wydajny, ma też kilka zalet, których nie ma
54 bonding. Sposób konfiguracji sterownika Team znacząco różni się od
55 konfiguracji sterownika bonding.
56
57 %package devel
58 Summary:        Header files for libteam library
59 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libteam
60 Group:          Development/Libraries
61 Requires:       %{name} = %{version}-%{release}
62 Requires:       libnl-devel >= 3.2
63
64 %description devel
65 Header files for libteam library.
66
67 %description devel -l pl.UTF-8
68 Pliki nagłówkowe biblioteki libteam.
69
70 %package static
71 Summary:        Static libteam library
72 Summary(pl.UTF-8):      Statyczna biblioteka libteam
73 Group:          Development/Libraries
74 Requires:       %{name}-devel = %{version}-%{release}
75
76 %description static
77 Static libteam library.
78
79 %description static -l pl.UTF-8
80 Statyczna biblioteka libteam.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85
86 %build
87 %{__libtoolize}
88 %{__aclocal} -I m4
89 %{__autoconf}
90 %{__autoheader}
91 %{__automake}
92 %configure \
93         --disable-silent-rules
94
95 %{__make}
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 # obsoleted by pkg-config
104 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post   -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
111
112 %files
113 %defattr(644,root,root,755)
114 %doc README
115 %attr(755,root,root) %{_bindir}/bond2team
116 %attr(755,root,root) %{_bindir}/teamd
117 %attr(755,root,root) %{_bindir}/teamdctl
118 %attr(755,root,root) %{_bindir}/teamnl
119 %attr(755,root,root) %{_libdir}/libteam.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libteam.so.5
121 %attr(755,root,root) %{_libdir}/libteamdctl.so.*.*.*
122 %attr(755,root,root) %ghost %{_libdir}/libteamdctl.so.0
123 %{_mandir}/man1/bond2team.1*
124 %{_mandir}/man5/teamd.conf.5*
125 %{_mandir}/man8/teamd.8*
126 %{_mandir}/man8/teamdctl.8*
127 %{_mandir}/man8/teamnl.8*
128
129 %files devel
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_libdir}/libteam.so
132 %attr(755,root,root) %{_libdir}/libteamdctl.so
133 %{_includedir}/team.h
134 %{_includedir}/teamdctl.h
135 %{_pkgconfigdir}/libteam.pc
136 %{_pkgconfigdir}/libteamdctl.pc
137
138 %files static
139 %defattr(644,root,root,755)
140 %{_libdir}/libteam.a
141 %{_libdir}/libteamdctl.a
This page took 0.212231 seconds and 4 git commands to generate.