perl-Class-Inspector-vl.spec 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. %define pkgname Class-Inspector
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 1.28
  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. %doc Changes LICENSE README
  49. %{perl_vendorlib}/Class
  50. %{_mandir}/*/*
  51. %changelog
  52. * Sat Nov 15 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 1.28-1
  53. - updated to 1.28
  54. - built with perl 5.16.3
  55. - installed modules to vendor_perl directory
  56. - added URL
  57. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.25-1
  58. - initial build for Vine Linux