perl-Text-CSV_XS-vl.spec 2.4 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: Text-CSV_XS module for perl
  7. Name: perl-Text-CSV_XS
  8. Version: 0.65
  9. Release: 1%{?_dist_release}
  10. License: Artistic/GPL
  11. Group: Development/Libraries
  12. Source0: http://www.cpan.org/authors/id/JWIED/Text-CSV_XS-%{version}.tgz
  13. URL: http://search.cpan.org/~jwied/Text-CSV_XS/
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. BuildRequires: perl >= 5.8.6
  16. Requires: perl >= 5.8.6
  17. %description
  18. Text-CSV_XS module for perl
  19. %prep
  20. %setup -q -n Text-CSV_XS-%{version}
  21. %build
  22. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor"
  23. make
  24. %check
  25. make test
  26. %clean
  27. rm -rf $RPM_BUILD_ROOT
  28. %install
  29. rm -rf $RPM_BUILD_ROOT
  30. mkdir -p $RPM_BUILD_ROOT%{_prefix}
  31. make DESTDIR=$RPM_BUILD_ROOT install
  32. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  33. sed "s@^$RPM_BUILD_ROOT@@g" |
  34. grep -v ^%{_mandir} |
  35. grep -v perllocal.pod |
  36. grep -v "\.packlist" > %{name}.files
  37. if [ "$(cat %{name}.files)X" = "X" ] ; then
  38. echo "ERROR: EMPTY FILE LIST"
  39. exit -1
  40. fi
  41. # remove unnecessary files.
  42. %{__rm} -rf ${RPM_BUILD_ROOT}/%{perl_archlib}/perllocal.pod
  43. %{__rm} -rf ${RPM_BUILD_ROOT}/%{perl_vendorarch}/auto/Text/CSV_XS/.packlist
  44. %files -f %{name}.files
  45. %defattr(-,root,root)
  46. %doc README ChangeLog
  47. %{_mandir}/*/*
  48. %dir %{perl_vendorarch}/auto/Text/CSV_XS
  49. %changelog
  50. * Mon May 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.65-1
  51. - new upstream release
  52. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 0.34-1vl5
  53. - applied new versioning policy
  54. - built with perl-5.10.0
  55. * Sat Jan 5 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.34-0vl1
  56. - rebuild for VineSeed.
  57. * Sat Jan 5 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.34-0vl0
  58. - new upstream release.
  59. * Sat Jan 5 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.34-0vl0
  60. - new upstream release.
  61. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.23-0vl3
  62. - changed Group to Development/Libraries
  63. * Thu Sep 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.23-0vl2
  64. - rebuild with perl 5.8.6
  65. - use vendor_perl
  66. - updated URL
  67. - s/Copyright/License/
  68. * Sat Apr 13 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.23-0vl1
  69. - first build for Vine Linux