File pgperl.spec of Package pgperl
#
# spec file for package pgperl (Version 2.1.1)
#
# Copyright (c) 2004 SUSE LINUX AG, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://www.suse.de/feedback/
#
# norootforbuild
Name: pgperl
BuildRequires: postgresql-devel
Version: 2.1.1
Release: 1
Provides: postgresql-perl
Obsoletes: postgresql-perl
Requires: perl = %{perl_version}
Autoreqprov: on
Group: Productivity/Databases/Clients
License: GPL, Artistic License
URL: http://www.postgresql.org/
Summary: Perl Client Library for PostgreSQL
Source0: Pg-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains a module to access PostgreSQL databases from Perl
programs.
It shouldn't be used for new developments as the Perl DBI module
provides a much better infrastructure to access various databases from
Perl. See the perl-DBI and perl-DBD-Pg packages for details.
Authors:
--------
Andrew Yu <andrew@CS.Berkeley.edu>
Jolly Chen <jolly@CS.Berkeley.edu>
Bruce Momjian <maillist@candle.pha.pa.us>
Thomas G. Lockhart <lockhart@alumni.caltech.edu>
Tom Lane <tgl@sss.pgh.pa.us>
The Hermit Hacker <scrappy@hub.org>
etc.
%prep
%setup -q -n Pg-%version
%build
export POSTGRES_LIB=%_libdir/pgsql
export POSTGRES_INCLUDE=%_includedir/pgsql
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS"
make
%install
make DESTDIR=%buildroot install_vendor
%perl_process_packlist
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc %_mandir/man?/*
%doc examples Changes README
%perl_vendorarch/Pg.pm
%perl_vendorarch/auto/Pg
%if 0%{?suse_version} && 0%{?suse_version} < 1140
/var/adm/perl-modules/%{name}
%endif
%changelog