perl-Class-Inspector-vl.spec 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. %define pkgname Class-Inspector
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 1.25
  5. Release: 1%{?_dist_release}
  6. # License は、COPYING などのファイルを参考に適切なものに変更してください。
  7. License: Artistic or GPL
  8. Group: Development/Libraries
  9. Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/%{pkgname}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. Packager: yasumichi
  14. Summary: Get information about a class and its structure
  15. Summary(ja): クラスおよびその構造について情報を得る
  16. # Dependency
  17. Requires: perl
  18. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  19. BuildRequires: perl
  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 Class-Inspector-1.25
  30. %build
  31. perl Makefile.PL
  32. %{__make}
  33. %install
  34. %{__rm} -rf ${RPM_BUILD_ROOT}
  35. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  36. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  37. sed "s@^$RPM_BUILD_ROOT@@g" |
  38. grep -v ^%{_mandir} |
  39. grep -v perllocal.pod |
  40. grep -v "\.packlist" > %{name}.files
  41. if [ "$(cat %{name}.files)X" = "X" ] ; then
  42. echo "ERROR: EMPTY FILE LIST"
  43. exit -1
  44. fi
  45. # remove unnecessary files.
  46. %{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  47. %{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Class/Inspector/.packlist
  48. %clean
  49. %{__rm} -rf ${RPM_BUILD_ROOT}
  50. %files -f %{name}.files
  51. %defattr(-,root,root)
  52. %doc Changes LICENSE README
  53. %dir %{perl_sitelib}/Class/Inspector
  54. %{_mandir}/*/*
  55. %changelog
  56. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.25-1
  57. - initial build for Vine Linux