perl-SQL-Statement-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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.412
  5. Release: 1%{?_dist_release}
  6. License: Artistic or GPL
  7. Group: Development/Libraries
  8. URL: http://search.cpan.org/~jzucker/SQL-Statement/
  9. Source0: http://www.cpan.org/authors/id/J/JZ/JZUCKER/SQL-Statement-%{version}.tar.gz
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. BuildArch: noarch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: perl(ExtUtils::MakeMaker)
  15. BuildRequires: perl(Clone)
  16. #BuildRequires: perl(Math::Base::Convert)
  17. BuildRequires: perl(Module::Runtime)
  18. BuildRequires: perl(Params::Util)
  19. BuildRequires: perl(Test::Deep)
  20. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  21. %description
  22. SQL-Statement module for perl
  23. %prep
  24. %setup -q -n SQL-Statement-%{version}
  25. find -type f -exec chmod a-x {} +
  26. sed -i -e 's/\r//' README
  27. %build
  28. export SQL_STATEMENT_WARN_UPDATE=sure
  29. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS="vendor" NO_PACKLIST=1
  30. %check
  31. make test
  32. %clean
  33. rm -rf $RPM_BUILD_ROOT
  34. %install
  35. rm -rf $RPM_BUILD_ROOT
  36. make DESTDIR=$RPM_BUILD_ROOT pure_install
  37. chmod -R u+w %{buildroot}/*
  38. find $RPM_BUILD_ROOT%{_prefix} -type f -print |
  39. sed "s@^$RPM_BUILD_ROOT@@g" |
  40. grep -v ^%{_mandir} |
  41. grep -v perllocal.pod |
  42. grep -v "\.packlist" > %{name}.files
  43. if [ "$(cat %{name}.files)X" = "X" ] ; then
  44. echo "ERROR: EMPTY FILE LIST"
  45. exit -1
  46. fi
  47. %files -f %{name}.files
  48. %defattr(-,root,root)
  49. %license ARTISTIC-1.0 GPL-1 GPL-2.0 LICENSE
  50. %doc Changes README README.md
  51. %dir %{perl_vendorlib}/SQL
  52. %dir %{perl_vendorlib}/SQL/Dialects
  53. %dir %{perl_vendorlib}/SQL/Statement
  54. %{_mandir}/*/*
  55. %changelog
  56. * Fri May 17 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> -1.412-1
  57. - new upstream release.
  58. - rebuilt with perl-5.26.
  59. * Fri Dec 5 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.405-1
  60. - updated to 1.405
  61. * Fri Jun 27 2014 IWAI, Masaharu <iwaim.sub@gmail.com> 1.33-3
  62. - build with Perl 5.16
  63. * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.33-2
  64. - rebuild
  65. * Fri Mar 02 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.33-1
  66. - updated to 1.33
  67. * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.15-2
  68. - rebuild with perl-5.12.3
  69. * Mon May 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.15-1
  70. - applied new versioning policy
  71. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.15-0vl1
  72. - updated to 1.15
  73. - changed Group to Development/Libraries
  74. - s/Copyright/License/
  75. * Wed Sep 7 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.14-0vl1
  76. - updated to 1.14, build for perl 5.8.x
  77. - updated URL
  78. - use vendor_perl
  79. * Sat Apr 13 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.004-0vl1
  80. - first build for Vine Linux