summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Bogusz2024-05-05 19:52:13 (GMT)
committerJakub Bogusz2024-05-05 19:52:13 (GMT)
commitf27335a8665d7f711e08cfdbe2c81ac1ef263f41 (patch)
tree5bcbac31df58a520f558cb022ca87a0293e71b1a
parent4ac1d33a316839e8b5b097e80c93394f2fb3e098 (diff)
downloadarping-f27335a8665d7f711e08cfdbe2c81ac1ef263f41.zip
arping-f27335a8665d7f711e08cfdbe2c81ac1ef263f41.tar.gz
-rw-r--r--arping-nolibs.patch10
-rw-r--r--arping.spec7
2 files changed, 9 insertions, 8 deletions
diff --git a/arping-nolibs.patch b/arping-nolibs.patch
index 01a915d..55e96b1 100644
--- a/arping-nolibs.patch
+++ b/arping-nolibs.patch
@@ -1,13 +1,11 @@
---- arping-2.23/configure.ac.orig 2023-12-23 15:50:50.457952760 +0100
-+++ arping-2.23/configure.ac 2023-12-23 16:52:39.041194975 +0100
-@@ -22,9 +22,9 @@ AC_PROG_MAKE_SET
- CPPFLAGS="$CPPFLAGS -D_DEFAULT_SOURCE=1"
+--- arping-2.24/configure.ac.orig 2024-05-05 21:42:00.539234006 +0200
++++ arping-2.24/configure.ac 2024-05-05 21:47:33.224098364 +0200
+@@ -37,8 +37,8 @@ CHECK_COMPILER_OPTION([-std=c99])
# Checks for libraries.
--AC_CHECK_LIB([m], [sqrt])
+ AC_CHECK_LIB([m], [sqrt])
-AC_CHECK_LIB([socket], [socket])
-AC_CHECK_LIB([nsl], [gethostbyname])
-+AC_SEARCH_LIBS([sqrt], [m])
+AC_SEARCH_LIBS([socket], [socket])
+AC_SEARCH_LIBS([gethostbyname], [nsl])
AC_CHECK_LIB([cap], [cap_init])
diff --git a/arping.spec b/arping.spec
index 62ab993..1c4a0c9 100644
--- a/arping.spec
+++ b/arping.spec
@@ -1,12 +1,12 @@
Summary: ARPing - ping an address by ARP packets
Summary(pl.UTF-8): ARPing - pingowanie adresów pakietami ARP
Name: arping
-Version: 2.23
+Version: 2.24
Release: 1
License: GPL v2
Group: Networking/Admin
Source0: https://www.habets.pp.se/synscan/files/%{name}-%{version}.tar.gz
-# Source0-md5: 538a27fcce5262331419518c032598da
+# Source0-md5: b4d49d2805fc7db1e7c981325b105be2
Patch0: %{name}-nolibs.patch
URL: https://www.habets.pp.se/synscan/programs_arping.html
BuildRequires: autoconf >= 2.61
@@ -48,6 +48,9 @@ rm -rf $RPM_BUILD_ROOT
cp -p extra/arping-scan-net.sh \
$RPM_BUILD_ROOT%{_sbindir}/arping-scan-net.sh
+# interfaces not accessible in binary package
+%{__rm} $RPM_BUILD_ROOT%{_includedir}/arping.h
+
%clean
rm -rf $RPM_BUILD_ROOT