[521] | 1 | Summary: a libpq-based PostgreSQL interface for Perl |
---|
| 2 | Name: pgperl |
---|
| 3 | Version: 2.0.2 |
---|
| 4 | Release: 2%{?_dist_release} |
---|
| 5 | URL: http://gborg.postgresql.org/project/pgperl/projdisplay.php |
---|
| 6 | Source0: ftp://gborg.postgresql.org/pub/pgperl/stable/%{name}-%{version}.tar.gz |
---|
| 7 | License: Perl's |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | BuildRoot: %{_tmppath}/%{name}-root |
---|
| 10 | Requires: postgresql-libs |
---|
| 11 | BuildRequires: postgresql-devel perl |
---|
| 12 | Obsoletes: postgresql-perl |
---|
| 13 | |
---|
| 14 | %description |
---|
| 15 | pgperl is an interface between Perl and PostgreSQL. This uses the Perl5 |
---|
| 16 | API for C extensions to call the PostgreSQL libpq interface. Unlike |
---|
| 17 | DBD:pg, pgperl tries to implement the libpq interface as closely as |
---|
| 18 | possible. |
---|
| 19 | |
---|
| 20 | You have a choice between two different interfaces: the old C-style |
---|
| 21 | interface and a new one, using a more Perl-ish style. The old style has |
---|
| 22 | the benefit that existing libpq applications can easily be ported to |
---|
| 23 | perl. The new style uses class packages and might be more familiar to |
---|
| 24 | C++ programmers. |
---|
| 25 | |
---|
| 26 | %prep |
---|
| 27 | %setup -q -n Pg-%{version} |
---|
| 28 | |
---|
| 29 | %build |
---|
| 30 | export POSTGRES_INCLUDE=%{_includedir}/pgsql |
---|
| 31 | export POSTGRES_LIB=%{_libdir} |
---|
| 32 | perl Makefile.PL INSTALLDIRS=vendor |
---|
| 33 | make |
---|
| 34 | |
---|
| 35 | %install |
---|
| 36 | rm -rf %{buildroot} |
---|
| 37 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 38 | #make PREFIX=%{buildroot}%{_prefix} \ |
---|
| 39 | # INSTALLSITEARCH=%{buildroot}%{perl_sitearch} \ |
---|
| 40 | # INSTALLSITEMAN3DIR=%{buildroot}%{_mandir}/man3 install |
---|
| 41 | |
---|
| 42 | find $RPM_BUILD_ROOT%{_prefix} -type f -print | |
---|
| 43 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
| 44 | grep -v perllocal.pod | |
---|
| 45 | grep -v "\.packlist" | |
---|
| 46 | grep -v ^%{_mandir} > %{name}.files |
---|
| 47 | if [ "$(cat %{name}.files)X" = "X" ] ; then |
---|
| 48 | echo "ERROR: EMPTY FILE LIST" |
---|
| 49 | exit -1 |
---|
| 50 | fi |
---|
| 51 | |
---|
| 52 | %clean |
---|
| 53 | rm -rf %{buildroot} |
---|
| 54 | |
---|
| 55 | %files -f %{name}.files |
---|
| 56 | %defattr(-,root,root) |
---|
| 57 | %doc README Changes examples |
---|
| 58 | %{_mandir}/man3/Pg.3pm* |
---|
| 59 | %dir %{perl_vendorarch}/auto |
---|
| 60 | %dir %{perl_vendorarch}/auto/Pg |
---|
| 61 | |
---|
| 62 | %changelog |
---|
| 63 | * Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 2.0.2-2 |
---|
| 64 | - rebuilt with postgresql-8.4.0 |
---|
| 65 | |
---|
| 66 | * Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.2-1vl5 |
---|
| 67 | - applied new versioning policy |
---|
| 68 | - rebuilt with postgresql-8.3.3 |
---|
| 69 | |
---|
| 70 | * Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.2-0vl5 |
---|
| 71 | - rebuilt with postgresql-8.2.6 |
---|
| 72 | |
---|
| 73 | * Wed Sep 19 2007 Shu KONNO <owa@bg.wakwak.com> 2.0.2-0vl4 |
---|
| 74 | - rebuilt with postgresql-8.2.5 |
---|
| 75 | |
---|
| 76 | * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.2-0vl3 |
---|
| 77 | - changed Group to Development/Libraries |
---|
| 78 | |
---|
| 79 | * Sat Mar 18 2006 Shu KONNO <owa@bg.wakwak.com> 2.0.2-0vl2 |
---|
| 80 | - rebuilt with postgresql-8.0.x |
---|
| 81 | |
---|
| 82 | * Sat Apr 26 2003 IWAI Masaharu <iwai@alib.jp> 2.0.2-0vl1 |
---|
| 83 | - first build for Vine Linux |
---|