File perl-DBD-Pg.spec of Package perl-DBD-Pg
#
# spec file for package perl-DBD-Pg (Version 2.15.1)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-DBD-Pg
BuildRequires: perl-DBI postgresql-devel
Url: http://www.perl.com/CPAN/modules/by-module/DBD
Summary: DBD::Pg - DBI driver for PostgreSQL
Version: 2.15.1
Release: 1
License: GPL v2 or later
Group: Development/Libraries/Perl
Source0: DBD-Pg-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: perl-DBI
Requires: perl = %{perl_version}
AutoReqProv: on
%description
This driver is needed to access PostgreSQL databases from Perl programs
through the Perl Database Interface (DBI).
Authors:
--------
Edmund Mergl
Jeffrey W. Baker
Tim Bunce
%prep
%setup -q -n DBD-Pg-%version
%build
export POSTGRES_INCLUDE=/usr/include/pgsql
export POSTGRES_LIB=%_libdir
perl Makefile.PL
make
%install
make DESTDIR=%buildroot install_vendor
%perl_process_packlist
%clean
rm -rf %buildroot
%files
%defattr(-,root,root,-)
%doc README Changes
%doc %_mandir/man?/*
%{perl_vendorarch}/auto/DBD
%{perl_vendorarch}/Bundle/DBD
%{perl_vendorarch}/DBD
/var/adm/perl-modules/%{name}
%changelog