perl-SQL-Statement-vl.spec 1.8 KB

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