perl-DBD-Pg-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. Summary: the DBI PostgreSQL interface for Perl
  2. Name: perl-DBD-Pg
  3. Version: 1.49
  4. Release: 5%{?_dist_release}
  5. License: GPL or Artistic
  6. Group: Development/Libraries
  7. Source0: http://search.cpan.org/CPAN/authors/id/D/DB/DBDPG/DBD-Pg-%{version}.tar.gz
  8. Patch0:perl-DBD-1.31-fixver.patch
  9. Patch1:perl-DBD-Pg-CVE-2009-0663+1341.patch
  10. Url: http://search.cpan.org/author/DWHEELER/DBD-Pg/
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: perl >= 5.004, postgresql-devel, perl-DBI
  13. Requires: perl >= 5.004
  14. %description
  15. the DBI PostgreSQL interface for Perl
  16. %prep
  17. %setup -q -n DBD-Pg-%{version}
  18. %patch0 -p1 -b .fixver
  19. %patch1 -p1 -b .CVE-2009-0663+1341
  20. %build
  21. export POSTGRES_INCLUDE=%{_includedir}/pgsql
  22. export POSTGRES_LIB=%{_libdir}
  23. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  24. make
  25. %check
  26. make test
  27. %clean
  28. rm -rf %{buildroot}
  29. %install
  30. rm -rf %{buildroot}
  31. #mkdir -p %{buildroot}%{_prefix}
  32. #make INSTALLSITEARCH=%{buildroot}%{perl_sitearch} \
  33. # INSTALLSITEMAN3DIR=%{buildroot}%{_mandir}/man3 \
  34. # install
  35. make DESTDIR=$RPM_BUILD_ROOT install
  36. find %{buildroot}%{_prefix} -type f -print |
  37. sed "s@^%{buildroot}@@g" |
  38. grep -v ^%{_mandir} |
  39. grep -v perllocal.pod |
  40. grep -v "\.packlist" > %{name}.files
  41. if [ "$(cat %{name}.files)X" = "X" ] ; then
  42. echo "ERROR: EMPTY FILE LIST"
  43. exit -1
  44. fi
  45. %files -f %{name}.files
  46. %defattr(-,root,root)
  47. %doc README Changes
  48. %dir %{perl_vendorarch}/DBD
  49. %dir %{perl_vendorarch}/auto/DBD
  50. %dir %{perl_vendorarch}/auto/DBD/Pg
  51. %{_mandir}/*/*
  52. %changelog
  53. * Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 1.49-5
  54. - rebuilt with postgresql-8.4.0
  55. * Sat May 16 2009 Satoshi IWMAOTO <satoshi.iwamoto@nifty.ne.jp> 1.49-4vl5
  56. - add patch0 from rhel5
  57. - add patch1 to fix CVE-2009-0663, 1341
  58. - 2vl5,3vl5 are skipped to Plus < Seed version number...
  59. * Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 1.49-1vl5
  60. - applied new versioning policy
  61. - rebuilt with postgresql-8.3.3
  62. * Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 1.49-0vl5
  63. - rebuilt with postgresql-8.2.6
  64. * Wed Sep 19 2007 Shu KONNO <owa@bg.wakwak.com> 1.49-0vl4
  65. - rebuilt with postgresql-8.2.5
  66. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.49-0vl1
  67. - new upstream release
  68. - rebuilt with perl-5.8.6, perl-DBI-1.51
  69. - changed Group to Development/Libraries
  70. - installed files to vendor_perl
  71. * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 1.22-0vl3
  72. - rebuilt for VineSeed
  73. -- built with perl-5.8.6, perl-DBI-1.46
  74. * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 1.22-0vl2
  75. - rebuilt for VineLinux-3.1
  76. -- built with perl-5.8.2, perl-DBI-1.46
  77. * Sat May 24 2003 IWAI Masaharu <iwai@alib.jp> 1.22-0vl1
  78. - first build for Vine Linux