SHA256
1
0
forked from pool/libnl3

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
This commit is contained in:
Jan Engelhardt 2011-09-14 08:45:28 +00:00 committed by Git OBS Bridge
commit 9144cd470e
7 changed files with 304 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

4
baselibs.conf Normal file
View File

@ -0,0 +1,4 @@
libnl3-200
libnl3-devel
requires -libnl3-<targettype>
requires "libnl3-200-<targettype> = <version>"

23
libdir.diff Normal file
View File

@ -0,0 +1,23 @@
From: Jan Engelhardt <jengelh@medozas.de>
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])

3
libnl-3.2.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae8df01325d4716806243c4aca283835e4b38d288ce730a4b192c269dd196c80
size 665220

121
libnl3.changes Normal file
View File

@ -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

129
libnl3.spec Normal file
View File

@ -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