perl-DBD-CSV-vl.spec 3.0 KB

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