[packages/arping] - updated to 2.14 - added nolibs patch (don't look for -lnsl or -lsocket when unnecessary)
qboosh
qboosh at pld-linux.org
Fri Jul 4 20:22:29 CEST 2014
commit 5e155869e535c8615c1024f12f55b8d36d315efc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Jul 4 20:27:01 2014 +0200
- updated to 2.14
- added nolibs patch (don't look for -lnsl or -lsocket when unnecessary)
arping-nolibs.patch | 13 +++++++++++++
arping.spec | 14 +++++++++++---
2 files changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/arping.spec b/arping.spec
index a9dd465..e72e2be 100644
--- a/arping.spec
+++ b/arping.spec
@@ -1,16 +1,19 @@
Summary: ARPing - ping an address by ARP packets
Summary(pl.UTF-8): ARPing - pingowanie adresów pakietami ARP
Name: arping
-Version: 2.13
+Version: 2.14
Release: 1
License: GPL v2
Group: Networking/Admin
Source0: http://www.habets.pp.se/synscan/files/%{name}-%{version}.tar.gz
-# Source0-md5: 698e4a87d4ea6c8535b07b06d9ed503e
+# Source0-md5: 882fb399e828371897c45965974f34af
+Patch0: %{name}-nolibs.patch
URL: http://www.habets.pp.se/synscan/programs.php?prog=arping
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake
+BuildRequires: libcap-devel
BuildRequires: libnet-devel > 1.1
BuildRequires: libpcap-devel
-BuildRequires: sed >= 4.0
Requires: bc
Obsoletes: iputils-arping
Conflicts: iputils <= 1:ss021109-2
@@ -26,8 +29,12 @@ ARP.
%prep
%setup -q
+%patch0 -p1
%build
+%{__aclocal}
+%{__autoconf}
+%{__automake}
%configure
%{__make}
@@ -44,6 +51,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc README
%attr(4754,root,adm) %{_sbindir}/arping
%attr(754,root,adm) %{_sbindir}/arping-scan-net.sh
%{_mandir}/man8/arping.8*
diff --git a/arping-nolibs.patch b/arping-nolibs.patch
new file mode 100644
index 0000000..6c9c014
--- /dev/null
+++ b/arping-nolibs.patch
@@ -0,0 +1,13 @@
+--- arping-2.14/configure.ac.orig 2014-06-29 12:05:51.000000000 +0200
++++ arping-2.14/configure.ac 2014-07-04 20:21:49.765587884 +0200
+@@ -17,8 +17,8 @@
+
+ # Checks for libraries.
+ AC_CHECK_LIB([m], [sqrt])
+-AC_CHECK_LIB([socket], [socket])
+-AC_CHECK_LIB([nsl], [gethostbyname])
++AC_SEARCH_LIBS([socket], [socket])
++AC_SEARCH_LIBS([gethostbyname], [nsl])
+ AC_CHECK_LIB([cap], [cap_init])
+ AC_CHECK_LIB([rt], [clock_gettime])
+ AC_CHECK_LIB([net], [libnet_name_resolve],
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/arping.git/commitdiff/5e155869e535c8615c1024f12f55b8d36d315efc
More information about the pld-cvs-commit
mailing list