From 7182d341bbcf2fc97f4a8412644f138b39f6962ebd82ecff7d0fe30c0b641209 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 16 May 2012 13:03:19 +0000 Subject: [PATCH] Accepting request 120832 from devel:libraries:c_c++ for kernel 3.3+'s team devices OBS-URL: https://build.opensuse.org/request/show/120832 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libteam?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + libteam-0.0+git216.tar.xz | 3 + libteam.changes | 4 ++ libteam.spec | 123 ++++++++++++++++++++++++++++++++++++++ soversion.diff | 27 +++++++++ 6 files changed, 181 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libteam-0.0+git216.tar.xz create mode 100644 libteam.changes create mode 100644 libteam.spec create mode 100644 soversion.diff diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/libteam-0.0+git216.tar.xz b/libteam-0.0+git216.tar.xz new file mode 100644 index 0000000..27a0c2a --- /dev/null +++ b/libteam-0.0+git216.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:148112c4ee480248f5188ec76b288eb1b2fc581ee0b260aa3a335930a455f47c +size 53824 diff --git a/libteam.changes b/libteam.changes new file mode 100644 index 0000000..fadf2e2 --- /dev/null +++ b/libteam.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat May 12 00:06:17 UTC 2012 - jengelh@inai.de + +- Initial package for build.opensuse.org diff --git a/libteam.spec b/libteam.spec new file mode 100644 index 0000000..1b19d30 --- /dev/null +++ b/libteam.spec @@ -0,0 +1,123 @@ +# +# 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/ +# +Name: libteam +%define lname libteam-0p0 +Summary: Utilities for controlling 802.1AX team network device +License: LGPL-2.1+ +Group: System/Kernel +Version: 0.0+git216 +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 +Patch1: soversion.diff + +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: autoconf automake libtool xz +BuildRequires: pkgconfig(libnl-3.0) pkgconfig(libnl-genl-3.0) +BuildRequires: pkgconfig(libnl-cli-3.0) pkgconfig(libdaemon) +BuildRequires: pkgconfig(jansson) pkgconfig(dbus-1) pkgconfig + +%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 +License: LGPL-2.1+ +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 +Summary: Utilities for controlling team network devices +Group: System/Daemons + +%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. + +%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" + +%install +%make_install +rm -f %buildroot/%_libdir/*.la + +%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 +%_libdir/pkgconfig/*.pc + +%files tools +%defattr(-,root,root) +%_sbindir/team* +%_mandir/man8/* + +%changelog diff --git a/soversion.diff b/soversion.diff new file mode 100644 index 0000000..0112aec --- /dev/null +++ b/soversion.diff @@ -0,0 +1,27 @@ +From: Jan Engelhardt +Date: 2012-05-12 02:07:15.879119810 +0200 +Upstream: no + +build: use unique SO version that won't clash + +The current ABI/API might not stay the same until the first official +libteam release, so we should not use libteam.so.0 to avoid such +future collision. Suffix it with 0p (preview). + +--- + lib/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: libteam/lib/Makefile.am +=================================================================== +--- libteam.orig/lib/Makefile.am ++++ libteam/lib/Makefile.am +@@ -6,7 +6,7 @@ lib_LTLIBRARIES = libteam.la + libteam_la_SOURCES = libteam.c ports.c options.c ifinfo.c + libteam_la_CFLAGS= $(LIBNL_CFLAGS) -I${top_srcdir}/include -D_GNU_SOURCE + 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@ -release 0p + + pkgconfigdir = $(libdir)/pkgconfig + pkgconfig_DATA = libteam.pc