perl-Pod-PerldocJp-vl.spec 2.3 KB

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