]> git.pld-linux.org Git - packages/perl-Net-BGP.git/blame - perl-Net-BGP.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Net-BGP.git] / perl-Net-BGP.spec
CommitLineData
f7d6e6f0
JB
1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
7bc151c6 5%define pdir Net
6%define pnam BGP
f7d6e6f0 7Summary: Net::BGP - Border Gateway Protocol version 4 speaker/listener library
84d4647a 8Summary(pl.UTF-8): Net::BGP - biblioteka obsługująca Border Gateway Protocol w wersji 4
f7d6e6f0 9Name: perl-Net-BGP
fa46a1ce 10Version: 0.14
1380e8ab 11Release: 1
f7d6e6f0 12# same as perl
76fa3dc6 13License: GPL v1+ or Artistic
f7d6e6f0 14Group: Development/Languages/Perl
1380e8ab 15Source0: http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
fa46a1ce 16# Source0-md5: 1a6c537a1b457f9ebf0bec1ce79c3d71
1380e8ab 17URL: http://search.cpan.org/dist/Net-BGP/
f7d6e6f0
JB
18%if %{with tests}
19BuildRequires: perl(List::Util) >= 1.01
20BuildRequires: perl-Test-Harness >= 2.00
21BuildRequires: perl-Test-Simple >= 0.47
22%endif
23BuildRequires: perl-devel >= 1:5.8.0
24BuildRequires: rpm-perlprov >= 4.1-13
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29This module is an implementation of the BGP-4 inter-domain routing
30protocol. It encapsulates all of the functionality needed to establish
31and maintain a BGP peering session and exchange routing update
32information with the peer. It aims to provide a simple API to the BGP
33protocol for the purposes of automation, logging, monitoring, testing,
34and similar tasks using the power and flexibility of Perl. The module
35does not implement the functionality of a RIB (Routing Information
36Base) nor does it modify the kernel routing table of the host system.
37However, such operations could be implemented using the API provided
38by the module.
39
1ccb83d4
JR
40%description -l pl.UTF-8
41Ten moduł jest implementacją protokołu routingu międzydomenowego
42BGP-4. Zawiera on całą funkcjonalność potrzebną do ustanowienia i
43zarządzania sesją BGP oraz wymiany informacji o uaktualnieniach
44routingu z drugą stroną. Celem jest dostarczenie prostego API do
45protokołu BGP do celów automatyzacji, logowania, monitorowania,
46testowania i podobnych zadań z użyciem potęgi i elastyczności Perla.
47Moduł nie zawiera implementacji RIB (Routing Information Base) ani
48nie modyfikuje tablicy routingu w jądrze systemu, jednak takie
49operacje mogą być zaimplementowane przy użyciu API dostarczonego
50przez ten moduł.
f7d6e6f0
JB
51
52%prep
53%setup -q -n %{pdir}-%{pnam}-%{version}
88d60df3 54mv t/00-Signature.t{,.blah}
f7d6e6f0
JB
55
56%build
57%{__perl} Makefile.PL \
58 INSTALLDIRS=vendor
f7d6e6f0
JB
59%{__make}
60
61%{?with_tests:%{__make} test}
62
63%install
64rm -rf $RPM_BUILD_ROOT
65
66%{__make} install \
67 DESTDIR=$RPM_BUILD_ROOT
68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
72%files
73%defattr(644,root,root,755)
74%doc Changes README
75%{perl_vendorlib}/Net/BGP.pm
76%{perl_vendorlib}/Net/BGP
77%{_mandir}/man3/*
This page took 0.106538 seconds and 4 git commands to generate.