perl-Pod-PerldocJp-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. %define pkgname Pod-PerldocJp
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 0.16
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/~ishigaki/Pod-PerldocJp/
  9. Source0: http://search.cpan.org/CPAN/authors/id/I/IS/ISHIGAKI/%{pkgname}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildArch: noarch
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. Packager: yasumichi
  15. Summary: perldoc that also checks perldoc.jp
  16. Summary(ja): 日本語対応の perldoc
  17. # Dependency
  18. Requires: perl
  19. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  20. BuildRequires: perl
  21. BuildRequires: perl-Path-Extended
  22. BuildRequires: perl-Term-Encoding
  23. BuildRequires: perl-Test-Pod
  24. BuildRequires: perl-Test-Pod-Coverage
  25. BuildRequires: perl-Test-UseAllModules
  26. %description
  27. This is a drop-in-replacement for perldoc for Japanese people. Usage is the
  28. same, except it can look for a translation at http://perldoc.jp with -J
  29. option.
  30. %description -l ja
  31. perldocjp は、日本人のために perldoc を置き換えます。使い方は、-J オプション
  32. を利用して http://perldoc.jp にある翻訳を探すことができる以外は、perldoc と
  33. 同様です。
  34. %prep
  35. %setup -q -n Pod-PerldocJp-%{version}
  36. %build
  37. %{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
  38. %{__make} %{?_smp_mflags}
  39. %install
  40. %{__rm} -rf ${RPM_BUILD_ROOT}
  41. %{__make} pure_install DESTDIR=${RPM_BUILD_ROOT}
  42. # remove unnecessary files.
  43. find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -exec %{__rm} -f {} ';'
  44. find ${RPM_BUILD_ROOT} -type f -name .packlist -exec %{__rm} -f {} ';'
  45. find ${RPM_BUILD_ROOT}%{_mandir} -type f -exec %{__rm} -f {} ';'
  46. find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
  47. # generate file list
  48. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  49. sed "s@^$RPM_BUILD_ROOT@@g" > %{name}.files
  50. if [ "$(cat %{name}.files)X" = "X" ] ; then
  51. echo "ERROR: EMPTY FILE LIST"
  52. exit -1
  53. fi
  54. %clean
  55. %{__rm} -rf ${RPM_BUILD_ROOT}
  56. %check
  57. make test
  58. %files -f %{name}.files
  59. %defattr(-,root,root)
  60. %doc Changes README
  61. %dir %{perl_vendorlib}/Pod/PerldocJp
  62. %changelog
  63. * Thu Dec 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.16-1
  64. - updated to 0.16
  65. - built with perl 5.16.3
  66. - moved to Development/Libraries Group
  67. - added URL tag
  68. * Wed Jul 04 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.14-2
  69. - apply wiki:Development/PerlModulePackaging
  70. - exclude man pages
  71. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.14-1
  72. - initial build for Vine Linux