]> git.pld-linux.org Git - packages/perl-Net-Patricia.git/commitdiff
- added link patch (kill unnecessary -lnsl from linking); release 10 auto/th/perl-Net-Patricia-1.22-10
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Aug 2020 17:01:15 +0000 (19:01 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 30 Aug 2020 17:01:15 +0000 (19:01 +0200)
perl-Net-Patricia-link.patch [new file with mode: 0644]
perl-Net-Patricia.spec

diff --git a/perl-Net-Patricia-link.patch b/perl-Net-Patricia-link.patch
new file mode 100644 (file)
index 0000000..6b32828
--- /dev/null
@@ -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' 
index 3fe8120328ba7409ccf5517f9f2a95e80f8cec66..d5b1d5e91a04dcff671984cf73b680476b3c5198 100644 (file)
@@ -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 \
This page took 0.101826 seconds and 4 git commands to generate.