summaryrefslogtreecommitdiff
path: root/perl-Net-BGP.spec
blob: f47fea18d31bcd4fddb374b2973b61cde0b5afb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# Conditional build:
%bcond_without	tests	# do not perform "make test"
#
%include	/usr/lib/rpm/macros.perl
%define		pdir	Net
%define		pnam	BGP
Summary:	Net::BGP - Border Gateway Protocol version 4 speaker/listener library
Summary(pl.UTF-8):	Net::BGP - biblioteka obsługująca Border Gateway Protocol w wersji 4
Name:		perl-Net-BGP
Version:	0.08
Release:	2
# same as perl
License:	GPL v1+ or Artistic
Group:		Development/Languages/Perl
Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5:	946d056bd3db24a44b48d8538f8b5dc3
%if %{with tests}
BuildRequires:	perl(List::Util) >= 1.01
BuildRequires:	perl-Test-Harness >= 2.00
BuildRequires:	perl-Test-Simple >= 0.47
%endif
BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:	rpm-perlprov >= 4.1-13
BuildArch:	noarch
BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)

%description
This module is an implementation of the BGP-4 inter-domain routing
protocol. It encapsulates all of the functionality needed to establish
and maintain a BGP peering session and exchange routing update
information with the peer. It aims to provide a simple API to the BGP
protocol for the purposes of automation, logging, monitoring, testing,
and similar tasks using the power and flexibility of Perl. The module
does not implement the functionality of a RIB (Routing Information
Base) nor does it modify the kernel routing table of the host system.
However, such operations could be implemented using the API provided
by the module.

%description -l pl.UTF-8
Ten moduł jest implementacją protokołu routingu międzydomenowego
BGP-4. Zawiera on całą funkcjonalność potrzebną do ustanowienia i
zarządzania sesją BGP oraz wymiany informacji o uaktualnieniach
routingu z drugą stroną. Celem jest dostarczenie prostego API do
protokołu BGP do celów automatyzacji, logowania, monitorowania,
testowania i podobnych zadań z użyciem potęgi i elastyczności Perla.
Moduł nie zawiera implementacji RIB (Routing Information Base) ani
nie modyfikuje tablicy routingu w jądrze systemu, jednak takie
operacje mogą być zaimplementowane przy użyciu API dostarczonego
przez ten moduł.

%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
mv t/00-Signature.t{,.blah}

%build
%{__perl} Makefile.PL \
	INSTALLDIRS=vendor
%{__make}

%{?with_tests:%{__make} test}

%install
rm -rf $RPM_BUILD_ROOT

%{__make} install \
	DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc Changes README
%{perl_vendorlib}/Net/BGP.pm
%{perl_vendorlib}/Net/BGP
%{_mandir}/man3/*