2011-09-20 10:51:26 +02:00
|
|
|
#
|
|
|
|
# spec file for package libnl3
|
|
|
|
#
|
2012-01-03 17:15:02 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-09-20 10:51:26 +02:00
|
|
|
#
|
|
|
|
# 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-05-06 00:13:50 +02:00
|
|
|
|
2011-09-20 10:51:26 +02:00
|
|
|
Name: libnl3
|
2011-09-14 10:45:28 +02:00
|
|
|
%define lname libnl3-200
|
|
|
|
%define with_tools 1
|
2012-06-19 15:45:24 +02:00
|
|
|
Version: 3.2.11
|
2011-09-20 10:51:26 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Convenience library for working with Netlink sockets
|
2012-01-13 17:11:35 +01:00
|
|
|
License: LGPL-2.1 and GPL-2.0
|
2011-09-20 10:51:26 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-09-14 10:45:28 +02:00
|
|
|
|
2011-11-21 18:13:08 +01:00
|
|
|
Url: http://people.suug.ch/~tgr/libnl/
|
2011-09-14 10:45:28 +02:00
|
|
|
#Git-Clone: git://git.kernel.org/pub/scm/libs/netlink/libnl
|
|
|
|
#Git-Clone: git://git.infradead.org/users/tgr/libnl
|
2012-06-19 15:45:24 +02:00
|
|
|
Source: libnl-%version.tar.bz2
|
2011-09-20 10:51:26 +02:00
|
|
|
Source2: baselibs.conf
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-06-30 20:28:59 +02:00
|
|
|
#git#BuildRequires: autoconf, automake, libtool
|
2012-01-13 17:11:35 +01:00
|
|
|
BuildRequires: bison
|
2012-06-30 00:41:34 +02:00
|
|
|
BuildRequires: flex >= 2.5.19
|
2012-06-30 20:28:59 +02:00
|
|
|
BuildRequires: pkgconfig >= 0.21
|
2012-06-30 15:28:23 +02:00
|
|
|
BuildRequires: python-devel >= 2.6
|
2012-06-30 00:41:34 +02:00
|
|
|
%if 0%{?suse_version}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
%endif
|
2011-09-14 10:45:28 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
The libnl suite is a collection of libraries providing APIs to
|
|
|
|
Netlink protocol based Linux kernel interfaces.
|
|
|
|
|
|
|
|
%package -n %lname
|
2011-09-20 10:51:26 +02:00
|
|
|
Summary: Convenience library for working with Netlink sockets
|
|
|
|
License: LGPL-2.1
|
2012-01-13 17:11:35 +01:00
|
|
|
Group: System/Libraries
|
2011-09-20 10:51:26 +02:00
|
|
|
Requires: libnl-config >= %version
|
2011-09-14 10:45:28 +02:00
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
The libnl suite is a collection of libraries providing APIs to
|
|
|
|
netlink protocol based Linux kernel interfaces.
|
|
|
|
|
|
|
|
%package devel
|
2011-09-20 10:51:26 +02:00
|
|
|
Summary: Libraries and headers for libnl
|
|
|
|
License: LGPL-2.1
|
2012-01-13 17:11:35 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-09-20 10:51:26 +02:00
|
|
|
Requires: %lname = %version
|
|
|
|
Provides: libnl-devel = %version-%release
|
2011-09-14 10:45:28 +02:00
|
|
|
# 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.
|
|
|
|
#
|
2011-09-20 10:51:26 +02:00
|
|
|
|
2011-09-14 10:45:28 +02:00
|
|
|
%package -n libnl-config
|
2011-09-20 10:51:26 +02:00
|
|
|
Summary: Name maps for libnl
|
2012-01-13 17:11:35 +01:00
|
|
|
License: LGPL-2.1 and GPL-2.0
|
2011-09-20 10:51:26 +02:00
|
|
|
Group: Productivity/Networking/Security
|
2011-09-14 10:45:28 +02:00
|
|
|
%if 0%{?suse_version} >= 1130
|
2011-09-20 10:51:26 +02:00
|
|
|
BuildArch: noarch
|
2011-09-14 10:45:28 +02:00
|
|
|
%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
|
2011-09-20 10:51:26 +02:00
|
|
|
Summary: Command line utilities to directly work with Netlink
|
|
|
|
License: GPL-2.0
|
2012-01-13 17:11:35 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2011-09-14 10:45:28 +02:00
|
|
|
|
|
|
|
%description -n libnl-tools
|
|
|
|
Various test program with which the functionality of libnl is
|
|
|
|
demonstrated.
|
|
|
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%prep
|
2011-09-21 20:37:09 +02:00
|
|
|
%setup -qn libnl-%version
|
2011-09-14 10:45:28 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
if [ ! -e configure ]; then
|
|
|
|
autoreconf -fi;
|
|
|
|
fi;
|
|
|
|
%configure --disable-static
|
2012-06-30 00:41:34 +02:00
|
|
|
make %{?_smp_mflags} pkglibdir="%_libdir/%lname";
|
2011-09-14 10:45:28 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot";
|
2012-06-30 00:41:34 +02:00
|
|
|
make install DESTDIR="%buildroot" pkglibdir="%_libdir/%lname";
|
2011-09-14 10:45:28 +02:00
|
|
|
find "$b" -iname "*.la" -delete;
|
|
|
|
%if !%with_tools
|
|
|
|
rm -Rf "$b/%_sysconfdir/libnl";
|
|
|
|
rm -Rf "$b/%_sbindir" "$b/%_mandir/man8";
|
|
|
|
%endif
|
2012-06-30 00:41:34 +02:00
|
|
|
%if "%{?fudes:1}"
|
2011-09-14 10:45:28 +02:00
|
|
|
%fdupes %buildroot
|
2012-06-30 00:41:34 +02:00
|
|
|
%endif
|
2011-09-14 10:45:28 +02:00
|
|
|
|
|
|
|
%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
|
2011-09-20 10:51:26 +02:00
|
|
|
|
2011-09-14 10:45:28 +02:00
|
|
|
%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
|