perl-ExtUtils-AutoInstall-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. Summary: Automatic install of dependencies via CPAN
  2. Name: perl-ExtUtils-AutoInstall
  3. Version: 0.63
  4. Release: 1%{?_dist_release}
  5. License: Artistic
  6. Group: Development/Libraries
  7. Source0: http://search.cpan.org/CPAN/authors/id/A/AU/AUTRIJUS/ExtUtils-AutoInstall-%{version}.tar.gz
  8. URL: http://www.cpan.org/dist/ExtUtils-AutoInstall/
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: perl >= 5.8.0, perl-version >= 0.28
  11. Requires: perl >= 5.8.0, perl-version >= 0.28
  12. Vendor: Project Vine
  13. Distribution: Vine Linux
  14. BuildArch: noarch
  15. %description
  16. This is the README file for ExtUtils::AutoInstall, a module to
  17. let Makefile.PL automatically install dependencies via CPAN or
  18. CPANPLUS.
  19. %prep
  20. %setup -q -n ExtUtils-AutoInstall-%{version}
  21. %build
  22. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor << _OPT_
  23. n
  24. _OPT_
  25. make
  26. %install
  27. rm -rf %{buildroot}
  28. mkdir -p %{buildroot}%{_prefix}
  29. make DESTDIR=%{buildroot} install
  30. rm -f %{buildroot}%{perl_vendorarch}/perllocal.pod
  31. rm -f %{buildroot}%{perl_vendorarch}/auto/ExtUtils/AutoInstall/.packlist
  32. find %{buildroot}%{_prefix} -type f -print |
  33. sed "s@^%{buildroot}@@g" |
  34. grep -v perllocal.pod |
  35. grep -v ^%{_mandir} > %{name}.files
  36. if [ "$(cat %{name}.files)X" = "X" ] ; then
  37. echo "ERROR: EMPTY FILE LIST"
  38. exit -1
  39. fi
  40. perllocalfile=`find %{buildroot} -name perllocal.pod`
  41. echo "mv $perllocalfile ."
  42. mv $perllocalfile .
  43. %clean
  44. rm -rf %{buildroot}
  45. %check
  46. make test
  47. %files -f %{name}.files
  48. %defattr(-,root,root)
  49. %doc AUTHORS Changes META.yml README SIGNATURE TODO perllocal.pod
  50. %{_mandir}/*/*
  51. %dir %{perl_vendorlib}/ExtUtils
  52. %changelog
  53. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 0.63-1
  54. - build with perl 5.12.3
  55. - apply new versioning policy
  56. * Fri Feb 16 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.63-0vl1
  57. - new upstream release
  58. - changed Group to Development/Libraries
  59. * Sat Dec 4 2004 IWAI, Masaharu <iwai@alib.jp> 0.61-0vl1
  60. - new upstream release
  61. - build on perl-5.8.6-0vl1
  62. * Sun Jul 6 2003 IWAI Masaharu <iwai@alib.jp> 0.52-0vl1
  63. - first build for Vine Linux