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