3 %bcond_without tests # do not perform "make test"
7 Summary: Net::Patricia - Patricia Trie Perl module for fast IP address lookups
8 Summary(pl.UTF-8): Net::Patricia - moduł Perla Patricia Trie do szybkiego wyszukiwania adresów IP
9 Name: perl-Net-Patricia
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: ef838f7512b050ca4b35d742f9565b3b
16 Patch0: %{name}-link.patch
17 URL: https://metacpan.org/release/Net-Patricia
18 BuildRequires: perl-Net-CIDR-Lite >= 0.20
19 BuildRequires: perl-Socket6
20 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: perl-Test-Simple >= 0.88
24 BuildRequires: rpm-perlprov >= 4.1-13
25 BuildRequires: rpmbuild(macros) >= 1.745
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This module uses a Patricia Trie data structure to quickly perform IP
30 address prefix matching for applications such as IP subnet, network or
31 routing table lookups.
33 The data structure is based on a radix tree using a radix of two,
34 so sometimes you see patricia implementations called "radix" as well.
35 The term "Trie" is derived from the word "retrieval" but is pronounced
36 like "try". Patricia stands for "Practical Algorithm to Retrieve
37 Information Coded as Alphanumeric", and was first suggested for
38 routing table lookups by Van Jacobsen. Patricia Trie performance
39 characteristics are well-known as it has been employed for routing
40 table lookups within the BSD kernel since the 4.3 Reno release.
42 %description -l pl.UTF-8
43 Ten moduł używa struktury danych Patricia Trie do wykonywania
44 szybkiego dopasowywania prefiksów IP dla zastosowań takich jak
45 przeszukiwanie podsieci IP, sieci czy tabel routingu.
47 Struktura danych jest oparta na drzewie radix przy podstawie
48 wynoszącej 2 - implementacje patricia czasem są nazywane także radix.
49 Termin "Trie" pochodzi od słowa "retrieval" (odczytywanie), ale jest
50 wymawiany jak "try". Patricia to skrót od "Practical Algorithm to
51 Retrieve Information Coded as Alphanumeric" (praktyczny algorytm
52 odczytywania informacji zakodowanych alfanumerycznie) i jako
53 pierwszy zaproponowany do przeszukiwania tabel routingu przez Van
54 Jacobsena. Charakterystyki wydajności Patricia Trie są dobrze znane,
55 jako że struktura ta jest wykorzystywana przy przeszukiwaniu tabel
56 routingu w jądrze BSD od wersji 4.3 Reno.
59 %setup -q -n %{pdir}-%{pnam}-%{version}
63 %{__perl} Makefile.PL \
67 OPTIMIZE="%{rpmcflags}"
69 %{?with_tests:%{__make} test}
72 rm -rf $RPM_BUILD_ROOT
75 DESTDIR=$RPM_BUILD_ROOT
78 rm -rf $RPM_BUILD_ROOT
81 %defattr(644,root,root,755)
83 %{perl_vendorarch}/Net/Patricia.pm
84 %dir %{perl_vendorarch}/auto/Net/Patricia
85 %attr(755,root,root) %{perl_vendorarch}/auto/Net/Patricia/Patricia.so
86 %{_mandir}/man3/Net::Patricia.3pm*