2012-05-16 15:03:19 +02:00
|
|
|
#
|
|
|
|
# spec file for package libteam
|
|
|
|
#
|
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2012-11-17 07:25:41 +01:00
|
|
|
|
|
|
|
|
2012-05-16 15:03:19 +02:00
|
|
|
Name: libteam
|
|
|
|
%define lname libteam-0p0
|
|
|
|
Summary: Utilities for controlling 802.1AX team network device
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/Kernel
|
2012-11-17 07:25:41 +01:00
|
|
|
Version: 0.0+git368
|
2012-05-16 15:03:19 +02:00
|
|
|
Release: 0
|
|
|
|
Url: https://fedorahosted.org/libteam/
|
|
|
|
|
|
|
|
#Git-Web: https://github.com/jpirko/libteam
|
|
|
|
#Git-Clone: git://github.com/jpirko/libteam
|
|
|
|
Source: %name-%version.tar.xz
|
2012-11-17 07:25:41 +01:00
|
|
|
Patch1: soversion.diff
|
2012-05-16 15:03:19 +02:00
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-11-17 07:25:41 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: swig
|
|
|
|
BuildRequires: xz
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
BuildRequires: pkgconfig(jansson)
|
|
|
|
BuildRequires: pkgconfig(libdaemon)
|
|
|
|
BuildRequires: pkgconfig(libnl-3.0) >= 3.2.0
|
|
|
|
BuildRequires: pkgconfig(libnl-cli-3.0) >= 3.2.0
|
|
|
|
BuildRequires: pkgconfig(libnl-genl-3.0) >= 3.2.0
|
|
|
|
%if 0%{?suse_version} >= 1220
|
|
|
|
BuildRequires: systemd
|
|
|
|
%endif
|
2012-05-16 15:03:19 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
A library which is the user-space counterpart for the team network
|
|
|
|
driver, and provides an API to control them.
|
|
|
|
|
|
|
|
Linux kernel 3.3 and above offer a so-called "team" network driver -
|
|
|
|
a lightweight mechanism for bonding multiple interfaces together.
|
|
|
|
It is a userspace-driven alternative to the existing bonding driver.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Library for controlling 802.1AX team network device
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
A library which is the user-space counterpart for the team network
|
|
|
|
driver, and provides an API to control them.
|
|
|
|
|
|
|
|
Linux kernel 3.3 and above offer a so-called "team" network driver -
|
|
|
|
a lightweight mechanism for bonding multiple interfaces together.
|
|
|
|
It is a userspace-driven alternative to the existing bonding driver.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for libteam
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
A library which is the user-space counterpart for the team network
|
|
|
|
driver, and provides an API to control them.
|
|
|
|
|
|
|
|
This package contains the development headers for the library found
|
|
|
|
in %lname.
|
|
|
|
|
|
|
|
%package tools
|
2012-11-17 07:25:41 +01:00
|
|
|
Summary: Utilities for controlling team network devices
|
|
|
|
Group: System/Daemons
|
2012-05-16 15:03:19 +02:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
This package contains frontends to libteam that allow changing
|
|
|
|
the (team-specific) properties of team devices.
|
|
|
|
(The general configuration of network devices can be done
|
|
|
|
through using iproute.)
|
|
|
|
|
|
|
|
Linux kernel 3.3 and above offer a so-called "team" network driver -
|
|
|
|
a lightweight mechanism for bonding multiple interfaces together.
|
|
|
|
It is a userspace-driven alternative to the existing bonding driver.
|
|
|
|
|
2012-11-17 07:25:41 +01:00
|
|
|
%package -n python-libteam
|
|
|
|
Summary: Python bindings for libteam
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
|
|
|
|
%description -n python-libteam
|
|
|
|
This package should be installed if you want to develop Python
|
|
|
|
programs that will manipulate team network devices.
|
|
|
|
|
|
|
|
|
2012-05-16 15:03:19 +02:00
|
|
|
%prep
|
|
|
|
%setup -qn %name
|
|
|
|
%patch -P 1 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
if [ ! -e configure ]; then
|
|
|
|
autoreconf -fi
|
|
|
|
fi
|
|
|
|
%configure --includedir="%_includedir/%name-%version" --bindir="%_sbindir" \
|
|
|
|
--disable-static
|
|
|
|
# Use CFLAGS= to kill -Werror
|
|
|
|
make %{?_smp_mflags} CFLAGS="%optflags"
|
|
|
|
|
2012-11-17 07:25:41 +01:00
|
|
|
pushd binding/python/;
|
|
|
|
python ./setup.py build;
|
|
|
|
popd;
|
|
|
|
|
2012-05-16 15:03:19 +02:00
|
|
|
%install
|
2012-11-17 07:25:41 +01:00
|
|
|
b="%buildroot";
|
|
|
|
make install DESTDIR="$b";
|
|
|
|
pushd binding/python/;
|
|
|
|
python ./setup.py install --root="$b" --prefix="%_prefix";
|
|
|
|
popd;
|
|
|
|
|
|
|
|
rm -f "$b/%_libdir"/*.la
|
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
mkdir -p "$b/%_unitdir";
|
|
|
|
install -pm0644 teamd/redhat/systemd/*.service "$b/%_unitdir/";
|
|
|
|
%endif
|
2012-05-16 15:03:19 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libteam-0p.so.0*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/%name-%version
|
|
|
|
%_libdir/libteam.so
|
2012-11-17 07:25:41 +01:00
|
|
|
%_libdir/pkgconfig/libteam.pc
|
2012-05-16 15:03:19 +02:00
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_sbindir/team*
|
2012-11-17 07:25:41 +01:00
|
|
|
%_mandir/man5/*
|
2012-05-16 15:03:19 +02:00
|
|
|
%_mandir/man8/*
|
2012-11-17 07:25:41 +01:00
|
|
|
%if 0%{?_unitdir:1}
|
|
|
|
%_unitdir
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n python-libteam
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%python_sitearch/*
|
2012-05-16 15:03:19 +02:00
|
|
|
|
|
|
|
%changelog
|