forked from pool/libteam
Accepting request 141363 from devel:libraries:c_c++
- Update to git snapshot 0+git368 [a62cd9309607c6d72d46ef68403a730a6367b827] - no changes summary provided by upstream - Install systemd service file for teamd - Build and install python bindings OBS-URL: https://build.opensuse.org/request/show/141363 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libteam?expand=0&rev=3
This commit is contained in:
parent
7182d341bb
commit
a378863525
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:148112c4ee480248f5188ec76b288eb1b2fc581ee0b260aa3a335930a455f47c
|
|
||||||
size 53824
|
|
3
libteam-0.0+git368.tar.xz
Normal file
3
libteam-0.0+git368.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0dbec0c2710115bbb25bf115c90d0729f62fbb8ba36a5f1056fc42588bf2a544
|
||||||
|
size 287100
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 14 23:47:08 UTC 2012 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Update to git snapshot 0+git368 [a62cd9309607c6d72d46ef68403a730a6367b827] -
|
||||||
|
no changes summary provided by upstream
|
||||||
|
- Install systemd service file for teamd
|
||||||
|
- Build and install python bindings
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat May 12 00:06:17 UTC 2012 - jengelh@inai.de
|
Sat May 12 00:06:17 UTC 2012 - jengelh@inai.de
|
||||||
|
|
||||||
|
67
libteam.spec
67
libteam.spec
@ -14,25 +14,39 @@
|
|||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: libteam
|
Name: libteam
|
||||||
%define lname libteam-0p0
|
%define lname libteam-0p0
|
||||||
Summary: Utilities for controlling 802.1AX team network device
|
Summary: Utilities for controlling 802.1AX team network device
|
||||||
License: LGPL-2.1+
|
License: LGPL-2.1+
|
||||||
Group: System/Kernel
|
Group: System/Kernel
|
||||||
Version: 0.0+git216
|
Version: 0.0+git368
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: https://fedorahosted.org/libteam/
|
Url: https://fedorahosted.org/libteam/
|
||||||
|
|
||||||
#Git-Web: https://github.com/jpirko/libteam
|
#Git-Web: https://github.com/jpirko/libteam
|
||||||
#Git-Clone: git://github.com/jpirko/libteam
|
#Git-Clone: git://github.com/jpirko/libteam
|
||||||
Source: %name-%version.tar.xz
|
Source: %name-%version.tar.xz
|
||||||
Patch1: soversion.diff
|
Patch1: soversion.diff
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: autoconf automake libtool xz
|
BuildRequires: autoconf
|
||||||
BuildRequires: pkgconfig(libnl-3.0) pkgconfig(libnl-genl-3.0)
|
BuildRequires: automake
|
||||||
BuildRequires: pkgconfig(libnl-cli-3.0) pkgconfig(libdaemon)
|
BuildRequires: libtool
|
||||||
BuildRequires: pkgconfig(jansson) pkgconfig(dbus-1) pkgconfig
|
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
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A library which is the user-space counterpart for the team network
|
A library which is the user-space counterpart for the team network
|
||||||
@ -44,7 +58,6 @@ It is a userspace-driven alternative to the existing bonding driver.
|
|||||||
|
|
||||||
%package -n %lname
|
%package -n %lname
|
||||||
Summary: Library for controlling 802.1AX team network device
|
Summary: Library for controlling 802.1AX team network device
|
||||||
License: LGPL-2.1+
|
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n %lname
|
%description -n %lname
|
||||||
@ -68,8 +81,8 @@ This package contains the development headers for the library found
|
|||||||
in %lname.
|
in %lname.
|
||||||
|
|
||||||
%package tools
|
%package tools
|
||||||
Summary: Utilities for controlling team network devices
|
Summary: Utilities for controlling team network devices
|
||||||
Group: System/Daemons
|
Group: System/Daemons
|
||||||
|
|
||||||
%description tools
|
%description tools
|
||||||
This package contains frontends to libteam that allow changing
|
This package contains frontends to libteam that allow changing
|
||||||
@ -81,6 +94,15 @@ Linux kernel 3.3 and above offer a so-called "team" network driver -
|
|||||||
a lightweight mechanism for bonding multiple interfaces together.
|
a lightweight mechanism for bonding multiple interfaces together.
|
||||||
It is a userspace-driven alternative to the existing bonding driver.
|
It is a userspace-driven alternative to the existing bonding driver.
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn %name
|
%setup -qn %name
|
||||||
%patch -P 1 -p1
|
%patch -P 1 -p1
|
||||||
@ -94,9 +116,22 @@ fi
|
|||||||
# Use CFLAGS= to kill -Werror
|
# Use CFLAGS= to kill -Werror
|
||||||
make %{?_smp_mflags} CFLAGS="%optflags"
|
make %{?_smp_mflags} CFLAGS="%optflags"
|
||||||
|
|
||||||
|
pushd binding/python/;
|
||||||
|
python ./setup.py build;
|
||||||
|
popd;
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
b="%buildroot";
|
||||||
rm -f %buildroot/%_libdir/*.la
|
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
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
@ -113,11 +148,19 @@ make check
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%_includedir/%name-%version
|
%_includedir/%name-%version
|
||||||
%_libdir/libteam.so
|
%_libdir/libteam.so
|
||||||
%_libdir/pkgconfig/*.pc
|
%_libdir/pkgconfig/libteam.pc
|
||||||
|
|
||||||
%files tools
|
%files tools
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%_sbindir/team*
|
%_sbindir/team*
|
||||||
|
%_mandir/man5/*
|
||||||
%_mandir/man8/*
|
%_mandir/man8/*
|
||||||
|
%if 0%{?_unitdir:1}
|
||||||
|
%_unitdir
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n python-libteam
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%python_sitearch/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -17,7 +17,7 @@ Index: libteam/lib/Makefile.am
|
|||||||
--- libteam.orig/lib/Makefile.am
|
--- libteam.orig/lib/Makefile.am
|
||||||
+++ libteam/lib/Makefile.am
|
+++ libteam/lib/Makefile.am
|
||||||
@@ -6,7 +6,7 @@ lib_LTLIBRARIES = libteam.la
|
@@ -6,7 +6,7 @@ lib_LTLIBRARIES = libteam.la
|
||||||
libteam_la_SOURCES = libteam.c ports.c options.c ifinfo.c
|
libteam_la_SOURCES = libteam.c ports.c options.c ifinfo.c stringify.c
|
||||||
libteam_la_CFLAGS= $(LIBNL_CFLAGS) -I${top_srcdir}/include -D_GNU_SOURCE
|
libteam_la_CFLAGS= $(LIBNL_CFLAGS) -I${top_srcdir}/include -D_GNU_SOURCE
|
||||||
libteam_la_LIBADD= $(LIBNL_LIBS)
|
libteam_la_LIBADD= $(LIBNL_LIBS)
|
||||||
-libteam_la_LDFLAGS = -version-info @LIBTEAM_CURRENT@:@LIBTEAM_REVISION@:@LIBTEAM_AGE@
|
-libteam_la_LDFLAGS = -version-info @LIBTEAM_CURRENT@:@LIBTEAM_REVISION@:@LIBTEAM_AGE@
|
||||||
|
Loading…
Reference in New Issue
Block a user