perl-Module-Find-vl.spec 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. %define pkgname Module-Find
  2. # Basic Information
  3. Name: perl-%{pkgname}
  4. Version: 0.12
  5. Release: 1%{?_dist_release}
  6. Summary: Find and use installed modules in a (sub)category
  7. Summary(ja): (サブ)カテゴリー内にインストールされたモジュールを見つけて利用する
  8. License: Artistic or GPL
  9. Group: Development/Libraries
  10. URL: http://search.cpan.org/~crenz/Module-Find/
  11. Source0: http://search.cpan.org/CPAN/authors/id/C/CR/CRENZ/%{pkgname}-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. BuildRequires: perl(ExtUtils::MakeMaker)
  15. # Dependency
  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. Module::Find lets you find and use modules in categories. This can be very
  22. useful for auto-detecting driver or plugin modules. You can differentiate
  23. between looking in the category itself or in all subcategories.
  24. If you want Module::Find to search in a certain directory on your harddisk
  25. (such as the plugins directory of your software installation), make sure you
  26. modify @INC before you call the Module::Find functions.
  27. #%%description -l ja
  28. #ここに日本語で詳細を記述してください。
  29. %prep
  30. %setup -q -n Module-Find-%{version}
  31. %build
  32. perl Makefile.PL INSTALLDIRS=vendor
  33. make %{?_smp_mflags}
  34. %install
  35. %{__rm} -rf $RPM_BUILD_ROOT
  36. make pure_install DESTDIR=%{buildroot}
  37. find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
  38. find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} ';' 2>/dev/null
  39. %{_fixperms} $RPM_BUILD_ROOT
  40. #%{__rm} ${RPM_BUILD_ROOT}%{perl_archlib}/perllocal.pod
  41. #%{__rm} ${RPM_BUILD_ROOT}%{perl_sitearch}/auto/Module/Find/.packlist
  42. %check
  43. make test
  44. %clean
  45. %{__rm} -rf $RPM_BUILD_ROOT
  46. %files
  47. %defattr(-,root,root)
  48. %doc Changes README
  49. %{perl_vendorlib}/Module
  50. %{_mandir}/man3/*
  51. %changelog
  52. * Wed Nov 19 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.12-1
  53. - updated to 0.12
  54. - built with perl 5.16.3
  55. - installed module to vendor_perl
  56. - added URL tag
  57. * Mon Oct 10 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.10-1
  58. - initial build for Vine Linux