Sync from SUSE:SLFO:Main libdnet revision b3d32bf1d318701cc2ced9e61688b167

This commit is contained in:
Adrian Schröter 2024-05-03 14:52:24 +02:00
commit 8b504b2c88
5 changed files with 248 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
libdnet-1.17.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

110
libdnet.changes Normal file
View File

@ -0,0 +1,110 @@
-------------------------------------------------------------------
Thu Nov 9 11:21:04 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to libdnet-1.17.0:
* Stronger cmake support, updated autotools and a few smaller
fixes.
- update to libdnet-1.16.4:
* Various fixes around the build process (esp. cmake support +
string.h include fixes)
* Sync in latest changes
* IPv6 support
* Fixed some potential buffer overflows #41
* configure: Use AC_CONFIG_HEADERS instead of deprecated
AM_CONFIG_HEADER
* Don't try to convert hostnames to addresses in addr_pton()
-------------------------------------------------------------------
Thu Apr 27 22:21:49 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.16.4:
* Various fixes around the build process (esp. cmake support +
string.h include fixes)
-------------------------------------------------------------------
Thu Jan 12 10:41:06 UTC 2023 - Andrea Manzini <andrea.manzini@suse.com>
- update to 1.16.3:
- IPv6 support
- fixed some potential buffer overflows
-------------------------------------------------------------------
Thu Oct 15 14:16:52 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- update to 1.14:
* many fixes included
- remove libdnet-autoreconf.patch
libdnet-config-multilib.patch
libdnet-fortify.patch
reproducible.patch: drop (upstream)
- skip-test-subdir.patch: skip building tests, we don't need
to install them and don't run them
-------------------------------------------------------------------
Wed Mar 18 11:12:53 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Drop python2 bindings as they don't make sense to be built with
python2 removal
-------------------------------------------------------------------
Wed Aug 1 04:22:18 UTC 2018 - bwiedemann@suse.com
- Add reproducible.patch to sort linked .o files
to make package build reproducible (boo#1041090)
-------------------------------------------------------------------
Tue Jul 25 00:45:47 UTC 2017 - jengelh@inai.de
- Fix RPM groups, trim summaries, drop pointless --with-pic.
-------------------------------------------------------------------
Mon Jul 17 08:10:34 UTC 2017 - tchvatal@suse.com
- Switch to github
- Rename libdnet.patch to libdnet-autoreconf.patch
- Add patch to work properly on multilib systems:
* libdnet-config-multilib.patch
- Install python bindings
- Add patch for fortify-sources error libdnet-fortify.patch
-------------------------------------------------------------------
Fri Mar 13 13:39:24 UTC 2015 - tchvatal@suse.com
- Reorder bit with spec cleaner
- Make the descriptions bit smaller
-------------------------------------------------------------------
Sun Nov 13 14:54:56 UTC 2011 - jengelh@medozas.de
- Remove redundant/unwanted tags/section (cf. specfile guidelines)
- Use %_smp_mflags for parallel building
-------------------------------------------------------------------
Sun Nov 13 09:15:27 UTC 2011 - coolo@suse.com
- add libtool as explicit buildrequire to avoid implicit dependency from prjconf
-------------------------------------------------------------------
Fri Dec 4 15:44:26 CET 2009 - dmueller@suse.de
- refresh patches
-------------------------------------------------------------------
Tue Oct 20 19:46:05 CEST 2009 - crrodriguez@suse.de
- Update to version 1.12, various bugfixes including
support for newwer python versions
- update download URLs
-------------------------------------------------------------------
Tue Oct 9 09:09:20 CEST 2007 - crrodriguez@suse.de
- fix build by adapting to the library packaging policy
- remove useless libtool archive
- correct some minor packaging issues
-------------------------------------------------------------------
Thu Sep 21 03:26:32 CEST 2006 - dmueller@suse.de
- Initial package (1.11)

99
libdnet.spec Normal file
View File

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

13
skip-test-subdir.patch Normal file
View File

@ -0,0 +1,13 @@
Index: libdnet-libdnet-1.16.3/Makefile.am
===================================================================
--- libdnet-libdnet-1.16.3.orig/Makefile.am
+++ libdnet-libdnet-1.16.3/Makefile.am
@@ -2,7 +2,7 @@
include $(top_srcdir)/Makefile.am.common
-SUBDIRS = include man src python test
+SUBDIRS = include man src python
bin_SCRIPTS = dnet-config