2007-01-15 23:21:37 +00:00
|
|
|
#
|
2011-11-13 10:14:49 +00:00
|
|
|
# spec file for package libdnet
|
2007-01-15 23:21:37 +00:00
|
|
|
#
|
2023-01-13 07:32:15 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-15 23:21:37 +00:00
|
|
|
#
|
2009-06-18 22:57:33 +00: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.
|
|
|
|
|
2020-03-18 11:39:27 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:21:37 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libdnet
|
2023-01-13 07:32:15 +00:00
|
|
|
Version: 1.16.3
|
2015-03-13 13:39:46 +00:00
|
|
|
Release: 0
|
2017-07-25 06:30:45 +00:00
|
|
|
Summary: Library for Portable Interface to Low-Level Networking Routines
|
2015-03-13 13:39:46 +00:00
|
|
|
License: BSD-3-Clause
|
2020-03-18 11:39:27 +00:00
|
|
|
URL: https://github.com/dugsong/libdnet
|
2017-07-17 10:34:36 +00:00
|
|
|
Source0: https://github.com/dugsong/libdnet/archive/%{name}-%{version}.tar.gz
|
2020-10-16 06:31:44 +00:00
|
|
|
# Skip the test subdir, as installing that is not necessary
|
|
|
|
Patch1: skip-test-subdir.patch
|
2023-01-13 07:32:15 +00:00
|
|
|
BuildRequires: check-devel
|
2017-07-17 10:34:36 +00:00
|
|
|
BuildRequires: libbsd-devel
|
2015-03-13 13:39:46 +00:00
|
|
|
BuildRequires: libtool
|
2007-01-15 23:21:37 +00:00
|
|
|
|
|
|
|
%description
|
2017-07-25 06:30:45 +00:00
|
|
|
libdnet provides a portable interface to several low-level
|
2007-01-15 23:21:37 +00:00
|
|
|
networking routines, including:
|
2007-10-11 00:03:55 +00:00
|
|
|
* network address manipulation
|
|
|
|
* kernel arp(4) cache and route(4) table lookup and manipulation
|
2015-03-13 13:39:46 +00:00
|
|
|
* network firewalling (IP filter, ipfw, ipchains, pf, PktFilter, ...)
|
2007-10-11 00:03:55 +00:00
|
|
|
* network interface lookup and manipulation
|
|
|
|
* IP tunnelling (BSD/Linux tun, Universal TUN/TAP device)
|
|
|
|
* raw IP packet and Ethernet frame transmission
|
|
|
|
|
|
|
|
%package -n libdnet1
|
2017-07-25 06:30:45 +00:00
|
|
|
Summary: Library for Portable Interface to Low-Level Networking Routines
|
2007-10-11 00:03:55 +00:00
|
|
|
|
|
|
|
%description -n libdnet1
|
2017-07-25 06:30:45 +00:00
|
|
|
libdnet provides a portable interface to several low-level
|
2007-10-11 00:03:55 +00:00
|
|
|
networking routines, including:
|
|
|
|
* network address manipulation
|
|
|
|
* kernel arp(4) cache and route(4) table lookup and manipulation
|
2015-03-13 13:39:46 +00:00
|
|
|
* network firewalling (IP filter, ipfw, ipchains, pf, PktFilter, ...)
|
2007-10-11 00:03:55 +00:00
|
|
|
* network interface lookup and manipulation
|
|
|
|
* IP tunnelling (BSD/Linux tun, Universal TUN/TAP device)
|
|
|
|
* raw IP packet and Ethernet frame transmission
|
2007-01-15 23:21:37 +00:00
|
|
|
|
|
|
|
%package devel
|
2017-07-25 06:30:45 +00:00
|
|
|
Summary: Development files for libdnet
|
2015-03-13 13:39:46 +00:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libdnet1 = %{version}
|
2007-01-15 23:21:37 +00:00
|
|
|
|
|
|
|
%description devel
|
2017-07-25 06:30:45 +00:00
|
|
|
libdnet provides a portable interface to several low-level
|
2007-01-15 23:21:37 +00:00
|
|
|
networking routines, including:
|
|
|
|
- network address manipulation
|
|
|
|
- kernel arp(4) cache and route(4) table lookup and manipulation
|
2015-03-13 13:39:46 +00:00
|
|
|
- network firewalling (IP filter, ipfw, ipchains, pf, PktFilter, ...)
|
2007-01-15 23:21:37 +00:00
|
|
|
- network interface lookup and manipulation
|
|
|
|
- IP tunnelling (BSD/Linux tun, Universal TUN/TAP device)
|
|
|
|
- raw IP packet and Ethernet frame transmission
|
|
|
|
|
|
|
|
%prep
|
2017-07-17 10:34:36 +00:00
|
|
|
%setup -q -n %{name}-%{name}-%{version}
|
2020-10-16 06:31:44 +00:00
|
|
|
%autopatch -p1
|
2007-01-15 23:21:37 +00:00
|
|
|
|
|
|
|
%build
|
2015-03-13 13:39:46 +00:00
|
|
|
ACLOCAL="aclocal -I config" autoreconf -fvi
|
2017-07-25 06:30:45 +00:00
|
|
|
%configure --disable-static
|
2020-03-18 11:39:27 +00:00
|
|
|
%make_build
|
2017-07-17 10:34:36 +00:00
|
|
|
|
2007-01-15 23:21:37 +00:00
|
|
|
%install
|
2017-07-17 10:34:36 +00:00
|
|
|
%make_install
|
2015-03-13 13:39:46 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2017-07-17 10:34:36 +00:00
|
|
|
%post -n libdnet1 -p /sbin/ldconfig
|
2007-10-11 00:03:55 +00:00
|
|
|
%postun -n libdnet1 -p /sbin/ldconfig
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
%files -n libdnet1
|
|
|
|
%{_libdir}/libdnet.so.1*
|
2007-01-15 23:21:37 +00:00
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
%files devel
|
2020-03-18 11:39:27 +00:00
|
|
|
%license LICENSE
|
2020-10-16 06:31:44 +00:00
|
|
|
%doc README.md TODO THANKS
|
2007-10-11 00:03:55 +00:00
|
|
|
%{_bindir}/dnet-config
|
|
|
|
%{_includedir}/dnet.h
|
|
|
|
%dir %{_includedir}/dnet
|
|
|
|
%{_includedir}/dnet/*.h
|
|
|
|
%{_libdir}/libdnet.so
|
2017-07-17 10:34:36 +00:00
|
|
|
%{_mandir}/man?/dnet.*%{ext_man}
|
2009-06-18 22:57:33 +00:00
|
|
|
|
2007-10-11 00:03:55 +00:00
|
|
|
%changelog
|