[packages/perl-Net-Patricia] - added link patch (kill unnecessary -lnsl from linking); release 10
qboosh
qboosh at pld-linux.org
Sun Aug 30 18:58:42 CEST 2020
commit c0e24076be5e1bf26f963346eb4873167fe28be6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Aug 30 19:01:15 2020 +0200
- added link patch (kill unnecessary -lnsl from linking); release 10
perl-Net-Patricia-link.patch | 10 ++++++++++
perl-Net-Patricia.spec | 9 +++++++--
2 files changed, 17 insertions(+), 2 deletions(-)
---
diff --git a/perl-Net-Patricia.spec b/perl-Net-Patricia.spec
index 3fe8120..d5b1d5e 100644
--- a/perl-Net-Patricia.spec
+++ b/perl-Net-Patricia.spec
@@ -8,15 +8,19 @@ Summary: Net::Patricia - Patricia Trie Perl module for fast IP address lookups
Summary(pl.UTF-8): Net::Patricia - moduł Perla Patricia Trie do szybkiego wyszukiwania adresów IP
Name: perl-Net-Patricia
Version: 1.22
-Release: 9
+Release: 10
License: GPL v2+
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: ef838f7512b050ca4b35d742f9565b3b
+Patch0: %{name}-link.patch
URL: https://metacpan.org/release/Net-Patricia
-BuildRequires: perl-Net-CIDR-Lite
+BuildRequires: perl-Net-CIDR-Lite >= 0.20
BuildRequires: perl-Socket6
BuildRequires: perl-devel >= 1:5.8.0
+%if %{with tests}
+BuildRequires: perl-Test-Simple >= 0.88
+%endif
BuildRequires: rpm-perlprov >= 4.1-13
BuildRequires: rpmbuild(macros) >= 1.745
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,6 +57,7 @@ routingu w jądrze BSD od wersji 4.3 Reno.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
%build
%{__perl} Makefile.PL \
diff --git a/perl-Net-Patricia-link.patch b/perl-Net-Patricia-link.patch
new file mode 100644
index 0000000..6b32828
--- /dev/null
+++ b/perl-Net-Patricia-link.patch
@@ -0,0 +1,10 @@
+--- Net-Patricia-1.22/Makefile.PL.orig 2012-10-09 16:36:34.000000000 +0200
++++ Net-Patricia-1.22/Makefile.PL 2020-08-30 18:56:13.305613689 +0200
+@@ -5,7 +5,6 @@
+ WriteMakefile(
+ 'NAME' => 'Net::Patricia',
+ 'VERSION_FROM' => 'Patricia.pm', # finds $VERSION
+- 'LIBS' => ['-lnsl'], # e.g., '-lm'
+ 'DEFINE' => '', # e.g., '-DHAVE_SOMETHING'
+ 'INC' => '', # e.g., '-I/usr/include/other'
+ 'MYEXTLIB' => 'libpatricia/libpatricia$(LIB_EXT)', # e.g., '-I/usr/include/other'
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Net-Patricia.git/commitdiff/c0e24076be5e1bf26f963346eb4873167fe28be6
More information about the pld-cvs-commit
mailing list