summaryrefslogtreecommitdiff
path: root/perl-SNMP_Session.spec
blob: a68ce8814f03c6d50169f8d5a5ee777d7c7b1640 (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
#
# Conditional build:
%bcond_without	tests	# do not perform "make test"
#
Summary:	SNMP_Session - SNMP support for Perl 5
Summary(cs.UTF-8):	Modul SNMP pro Perl
Summary(da.UTF-8):	Perlmodul SNMP
Summary(de.UTF-8):	SNMP Perl Modul
Summary(es.UTF-8):	Módulo de Perl SNMP
Summary(fr.UTF-8):	Module Perl SNMP
Summary(it.UTF-8):	Modulo di Perl SNMP
Summary(ja.UTF-8):	SNMP Perl モジュール
Summary(ko.UTF-8):	SNMP 펄 모줄
Summary(nb.UTF-8):	Perlmodul SNMP
Summary(pl.UTF-8):	SNMP_Session - obsługa SNMP dla Perla 5
Summary(pt.UTF-8):	Módulo de Perl SNMP
Summary(pt_BR.UTF-8):	Módulo Perl SNMP
Summary(ru.UTF-8):	Модуль для Perl SNMP
Summary(sv.UTF-8):	SNMP Perlmodul
Summary(uk.UTF-8):	Модуль для Perl SNMP
Summary(zh_CN.UTF-8):	SNMP Perl 模块
Name:		perl-SNMP_Session
Version:	1.13
Release:	2
License:	Artistic
Group:		Development/Languages/Perl
Source0:	http://snmp-session.googlecode.com/files/SNMP_Session-%{version}.tar.gz
# Source0-md5:	055e1065babf55f1f8606329c6bdb947
Patch0:		%{name}-Socket6_conflict.patch
URL:		http://code.google.com/p/snmp-session/
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 package contains Perl 5 modules SNMP_Session.pm and BER.pm,
which, when used together, provide rudimentary access to remote SNMP
(v1/v2) agents.

%description -l pl.UTF-8
Ten pakiet zawiera moduły Perla 5 SNMP_Session.pm i BER.pm, które,
używane wspólnie, dają dostęp do zewnętrznych serwisów SNMP (v1/v2).

%prep
%setup -q -n SNMP_Session-%{version}
%patch0 -p0

%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 README* index.html test
%{perl_vendorlib}/*.pm