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
|
|
|
#
|
2020-03-18 11:39:27 +00:00
|
|
|
# Copyright (c) 2020 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
|
2009-11-16 14:51:40 +00:00
|
|
|
Version: 1.12
|
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
|
|
|
|
# PATCH-FIX-UPSTREAM: properly name the dirs for new autoreconf to work
|
|
|
|
Patch0: libdnet-autoreconf.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: work properly on multilib systems (from Fedora)
|
|
|
|
Patch1: libdnet-config-multilib.patch
|
|
|
|
# PATCH-FIX-UPSTREAM: do include string.h when needed, this is autogenerated
|
|
|
|
# file which can't be generated with today tools :(
|
|
|
|
Patch2: libdnet-fortify.patch
|
2018-08-01 07:11:01 +00:00
|
|
|
Patch3: reproducible.patch
|
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}
|
2007-01-15 23:21:37 +00:00
|
|
|
%patch0
|
2017-07-17 10:34:36 +00:00
|
|
|
%patch1
|
|
|
|
%patch2 -p1
|
2018-08-01 07:11:01 +00:00
|
|
|
%patch3 -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
|
|
|
|
%doc README TODO THANKS
|
2007-10-11 00:03:55 +00:00
|
|
|
%{_sbindir}/*
|
|
|
|
%{_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
|