From 10e8c715778f5bd2716ed8d73cb85d43c1b37b6cbb6af0b4264b12646a44366b Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 16 Apr 2020 21:39:50 +0000 Subject: [PATCH] Accepting request 794683 from home:AndreasStieger:branches:security:netfilter - package the license text OBS-URL: https://build.opensuse.org/request/show/794683 OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libmnl?expand=0&rev=36 --- libmnl.changes | 5 +++++ libmnl.spec | 31 +++++++++++++++---------------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/libmnl.changes b/libmnl.changes index c8328fa..23ab44d 100644 --- a/libmnl.changes +++ b/libmnl.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 16 21:33:35 UTC 2020 - Andreas Stieger + +- package the license text + ------------------------------------------------------------------- Sat Jul 2 14:02:58 UTC 2016 - jengelh@inai.de diff --git a/libmnl.spec b/libmnl.spec index 0a43367..a5f3647 100644 --- a/libmnl.spec +++ b/libmnl.spec @@ -1,7 +1,7 @@ # # spec file for package libmnl # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,25 +12,23 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -Name: libmnl %define lname %{name}0 +Name: libmnl Version: 1.0.4 Release: 0 -Url: http://netfilter.org/projects/libmnl/ Summary: Minimalistic Netlink communication library -License: LGPL-2.1+ +License: LGPL-2.1-or-later Group: Productivity/Networking/Security - +URL: https://netfilter.org/projects/libmnl/ #Git-Clone: git://git.netfilter.org/libmnl Source: ftp://ftp.netfilter.org/pub/libmnl/%name-%version.tar.bz2 Source2: ftp://ftp.netfilter.org/pub/libmnl/%name-%version.tar.bz2.sig Source3: %name.keyring Source9: baselibs.conf -BuildRoot: %{_tmppath}/%{name}-%{version}-build #git#BuildRequires: autoconf, automake >= 1.6 BuildRequires: libtool BuildRequires: pkgconfig >= 0.21 @@ -54,9 +52,9 @@ and easy to get wrong. This library aims to provide simple helpers that allows you to re-use code and to avoid re-inventing the wheel. %package -n %name-devel -Requires: %lname = %version Summary: Development files for libmnl Group: Development/Libraries/C and C++ +Requires: %lname = %version %description -n %name-devel libmnl is a minimalistic user-space library oriented to Netlink @@ -69,25 +67,26 @@ that allows you to re-use code and to avoid re-inventing the wheel. %setup -q %build -if [ ! -e configure ]; then - autoreconf -fi; -fi; %configure --includedir="%_includedir/%name" -make %{?_smp_mflags} +%make_build + +%check +%make_build check %install %make_install -rm -f "%buildroot/%_libdir"/*.la +find %{buildroot} -type f -name "*.la" -delete -print %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n %lname -%defattr(-,root,root) -%_libdir/libmnl.so.0* +%license COPYING +%_libdir/libmnl.so.* %files -n %name-devel -%defattr(-,root,root) +%license COPYING +%doc README %_includedir/%name/ %_libdir/libmnl.so %_libdir/pkgconfig/libmnl.pc