]> git.pld-linux.org Git - packages/perl-Net-Patricia.git/blame - perl-Net-Patricia.spec
- release 4 (by relup.sh)
[packages/perl-Net-Patricia.git] / perl-Net-Patricia.spec
CommitLineData
7077a6af 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
eafd7b72 5%include /usr/lib/rpm/macros.perl
fb3836a1 6%define pdir Net
7%define pnam Patricia
10219915 8Summary: Net::Patricia - Patricia Trie Perl module for fast IP address lookups
c848b220 9Summary(pl.UTF-8): Net::Patricia - moduł Perla Patricia Trie do szybkiego wyszukiwania adresów IP
f6e6cb39 10Name: perl-Net-Patricia
5cdc7629 11Version: 1.22
918c57ae 12Release: 4
7077a6af 13License: GPL v2+
f6e6cb39 14Group: Development/Languages/Perl
6bfde737 15Source0: http://search.cpan.org/CPAN/authors/id/G/GR/GRUBER/%{pdir}-%{pnam}-%{version}.tar.gz
5cdc7629 16# Source0-md5: ef838f7512b050ca4b35d742f9565b3b
53577016 17URL: http://search.cpan.org/dist/Net-Patricia/
037881ee 18BuildRequires: perl-Net-CIDR-Lite
796c2ecc 19BuildRequires: perl-Socket6
8a41e6d7 20BuildRequires: perl-devel >= 1:5.8.0
10219915 21BuildRequires: rpm-perlprov >= 4.1-13
f6e6cb39
AM
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
84eae822 25This module uses a Patricia Trie data structure to quickly perform IP
26address prefix matching for applications such as IP subnet, network or
27routing table lookups.
28
29The data structure is based on a radix tree using a radix of two,
30so sometimes you see patricia implementations called "radix" as well.
31The term "Trie" is derived from the word "retrieval" but is pronounced
32like "try". Patricia stands for "Practical Algorithm to Retrieve
10219915
JB
33Information Coded as Alphanumeric", and was first suggested for
34routing table lookups by Van Jacobsen. Patricia Trie performance
35characteristics are well-known as it has been employed for routing
36table lookups within the BSD kernel since the 4.3 Reno release.
37
e5bf6b87
JR
38%description -l pl.UTF-8
39Ten moduł używa struktury danych Patricia Trie do wykonywania
40szybkiego dopasowywania prefiksów IP dla zastosowań takich jak
10219915 41przeszukiwanie podsieci IP, sieci czy tabel routingu.
84eae822 42
10219915 43Struktura danych jest oparta na drzewie radix przy podstawie
e5bf6b87
JR
44wynoszącej 2 - implementacje patricia czasem są nazywane także radix.
45Termin "Trie" pochodzi od słowa "retrieval" (odczytywanie), ale jest
46wymawiany jak "try". Patricia to skrót od "Practical Algorithm to
10219915
JB
47Retrieve Information Coded as Alphanumeric" (praktyczny algorytm
48odczytywania informacji zakodowanych alfanumerycznie) i jako
49pierwszy zaproponowany do przeszukiwania tabel routingu przez Van
e5bf6b87
JR
50Jacobsena. Charakterystyki wydajności Patricia Trie są dobrze znane,
51jako że struktura ta jest wykorzystywana przy przeszukiwaniu tabel
52routingu w jądrze BSD od wersji 4.3 Reno.
34897f4d 53
f6e6cb39 54%prep
eafd7b72 55%setup -q -n %{pdir}-%{pnam}-%{version}
f6e6cb39
AM
56
57%build
b640fd86 58%{__perl} Makefile.PL \
5c4e5af6 59 INSTALLDIRS=vendor
7077a6af 60%{__make} \
7838af19 61 CC="%{__cc}" \
7077a6af 62 OPTIMIZE="%{rpmcflags}"
63
64%{?with_tests:%{__make} test}
f6e6cb39
AM
65
66%install
67rm -rf $RPM_BUILD_ROOT
68
7077a6af 69%{__make} install \
70 DESTDIR=$RPM_BUILD_ROOT
f6e6cb39 71
f6e6cb39
AM
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%files
76%defattr(644,root,root,755)
34897f4d 77%doc Changes README
b640fd86 78%{perl_vendorarch}/Net/*.pm
79%dir %{perl_vendorarch}/auto/Net/Patricia
80%attr(755,root,root) %{perl_vendorarch}/auto/Net/Patricia/Patricia.so
f6e6cb39 81%{_mandir}/man3/*
This page took 0.167425 seconds and 4 git commands to generate.