2011-09-20 10:51:26 +02:00
|
|
|
#
|
|
|
|
# spec file for package libnl3
|
|
|
|
#
|
2020-10-14 11:12:44 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2019-12-20 00:03:56 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-09-20 10:51:26 +02:00
|
|
|
#
|
|
|
|
|
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
|
2019-12-20 00:03:56 +01:00
|
|
|
%define uver 3_5_0
|
|
|
|
Version: 3.5.0
|
2011-09-20 10:51:26 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Convenience library for working with Netlink sockets
|
2019-12-20 00:03:56 +01:00
|
|
|
License: LGPL-2.1-only AND GPL-2.0-only
|
2011-09-20 10:51:26 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-12-20 00:03:56 +01:00
|
|
|
URL: http://www.carisma.slowglass.com/~tgr/libnl/#(outdated)
|
2011-09-14 10:45:28 +02:00
|
|
|
|
2019-12-20 00:03:56 +01:00
|
|
|
#Git-Clone: https://github.com/thom311/libnl/
|
|
|
|
Source: https://github.com/thom311/libnl/releases/download/libnl%uver/libnl-%version.tar.gz
|
|
|
|
Source2: https://github.com/thom311/libnl/releases/download/libnl%uver/libnl-%version.tar.gz.sig
|
2016-02-02 12:38:09 +01:00
|
|
|
Source3: baselibs.conf
|
2014-10-08 16:17:44 +02:00
|
|
|
BuildRequires: bison >= 2.4
|
2012-06-30 00:41:34 +02:00
|
|
|
BuildRequires: fdupes
|
2020-10-14 11:12:44 +02:00
|
|
|
BuildRequires: flex >= 2.5.19
|
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
|
2019-12-20 00:03:56 +01:00
|
|
|
License: LGPL-2.1-only
|
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
|
2019-12-20 00:03:56 +01:00
|
|
|
License: LGPL-2.1-only
|
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
|
2019-12-20 00:03:56 +01:00
|
|
|
License: LGPL-2.1-only AND GPL-2.0-only
|
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
|
2019-12-20 00:03:56 +01:00
|
|
|
License: GPL-2.0-only
|
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
|
2020-10-14 11:12:44 +02:00
|
|
|
%autosetup -p1 -n libnl-%version
|
2011-09-14 10:45:28 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static
|
2020-10-14 11:12:44 +02:00
|
|
|
%make_build pkglibdir="%_libdir/%lname"
|
2011-09-14 10:45:28 +02:00
|
|
|
|
|
|
|
%install
|
2020-10-14 11:12:44 +02:00
|
|
|
b="%buildroot"
|
|
|
|
%make_install pkglibdir="%_libdir/%lname"
|
2017-03-17 12:59:52 +01:00
|
|
|
find "$b" -iname "*.la" -delete
|
2011-09-14 10:45:28 +02:00
|
|
|
%if !%with_tools
|
2017-03-17 12:59:52 +01:00
|
|
|
rm -Rf "$b/%_sysconfdir/libnl"
|
|
|
|
rm -Rf "$b/%_sbindir" "$b/%_mandir/man8"
|
2011-09-14 10:45:28 +02:00
|
|
|
%endif
|
2013-06-05 16:22:24 +02:00
|
|
|
%if 0%{?fdupes:1}
|
2012-11-27 00:05:02 +01:00
|
|
|
%fdupes %buildroot/%_prefix
|
2012-06-30 00:41:34 +02:00
|
|
|
%endif
|
2011-09-14 10:45:28 +02:00
|
|
|
|
2013-03-07 21:01:46 +01:00
|
|
|
%post -n %lname -p /sbin/ldconfig
|
2011-09-14 10:45:28 +02:00
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
2013-01-25 05:08:53 +01:00
|
|
|
%_libdir/libnl*.so.200*
|
2011-09-14 10:45:28 +02:00
|
|
|
%_libdir/%lname
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%_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
|
|
|
|
%dir %_sysconfdir/libnl
|
|
|
|
%config %_sysconfdir/libnl/*
|
|
|
|
|
|
|
|
%files -n libnl-tools
|
|
|
|
%_mandir/man*/*
|
2016-02-02 12:38:09 +01:00
|
|
|
%_bindir/*
|
2011-09-14 10:45:28 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|