From 9144cd470e8ce458b5a3a635d6948b778b828de136cbda099ba789f708a30050 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 14 Sep 2011 08:45:28 +0000 Subject: [PATCH] Accepting request 82067 from home:jengelh:dev libnl, with proper SO versioning, yay :-) OBS-URL: https://build.opensuse.org/request/show/82067 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnl3?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + baselibs.conf | 4 ++ libdir.diff | 23 +++++++++ libnl-3.2.tar.xz | 3 ++ libnl3.changes | 121 ++++++++++++++++++++++++++++++++++++++++++++ libnl3.spec | 129 +++++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 304 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 baselibs.conf create mode 100644 libdir.diff create mode 100644 libnl-3.2.tar.xz create mode 100644 libnl3.changes create mode 100644 libnl3.spec 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/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..1fd69f4 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,4 @@ +libnl3-200 +libnl3-devel + requires -libnl3- + requires "libnl3-200- = " diff --git a/libdir.diff b/libdir.diff new file mode 100644 index 0000000..a61fc0e --- /dev/null +++ b/libdir.diff @@ -0,0 +1,23 @@ +From: Jan Engelhardt +Date: 2011-09-14 10:16:16.747806482 +0200 +Upstream: possibly not + +Quick hack to make pkglibdir include the version. + +--- + configure.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: libnl/configure.in +=================================================================== +--- libnl.orig/configure.in ++++ libnl/configure.in +@@ -25,7 +25,7 @@ m4_define([libnl_version], + m4_define([libnl_lt_current], + [m4_eval(100 * libnl_minor_version + libnl_micro_version - libnl_lt_revision)]) + +-AC_INIT(libnl, [libnl_version], [http://www.infradead.org/~tgr/libnl/]) ++AC_INIT(libnl3-200, [libnl_version], [http://www.infradead.org/~tgr/libnl/]) + AC_CONFIG_HEADERS([lib/defs.h]) + AC_CONFIG_MACRO_DIR([m4]) + AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) diff --git a/libnl-3.2.tar.xz b/libnl-3.2.tar.xz new file mode 100644 index 0000000..90032b3 --- /dev/null +++ b/libnl-3.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae8df01325d4716806243c4aca283835e4b38d288ce730a4b192c269dd196c80 +size 665220 diff --git a/libnl3.changes b/libnl3.changes new file mode 100644 index 0000000..e6987a3 --- /dev/null +++ b/libnl3.changes @@ -0,0 +1,121 @@ +------------------------------------------------------------------- +Wed Sep 14 08:11:31 UTC 2011 - jengelh@medozas.de + +- Update to libnl-3.2 + +------------------------------------------------------------------- +Sat Apr 24 11:38:21 UTC 2010 - coolo@novell.com + +- buildrequire pkg-config to fix provides + +------------------------------------------------------------------- +Wed Dec 16 10:07:04 CET 2009 - jengelh@medozas.de + +- Add baselibs.conf as a source +- Add baselib definitions for SPARC +- Enable parallel building + +------------------------------------------------------------------- +Fri Jun 12 15:30:06 CEST 2009 - coolo@novell.com + +- fix build with glibc 2.10 + +------------------------------------------------------------------- +Thu Feb 5 13:36:06 PST 2009 - bphilips@suse.de + +- baselibs.conf: create -32bit packages. Required to compile Intel + WiMax tools. + +------------------------------------------------------------------- +Wed Jan 7 12:34:56 CET 2009 - olh@suse.de + +- obsolete old -XXbit packages (bnc#437293) + +------------------------------------------------------------------- +Mon Nov 10 19:13:52 EST 2008 - jpr@novell.com + +- Add baselibs.conf (bnc#443023) + +------------------------------------------------------------------- +Thu Oct 2 13:38:04 CDT 2008 - maw@suse.de + +- Install libraries in %_lib, not %{_libdir} (bnc#428433). + +------------------------------------------------------------------- +Fri Feb 1 12:45:47 CET 2008 - coolo@suse.de + +- update to 1.1: + o patches went upstream + o Generic netlink support + o Route Addition/Deletion + o Fixed reference counting while objects stay in caches. + ... tons of other fixes + +------------------------------------------------------------------- +Fri Jan 25 08:15:02 CET 2008 - adrian@suse.de + +- fix changelog entries order + +------------------------------------------------------------------- +Wed Oct 3 22:20:13 CEST 2007 - maw@suse.de + +- Apply libnl.route.metric-overflow.patch with -p1. + +------------------------------------------------------------------- +Sat Aug 25 11:57:33 CEST 2007 - olh@suse.de + +- remove incomplete copies of kernel headers + linux/types.h were needed + +------------------------------------------------------------------- +Fri Aug 24 17:26:02 CEST 2007 - olh@suse.de + +- include linux/types.h + do not redefine typedefs + use stddef.h offsetof + fix out of bounds access in route metric functions + fix incorrect char usage in nl_str2af + remove compiler warnings by checking vasprintf return value + +------------------------------------------------------------------- +Wed Aug 22 15:26:31 CEST 2007 - dmueller@suse.de + +- fix accesses of free'd memory which crash NetworkManager-kde + +------------------------------------------------------------------- +Wed Aug 22 02:10:01 CEST 2007 - dmueller@suse.de + +- update to 1.0-pre6: + * fixes write after delete crashes + * fixes realloc() handling + * fixes format string warnings + * fixes invalid free in nl_addr_parse for AF_UNSPEC addresses + * fixes double nlmsg_free() in nl_recvmsgs() while receiving + a multipart message and the read was interrupted. + +------------------------------------------------------------------- +Mon Feb 20 00:21:49 CET 2006 - ro@suse.de + +- fix build on ia64, ppc64, s390x + +------------------------------------------------------------------- +Wed Jan 25 21:37:35 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Tue Nov 15 14:10:15 CET 2005 - yxu@suse.de + +- fixed conflicting type definition + +------------------------------------------------------------------- +Fri Nov 4 22:23:10 CET 2005 - rml@suse.de + +- Update to 1.0-pre5 + +------------------------------------------------------------------- +Mon Oct 31 21:12:24 CET 2005 - gekker@suse.de + +- Initial import into autobuild Version 1.0-pre3 +- Patch makefile + diff --git a/libnl3.spec b/libnl3.spec new file mode 100644 index 0000000..d70baec --- /dev/null +++ b/libnl3.spec @@ -0,0 +1,129 @@ +Name: libnl3 +%define lname libnl3-200 +%define with_tools 1 +Version: 3.2 +Release: 0 +Summary: Convenience library for working with Netlink sockets +License: LGPL-2.1, GPL-2.0 +Group: Development/Libraries/C and C++ + +URL: http://people.suug.ch/~tgr/libnl/ +#Git-Clone: git://git.kernel.org/pub/scm/libs/netlink/libnl +#Git-Clone: git://git.infradead.org/users/tgr/libnl +Source: libnl-%version.tar.xz +Source2: baselibs.conf +Patch1: libdir.diff +BuildRoot: %_tmppath/%name-%version-build +BuildRequires: bison, fdupes, flex, pkgconfig, python-devel, xz + +%description +The libnl suite is a collection of libraries providing APIs to +Netlink protocol based Linux kernel interfaces. + +%package -n %lname +Summary: Convenience library for working with Netlink sockets +Group: System/Libraries +License: LGPL-2.1 +Requires: libnl-config >= %version + +%description -n %lname +The libnl suite is a collection of libraries providing APIs to +netlink protocol based Linux kernel interfaces. + +%package devel +Summary: Libraries and headers for libnl +Group: Development/Libraries/C and C++ +Requires: %lname = %version-%release +Provides: libnl-devel = %version-%release +# Starting with libnl3(-3.2), no more conflicts + +%description devel +The libnl suite is a collection of libraries providing APIs to +Netlink protocol based Linux kernel interfaces. + +%if %with_tools +# +# Only one of the libnl packages should create the config and tools. +# +%package -n libnl-config +Summary: Name maps for libnl +Group: Productivity/Networking/Security +%if 0%{?suse_version} >= 1130 +BuildArch: noarch +%endif + +%description -n libnl-config +This package contains configuration files for libnl and programs using +the same; in particular +- name maps for class-ids -- class-names (like /etc/services) +- aliases for locations within a packet (ip6.dst => byte offset) + +%package -n libnl-tools +Summary: Command line utilities to directly work with Netlink +Group: Productivity/Networking/Security + +%description -n libnl-tools +Various test program with which the functionality of libnl is +demonstrated. + +%endif + +%prep +%if 0%{?__xz:1} +%setup -qn libnl +%else +tar -xf "%{S:0}" --use=xz; +%setup -DTqn libnl +%endif +%patch -P 1 -p1 + +%build +# we do have patches +autoreconf -fi; + +if [ ! -e configure ]; then + autoreconf -fi; +fi; +%configure --disable-static +make %{?_smp_mflags}; + +%install +b="%buildroot"; +%makeinstall +find "$b" -iname "*.la" -delete; +%if !%with_tools +rm -Rf "$b/%_sysconfdir/libnl"; +rm -Rf "$b/%_sbindir" "$b/%_mandir/man8"; +%endif +%fdupes %buildroot + +%post -n %lname -p /sbin/ldconfig + +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%defattr(-,root,root) +%_libdir/libnl*.so.* +%_libdir/%lname + +%files devel +%defattr(-,root,root) +%_includedir/%name +%_libdir/libnl*.so +%_libdir/pkgconfig/* + +%if %with_tools +# +%files -n libnl-config +%defattr(-,root,root) +%dir %_sysconfdir/libnl +%config %_sysconfdir/libnl/* + +%files -n libnl-tools +%defattr(-,root,root) +%_mandir/man*/* +%_sbindir/* + +%endif + +%changelog