2010-12-07 12:01:34 +01:00
|
|
|
#
|
2011-12-29 21:50:02 +01:00
|
|
|
# spec file for package libmnl
|
2010-12-07 12:01:34 +01:00
|
|
|
#
|
2022-04-05 23:31:18 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2010-12-07 12:01:34 +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.
|
2010-10-19 13:05:32 +02:00
|
|
|
|
2020-04-16 23:39:50 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-12-07 12:01:34 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-05-26 20:34:25 +02:00
|
|
|
%define lname %{name}0
|
2020-04-16 23:39:50 +02:00
|
|
|
Name: libmnl
|
2022-04-05 23:31:18 +02:00
|
|
|
Version: 1.0.5
|
2012-05-26 20:34:25 +02:00
|
|
|
Release: 0
|
2014-12-09 13:01:34 +01:00
|
|
|
Summary: Minimalistic Netlink communication library
|
2020-04-16 23:39:50 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2014-12-09 13:01:34 +01:00
|
|
|
Group: Productivity/Networking/Security
|
2020-04-16 23:39:50 +02:00
|
|
|
URL: https://netfilter.org/projects/libmnl/
|
2011-12-31 21:34:41 +01:00
|
|
|
#Git-Clone: git://git.netfilter.org/libmnl
|
2022-04-05 23:31:18 +02:00
|
|
|
Source: https://www.netfilter.org/projects/libmnl/files/libmnl-%version.tar.bz2
|
|
|
|
Source2: https://www.netfilter.org/projects/libmnl/files/libmnl-%version.tar.bz2.sig
|
2012-12-03 22:32:35 +01:00
|
|
|
Source3: %name.keyring
|
2011-08-01 19:41:25 +02:00
|
|
|
Source9: baselibs.conf
|
2024-10-14 13:36:35 +02:00
|
|
|
BuildRequires: doxygen
|
2012-05-26 20:34:25 +02:00
|
|
|
BuildRequires: libtool
|
2024-10-14 13:36:35 +02:00
|
|
|
BuildRequires: pkg-config >= 0.21
|
2010-10-19 13:05:32 +02:00
|
|
|
|
|
|
|
%description
|
2024-10-14 13:36:35 +02:00
|
|
|
libmnl is a user-space library for parsing, validation, constructing
|
|
|
|
Netlink headers and TLVs.
|
2010-10-19 13:05:32 +02:00
|
|
|
|
2010-12-07 12:02:15 +01:00
|
|
|
%package -n %lname
|
2010-12-07 12:01:34 +01:00
|
|
|
Summary: Minimalistic Netlink communication library
|
2012-05-26 20:34:25 +02:00
|
|
|
Group: System/Libraries
|
2010-12-07 12:01:34 +01:00
|
|
|
|
2010-12-07 12:02:15 +01:00
|
|
|
%description -n %lname
|
2024-10-14 13:36:35 +02:00
|
|
|
libmnl is a user-space library for Netlink developers. There are a
|
|
|
|
lot of common tasks in parsing, validating, constructing of both the
|
|
|
|
Netlink header and TLVs that are repetitive and easy to get wrong.
|
|
|
|
This library provides helpers that allow for code reuse.
|
2010-10-19 13:05:32 +02:00
|
|
|
|
2022-04-05 23:31:18 +02:00
|
|
|
%package devel
|
2024-10-14 13:36:35 +02:00
|
|
|
Summary: Headers for libmnl, a Netlink communications library
|
2012-05-26 20:34:25 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2020-04-16 23:39:50 +02:00
|
|
|
Requires: %lname = %version
|
2010-10-19 13:05:32 +02:00
|
|
|
|
2022-04-05 23:31:18 +02:00
|
|
|
%description devel
|
2024-10-14 13:36:35 +02:00
|
|
|
libmnl is a user-space library for parsing, validation, constructing
|
|
|
|
Netlink headers and TLVs. This subpackage has the header files.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for libmnl, a Netlink communications library
|
|
|
|
Group: Documentation/HTML
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
libmnl is a user-space library for parsing, validation, constructing
|
|
|
|
Netlink headers and TLVs. This subpackage has the documentation.
|
2010-10-19 13:05:32 +02:00
|
|
|
|
|
|
|
%prep
|
2024-10-14 13:36:35 +02:00
|
|
|
%autosetup -p1
|
2010-10-19 13:05:32 +02:00
|
|
|
|
|
|
|
%build
|
2022-04-05 23:31:18 +02:00
|
|
|
# includedir intentional, cf. bugzilla.opensuse.org/795968
|
2024-10-14 13:36:35 +02:00
|
|
|
%configure --includedir="%_includedir/%name" --with-doxygen
|
2020-04-16 23:39:50 +02:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
%check
|
|
|
|
%make_build check
|
2010-10-19 13:05:32 +02:00
|
|
|
|
|
|
|
%install
|
2014-09-23 23:15:48 +02:00
|
|
|
%make_install
|
2024-10-14 13:36:35 +02:00
|
|
|
find "%buildroot" -type f -name "*.la" -delete -print
|
2010-10-19 13:05:32 +02:00
|
|
|
|
2024-10-14 13:36:35 +02:00
|
|
|
%ldconfig_scriptlets -n %lname
|
2010-10-19 13:05:32 +02:00
|
|
|
|
2010-12-07 12:02:15 +01:00
|
|
|
%files -n %lname
|
2020-04-16 23:39:50 +02:00
|
|
|
%license COPYING
|
|
|
|
%_libdir/libmnl.so.*
|
2010-10-19 13:05:32 +02:00
|
|
|
|
2022-04-05 23:31:18 +02:00
|
|
|
%files devel
|
2020-04-16 23:39:50 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README
|
2014-12-09 13:01:34 +01:00
|
|
|
%_includedir/%name/
|
2011-12-31 21:34:41 +01:00
|
|
|
%_libdir/libmnl.so
|
|
|
|
%_libdir/pkgconfig/libmnl.pc
|
2010-10-19 13:05:32 +02:00
|
|
|
|
2024-10-14 13:36:35 +02:00
|
|
|
%files doc
|
|
|
|
%_mandir/man3/*.3*
|
|
|
|
|
2010-10-19 13:05:32 +02:00
|
|
|
%changelog
|