| 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 | |
|---|
| 11 | Url: http://search.cpan.org/author/DWHEELER/DBD-Pg/ |
|---|
| 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 13 | BuildRequires: perl >= 5.004, postgresql-devel, perl-DBI |
|---|
| 14 | Requires: perl >= 5.004 |
|---|
| 15 | |
|---|
| 16 | %define __perl_requires %{SOURCE1} |
|---|
| 17 | |
|---|
| 18 | Vendor: Project Vine |
|---|
| 19 | Distribution: Vine Linux |
|---|
| 20 | |
|---|
| 21 | %description |
|---|
| 22 | the DBI PostgreSQL interface for Perl |
|---|
| 23 | |
|---|
| 24 | %prep |
|---|
| 25 | %setup -q -n DBD-Pg-%{version} |
|---|
| 26 | |
|---|
| 27 | %patch0 -p1 -b .fixver |
|---|
| 28 | |
|---|
| 29 | %build |
|---|
| 30 | export POSTGRES_INCLUDE=%{_includedir}/pgsql |
|---|
| 31 | export POSTGRES_LIB=%{_libdir} |
|---|
| 32 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor |
|---|
| 33 | make |
|---|
| 34 | |
|---|
| 35 | %check |
|---|
| 36 | make test |
|---|
| 37 | |
|---|
| 38 | %clean |
|---|
| 39 | rm -rf %{buildroot} |
|---|
| 40 | |
|---|
| 41 | %install |
|---|
| 42 | rm -rf %{buildroot} |
|---|
| 43 | #mkdir -p %{buildroot}%{_prefix} |
|---|
| 44 | #make INSTALLSITEARCH=%{buildroot}%{perl_sitearch} \ |
|---|
| 45 | # INSTALLSITEMAN3DIR=%{buildroot}%{_mandir}/man3 \ |
|---|
| 46 | # install |
|---|
| 47 | |
|---|
| 48 | make DESTDIR=$RPM_BUILD_ROOT install |
|---|
| 49 | |
|---|
| 50 | find %{buildroot}%{_prefix} -type f -print | |
|---|
| 51 | sed "s@^%{buildroot}@@g" | |
|---|
| 52 | grep -v ^%{_mandir} | |
|---|
| 53 | grep -v perllocal.pod | |
|---|
| 54 | grep -v "\.packlist" > %{name}.files |
|---|
| 55 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
|---|
| 56 | echo "ERROR: EMPTY FILE LIST" |
|---|
| 57 | exit -1 |
|---|
| 58 | fi |
|---|
| 59 | |
|---|
| 60 | %files -f %{name}.files |
|---|
| 61 | %defattr(-,root,root) |
|---|
| 62 | %doc README Changes |
|---|
| 63 | %dir %{perl_vendorarch}/DBD |
|---|
| 64 | %dir %{perl_vendorarch}/auto/DBD |
|---|
| 65 | %dir %{perl_vendorarch}/auto/DBD/Pg |
|---|
| 66 | %{_mandir}/*/* |
|---|
| 67 | |
|---|
| 68 | %changelog |
|---|
| 69 | * Tue Apr 12 2011 Shu KONNO <owa@bg.wakwak.com> 2.18.0-2 |
|---|
| 70 | - rebuilt with postgresql-9.0.3 |
|---|
| 71 | |
|---|
| 72 | * Wed Mar 30 2011 IWAI, Masaharu <iwai@alib.jp> 2.18.0-1 |
|---|
| 73 | - new upstream release |
|---|
| 74 | - drop CVE-2009-0663, 1341 patch (Patch1): upstream fixed |
|---|
| 75 | - add requires filter (Source1) |
|---|
| 76 | - add Vendor and Distribution tags |
|---|
| 77 | |
|---|
| 78 | * Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 1.49-5 |
|---|
| 79 | - rebuilt with postgresql-8.4.0 |
|---|
| 80 | |
|---|
| 81 | * Sat May 16 2009 Satoshi IWMAOTO <satoshi.iwamoto@nifty.ne.jp> 1.49-4vl5 |
|---|
| 82 | - add patch0 from rhel5 |
|---|
| 83 | - add patch1 to fix CVE-2009-0663, 1341 |
|---|
| 84 | - 2vl5,3vl5 are skipped to Plus < Seed version number... |
|---|
| 85 | |
|---|
| 86 | * Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 1.49-1vl5 |
|---|
| 87 | - applied new versioning policy |
|---|
| 88 | - rebuilt with postgresql-8.3.3 |
|---|
| 89 | |
|---|
| 90 | * Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 1.49-0vl5 |
|---|
| 91 | - rebuilt with postgresql-8.2.6 |
|---|
| 92 | |
|---|
| 93 | * Wed Sep 19 2007 Shu KONNO <owa@bg.wakwak.com> 1.49-0vl4 |
|---|
| 94 | - rebuilt with postgresql-8.2.5 |
|---|
| 95 | |
|---|
| 96 | * Sun Sep 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.49-0vl1 |
|---|
| 97 | - new upstream release |
|---|
| 98 | - rebuilt with perl-5.8.6, perl-DBI-1.51 |
|---|
| 99 | - changed Group to Development/Libraries |
|---|
| 100 | - installed files to vendor_perl |
|---|
| 101 | |
|---|
| 102 | * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 1.22-0vl3 |
|---|
| 103 | - rebuilt for VineSeed |
|---|
| 104 | -- built with perl-5.8.6, perl-DBI-1.46 |
|---|
| 105 | |
|---|
| 106 | * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 1.22-0vl2 |
|---|
| 107 | - rebuilt for VineLinux-3.1 |
|---|
| 108 | -- built with perl-5.8.2, perl-DBI-1.46 |
|---|
| 109 | |
|---|
| 110 | * Sat May 24 2003 IWAI Masaharu <iwai@alib.jp> 1.22-0vl1 |
|---|
| 111 | - first build for Vine Linux |
|---|
| 112 | |
|---|