perl-Class-Inspector-vl.spec 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. %define pkgname Class-Inspector
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 1.34
  5. Release: 1%{?_dist_release}
  6. Summary: Get information about a class and its structure
  7. Summary(ja): クラスおよびその構造について情報を得る
  8. License: Artistic or GPL
  9. Group: Development/Libraries
  10. URL: http://search.cpan.org/~adamk/Class-Inspector/
  11. Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/%{pkgname}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. # Dependency
  15. BuildRequires: perl(ExtUtils::MakeMaker)
  16. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: yasumichi
  20. %description
  21. Class::Inspector allows you to get information about a loaded class. Most or
  22. all of this information can be found in other ways, but they aren't always
  23. very friendly, and usually involve a relatively high level of Perl wizardry,
  24. or strange and unusual looking code. Class::Inspector attempts to provide an
  25. easier, more friendly interface to this information.
  26. #%%description -l ja
  27. #ここに日本語で詳細を記述してください。
  28. %prep
  29. %setup -q -n %{pkgname}-%{version}
  30. %build
  31. %{__perl} Makefile.PL INSTALLDIRS=vendor
  32. make %{?_smp_mflags}
  33. %install
  34. %{__rm} -rf ${RPM_BUILD_ROOT}
  35. %{__make} pure_install DESTDIR=${RPM_BUILD_ROOT}
  36. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  37. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
  38. chmod -R u+w $RPM_BUILD_ROOT/*
  39. # remove unnecessary files.
  40. %{__rm} -f ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  41. %{__rm} -f ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Class/Inspector/.packlist
  42. %check
  43. make test
  44. %clean
  45. %{__rm} -rf ${RPM_BUILD_ROOT}
  46. %files
  47. %defattr(-,root,root)
  48. %license LICENSE
  49. %doc Changes README
  50. %{perl_vendorlib}/Class
  51. %{_mandir}/*/*
  52. %changelog
  53. * Sat May 18 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.34-1
  54. - new upstream release.
  55. - rebuilt with perl-5.26.
  56. * Sat Nov 15 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.28-1
  57. - updated to 1.28
  58. - built with perl 5.16.3
  59. - installed modules to vendor_perl directory
  60. - added URL
  61. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.25-1
  62. - initial build for Vine Linux