perl-Net-SNMP-vl.spec 2.9 KB

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