2014-01-20 23:17:08 +01:00
|
|
|
#
|
2014-04-18 18:07:31 +02:00
|
|
|
# spec file for package libnftnl
|
2014-01-20 23:17:08 +01:00
|
|
|
#
|
2020-04-01 20:42:40 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2014-01-20 23:17:08 +01: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.
|
|
|
|
|
2018-11-13 15:08:24 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-01-20 23:17:08 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libnftnl
|
2018-11-13 15:08:24 +01:00
|
|
|
%define lname libnftnl11
|
2020-10-27 11:15:09 +01:00
|
|
|
Version: 1.1.8
|
2014-01-20 23:17:08 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Userspace library to access the nftables Netlink interface
|
2018-05-02 08:02:33 +02:00
|
|
|
License: GPL-2.0-or-later
|
2014-01-20 23:17:08 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2019-08-19 14:15:36 +02:00
|
|
|
URL: https://netfilter.org/projects/libnftnl/
|
2014-01-20 23:17:08 +01:00
|
|
|
|
|
|
|
#Git-Clone: git://git.netfilter.org/libnftnl
|
2014-12-16 00:51:21 +01:00
|
|
|
Source: http://ftp.netfilter.org/pub/libnftnl/%name-%version.tar.bz2
|
|
|
|
Source2: http://ftp.netfilter.org/pub/libnftnl/%name-%version.tar.bz2.sig
|
2020-10-27 13:08:32 +01:00
|
|
|
Source9: %name.keyring
|
2014-04-18 18:07:31 +02:00
|
|
|
BuildRequires: xz
|
2014-12-09 00:42:39 +01:00
|
|
|
BuildRequires: pkgconfig(libmnl) >= 1.0.3
|
2014-01-20 23:17:08 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
libnftnl is a userspace library providing a low-level netlink
|
|
|
|
programming interface (API) to the in-kernel nf_tables subsystem.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: Userspace library to access the nftables Netlink interface
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
libnftnl is a userspace library providing a low-level netlink
|
|
|
|
programming interface (API) to the in-kernel nf_tables subsystem.
|
|
|
|
|
|
|
|
%package devel
|
2017-10-13 02:46:55 +02:00
|
|
|
Summary: Development files for libnftnl
|
2014-01-20 23:17:08 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-10-13 02:46:55 +02:00
|
|
|
Requires: %lname = %version
|
2014-01-20 23:17:08 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libnftnl is a userspace library providing a low-level netlink
|
|
|
|
programming interface (API) to the in-kernel nf_tables subsystem.
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of libnftnl.
|
|
|
|
|
|
|
|
%prep
|
2020-10-27 11:15:09 +01:00
|
|
|
%autosetup -p1
|
2014-01-20 23:17:08 +01:00
|
|
|
|
|
|
|
%build
|
2020-07-27 22:39:48 +02:00
|
|
|
# includedir intentional, cf. bugzilla.opensuse.org/795968
|
2018-11-13 15:08:24 +01:00
|
|
|
%configure --with-xml-parsing --includedir="%_includedir/%name"
|
2020-10-27 11:15:09 +01:00
|
|
|
%make_build
|
2014-01-20 23:17:08 +01:00
|
|
|
|
|
|
|
%install
|
2017-10-13 02:46:55 +02:00
|
|
|
%make_install
|
2015-09-17 15:44:29 +02:00
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
2014-01-20 23:17:08 +01:00
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
2018-11-13 15:08:24 +01:00
|
|
|
%_libdir/libnftnl.so.11*
|
2014-01-20 23:17:08 +01:00
|
|
|
|
|
|
|
%files devel
|
2014-12-09 00:42:39 +01:00
|
|
|
%_includedir/%name/
|
2014-01-20 23:17:08 +01:00
|
|
|
%_libdir/libnftnl.so
|
|
|
|
%_libdir/pkgconfig/libnftnl.pc
|
2020-10-27 11:15:09 +01:00
|
|
|
%license COPYING
|
2014-01-20 23:17:08 +01:00
|
|
|
|
|
|
|
%changelog
|