perl-DBD-CSV-vl.spec 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.22
  9. Release: 2%{?_dist_release}
  10. License: distributable
  11. Group: Development/Libraries
  12. Source0: http://www.cpan.org/authors/id/J/JZ/JZUCKER/DBD-CSV-%{version}.tar.gz
  13. URL: http://search.cpan.org/~jzucker/DBD-CSV/
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: perl >= 5.8.6, perl-DBI >= 1.0
  16. BuildRequires: perl-Text-CSV_XS perl-SQL-Statement
  17. Requires: perl >= 5.8.6, perl-DBI >= 1.0
  18. Requires: perl-SQL-Statement, perl-Text-CSV_XS
  19. BuildArch: noarch
  20. %description
  21. DBD-CSV module for perl
  22. %prep
  23. %setup -q -n DBD-CSV-%{version}
  24. %build
  25. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
  26. make
  27. %check
  28. make test
  29. %clean
  30. rm -rf $RPM_BUILD_ROOT
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  34. make DESTDIR=$RPM_BUILD_ROOT install
  35. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  36. sed "s@^$RPM_BUILD_ROOT@@g" |
  37. grep -v ^%{_mandir} |
  38. grep -v perllocal.pod |
  39. grep -v "\.packlist" > %{name}.files
  40. if [ "$(cat %{name}.files)X" = "X" ] ; then
  41. echo "ERROR: EMPTY FILE LIST"
  42. exit -1
  43. fi
  44. %files -f %{name}.files
  45. %defattr(-,root,root)
  46. %doc README ChangeLog
  47. %{_mandir}/*/*
  48. %dir %{perl_vendorlib}/Bundle/DBD
  49. %dir %{perl_vendorlib}/DBD
  50. %changelog
  51. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.22-2
  52. - rebuild with perl-5.12.3
  53. * Mon May 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-1
  54. - applied new versioning policy
  55. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-0vl2
  56. - changed Group to Development/Libraries
  57. - s/Copyright/License/
  58. * Thu Sep 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-0vl1
  59. - updated to 0.22
  60. - added BuildRequires: perl-DBI
  61. - rebuild with perl 5.8.6
  62. - use vendor_perl dir
  63. * Sat Apr 13 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.2002-0vl1
  64. - first build for Vine Linux