perl-DBD-CSV-vl.spec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib)
  2. %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)
  3. # Provide perl-specific find-{provides,requires}.
  4. %define __find_provides /usr/lib/rpm/find-provides.perl
  5. %define __find_requires /usr/lib/rpm/find-requires.perl
  6. Summary: DBD-CSV module for perl
  7. Name: perl-DBD-CSV
  8. Version: 0.33
  9. Release: 1%{?_dist_release}
  10. License: distributable
  11. Group: Development/Libraries
  12. Source0: http://www.cpan.org/authors/id/J/JZ/JZUCKER/DBD-CSV-%{version}.tgz
  13. URL: http://search.cpan.org/~jzucker/DBD-CSV/
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildArch: noarch
  16. #BuildRequires: perl(DBD::File) >= 0.40
  17. BuildRequires: perl(DBI) >= 1.614
  18. BuildRequires: perl(ExtUtils::MakeMaker)
  19. BuildRequires: perl(SQL::Statement) >= 1.33
  20. BuildRequires: perl(Text::CSV_XS) >= 0.71
  21. BuildRequires: perl(Test::Harness)
  22. # BuildRequires >= 0.90, but 0.98 is recommended
  23. #BuildRequires: perl(Test::More) >= 0.98
  24. BuildRequires: perl(Test::More) >= 0.94
  25. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  26. Requires: perl(DBD::File) >= 0.40
  27. Requires: perl(DBI) >= 1.614
  28. Requires: perl(SQL::Statement) >= 1.31
  29. # Requires >= 0.71, but 0.83 is recommended
  30. Requires: perl(Text::CSV_XS) >= 0.71
  31. %description
  32. DBD-CSV module for perl
  33. %prep
  34. %setup -q -n DBD-CSV-%{version}
  35. %build
  36. %{__perl} Makefile.PL INSTALLDIRS=vendor
  37. make %{?_smp_mflags}
  38. %check
  39. make test
  40. %clean
  41. rm -rf %{buildroot}
  42. %install
  43. rm -rf %{buildroot}
  44. make pure_install DESTDIR=%{buildroot}
  45. find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
  46. find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
  47. chmod -R u+w %{buildroot}/*
  48. %files
  49. %defattr(-,root,root)
  50. %doc README ChangeLog
  51. %dir %{perl_vendorlib}/Bundle/DBD
  52. %dir %{perl_vendorlib}/DBD
  53. %{perl_vendorlib}/Bundle/DBD/*.pm
  54. %{perl_vendorlib}/DBD/*.pm
  55. %{_mandir}/*/*
  56. %changelog
  57. * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.33-1
  58. - updated to 0.33; spec revamped
  59. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22-2
  60. - rebuild with perl-5.12.3
  61. * Mon May 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-1
  62. - applied new versioning policy
  63. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-0vl2
  64. - changed Group to Development/Libraries
  65. - s/Copyright/License/
  66. * Thu Sep 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-0vl1
  67. - updated to 0.22
  68. - added BuildRequires: perl-DBI
  69. - rebuild with perl 5.8.6
  70. - use vendor_perl dir
  71. * Sat Apr 13 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.2002-0vl1
  72. - first build for Vine Linux