perl-DBD-Pg-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. Summary: the DBI PostgreSQL interface for Perl
  2. Name: perl-DBD-Pg
  3. Version: 2.18.0
  4. Release: 2%{?_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. Source1: filter-requires-perl-DBD-Pg.sh
  9. Patch0:perl-DBD-1.31-fixver.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. %define __perl_requires %{SOURCE1}
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. %description
  18. the DBI PostgreSQL interface for Perl
  19. %prep
  20. %setup -q -n DBD-Pg-%{version}
  21. %patch0 -p1 -b .fixver
  22. %build
  23. export POSTGRES_INCLUDE=%{_includedir}/pgsql
  24. export POSTGRES_LIB=%{_libdir}
  25. CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
  26. make
  27. %check
  28. make test
  29. %clean
  30. rm -rf %{buildroot}
  31. %install
  32. rm -rf %{buildroot}
  33. #mkdir -p %{buildroot}%{_prefix}
  34. #make INSTALLSITEARCH=%{buildroot}%{perl_sitearch} \
  35. # INSTALLSITEMAN3DIR=%{buildroot}%{_mandir}/man3 \
  36. # install
  37. make DESTDIR=$RPM_BUILD_ROOT install
  38. find %{buildroot}%{_prefix} -type f -print |
  39. sed "s@^%{buildroot}@@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. %doc README Changes
  50. %dir %{perl_vendorarch}/DBD
  51. %dir %{perl_vendorarch}/auto/DBD
  52. %dir %{perl_vendorarch}/auto/DBD/Pg
  53. %{_mandir}/*/*
  54. %changelog
  55. * Tue Apr 12 2011 Shu KONNO <owa@bg.wakwak.com> 2.18.0-2
  56. - rebuilt with postgresql-9.0.3
  57. * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.18.0-1
  58. - new upstream release
  59. - drop CVE-2009-0663, 1341 patch (Patch1): upstream fixed
  60. - add requires filter (Source1)
  61. - add Vendor and Distribution tags
  62. * Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 1.49-5
  63. - rebuilt with postgresql-8.4.0
  64. * Sat May 16 2009 Satoshi IWMAOTO <satoshi.iwamoto@nifty.ne.jp> 1.49-4vl5
  65. - add patch0 from rhel5
  66. - add patch1 to fix CVE-2009-0663, 1341
  67. - 2vl5,3vl5 are skipped to Plus < Seed version number...
  68. * Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 1.49-1vl5
  69. - applied new versioning policy
  70. - rebuilt with postgresql-8.3.3
  71. * Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 1.49-0vl5
  72. - rebuilt with postgresql-8.2.6
  73. * Wed Sep 19 2007 Shu KONNO <owa@bg.wakwak.com> 1.49-0vl4
  74. - rebuilt with postgresql-8.2.5
  75. * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.49-0vl1
  76. - new upstream release
  77. - rebuilt with perl-5.8.6, perl-DBI-1.51
  78. - changed Group to Development/Libraries
  79. - installed files to vendor_perl
  80. * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 1.22-0vl3
  81. - rebuilt for VineSeed
  82. -- built with perl-5.8.6, perl-DBI-1.46
  83. * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 1.22-0vl2
  84. - rebuilt for VineLinux-3.1
  85. -- built with perl-5.8.2, perl-DBI-1.46
  86. * Sat May 24 2003 IWAI Masaharu <iwai@alib.jp> 1.22-0vl1
  87. - first build for Vine Linux