From 71d37d5e455feca54836735be0bd1cbc3b938092 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 05:11:18 +0100 Subject: [PATCH] added tools and debug subpackages [release 3.5.0-2mamba;Thu Jun 10 2021] --- libnl.spec | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/libnl.spec b/libnl.spec index 732722d..2cc5255 100644 --- a/libnl.spec +++ b/libnl.spec @@ -1,13 +1,13 @@ %define uver %(echo %version | tr . _) Name: libnl Version: 3.5.0 -Release: 1mamba +Release: 2mamba Summary: A library for applications dealing with netlink sockets Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://people.suug.ch/~tgr/libnl/ +URL: https://github.com/thom311/libnl/ Source: https://github.com/thom311/libnl/releases/download/libnl%{uver}/libnl-%{version}.tar.gz Patch0: %{name}-1.1-vlan_include_fix.patch Patch1: %{name}-1.1-glibc-2.8.patch @@ -16,7 +16,7 @@ License: LGPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root +Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release} %description libnl is a library for applications dealing with netlink sockets. @@ -32,6 +32,17 @@ libnl is a library for applications dealing with netlink sockets. The library provides an interface for raw netlink messaging and various netlink family specific interfaces. This package contains static libraries and header files need for development. +%package tools +Group: Network/Libraries +Summary: Tools provided with %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +libnl is a library for applications dealing with netlink sockets. +This package contains the tools provided with %{name}. + +%debug_package + %prep %setup -q %patch0 -p1 @@ -59,15 +70,9 @@ chmod 644 ChangeLog COPYING %dir %{_sysconfdir}/libnl %config %{_sysconfdir}/libnl/classid %config %{_sysconfdir}/libnl/pktloc -%{_bindir}/genl-ctrl-list -%{_bindir}/idiag-socket-details -%{_bindir}/nf-* -%{_bindir}/nl-* %{_libdir}/libnl*.so.* %dir %{_libdir}/libnl %{_libdir}/libnl/* -%{_mandir}/man8/nl-*.8.* -%{_mandir}/man8/genl-ctrl-list.8.* %doc COPYING %files devel @@ -86,7 +91,19 @@ chmod 644 ChangeLog COPYING %{_libdir}/pkgconfig/libnl-route-3.0.pc #%doc ChangeLog +%files tools +%defattr(-,root,root) +%{_bindir}/genl-ctrl-list +%{_bindir}/idiag-socket-details +%{_bindir}/nf-* +%{_bindir}/nl-* +%{_mandir}/man8/nl-*.8.* +%{_mandir}/man8/genl-ctrl-list.8.* + %changelog +* Thu Jun 10 2021 Silvan Calarco 3.5.0-2mamba +- added tools and debug subpackages + * Mon Sep 30 2019 Automatic Build System 3.5.0-1mamba - automatic version update by autodist