perl-DBD-CSV-vl.spec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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: 1%{?_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. * Mon May 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-1
  52. - applied new versioning policy
  53. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-0vl2
  54. - changed Group to Development/Libraries
  55. - s/Copyright/License/
  56. * Thu Sep 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.22-0vl1
  57. - updated to 0.22
  58. - added BuildRequires: perl-DBI
  59. - rebuild with perl 5.8.6
  60. - use vendor_perl dir
  61. * Sat Apr 13 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.2002-0vl1
  62. - first build for Vine Linux