1 | %define pkgname Net-SNMP |
---|
2 | |
---|
3 | # Basic Information |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 6.0.1 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | License: Artistic or GPL |
---|
8 | Group: Development/Libraries |
---|
9 | Source0: http://search.cpan.org/CPAN/authors/id/D/DT/DTOWN/%{pkgname}-v%{version}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
11 | BuildArch: noarch |
---|
12 | |
---|
13 | Vendor: Project Vine |
---|
14 | Distribution: Vine Linux |
---|
15 | Packager: yasumichi |
---|
16 | |
---|
17 | Summary: Net::SNMP - Object oriented interface to SNMP |
---|
18 | Summary(ja): Net::SNMP - SNMP へのオブジェクト指向インターフェース |
---|
19 | |
---|
20 | # Dependency |
---|
21 | Requires: perl |
---|
22 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
23 | |
---|
24 | BuildRequires: perl |
---|
25 | |
---|
26 | %description |
---|
27 | The Net::SNMP module implements an object oriented interface to the |
---|
28 | Simple Network Management Protocol. Perl applications can use the |
---|
29 | module to retrieve or update information on a remote host using the |
---|
30 | SNMP protocol. The module supports SNMP version-1, SNMP version-2c |
---|
31 | (Community-Based SNMPv2), and SNMP version-3. The Net::SNMP module |
---|
32 | assumes that the user has a basic understanding of the Simple Network |
---|
33 | Management Protocol and related network management concepts. |
---|
34 | |
---|
35 | %description -l ja |
---|
36 | Net::SNMP モジュールは、Simple Network Management Protocol へのオブジェクト |
---|
37 | 指向インターフェースを実装しています。Perl アプリケーションでこのモジュール |
---|
38 | を利用すれば、 SNMP プロトコルを利用してリモートホストの情報を受信や更新でき |
---|
39 | ます。このモジュールは、SNMP version-1、SNMP version-2c (コミュニティーベー |
---|
40 | ス SNMPv2) および SNMP version-3 をサポートしています。Net::SNMP モジュール |
---|
41 | は、ユーザーが Simple Network Management Protocol および関連するネットワーク |
---|
42 | 管理の概念について基本的な理解をもっているものと仮定しています。 |
---|
43 | |
---|
44 | %prep |
---|
45 | %setup -q -n Net-SNMP-v6.0.1 |
---|
46 | |
---|
47 | %build |
---|
48 | perl Makefile.PL |
---|
49 | %{__make} |
---|
50 | |
---|
51 | %install |
---|
52 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
53 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
54 | |
---|
55 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
56 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
57 | grep -v ^%{_mandir} | |
---|
58 | grep -v perllocal.pod | |
---|
59 | grep -v "\.packlist" > %{name}.files |
---|
60 | |
---|
61 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
62 | echo "ERROR: EMPTY FILE LIST" |
---|
63 | exit -1 |
---|
64 | fi |
---|
65 | |
---|
66 | # remove unnecessary files. |
---|
67 | %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod |
---|
68 | find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';' |
---|
69 | find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';' |
---|
70 | |
---|
71 | |
---|
72 | %clean |
---|
73 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
74 | |
---|
75 | |
---|
76 | %files -f %{name}.files |
---|
77 | %defattr(-,root,root) |
---|
78 | %doc Changes LICENSE README |
---|
79 | |
---|
80 | %changelog |
---|
81 | * Sat Feb 25 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 6.0.1-1 |
---|
82 | - initial build for Vine Linux |
---|