]> git.pld-linux.org Git - packages/perl-DBD-PgPP.git/blame - perl-DBD-PgPP.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-DBD-PgPP.git] / perl-DBD-PgPP.spec
CommitLineData
20e338b4 1#
37997868 2# Conditional build:
d681b146 3%bcond_with tests # perform "make test" (requires database connection)
37997868 4#
ab1de352 5%define pdir DBD
6%define pnam PgPP
d681b146 7Summary: Pure Perl PostgresSQL driver for DBI
80b4501e 8Summary(pl.UTF-8): Czysto perlowy sterownik do PostgresSQL-a dla DBI
37997868 9Name: perl-DBD-PgPP
ede78848 10Version: 0.08
faa08f73 11Release: 1
37997868
PG
12# same as perl
13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
abb2e8ce 15Source0: http://www.cpan.org/modules/by-module/DBD/%{pdir}-%{pnam}-%{version}.tar.gz
ede78848 16# Source0-md5: 0993870ecda306a619a5a10825e7bd29
abb2e8ce 17URL: http://search.cpan.org/dist/DBD-PgPP/
37997868 18BuildRequires: perl-DBI
d681b146
JB
19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
21BuildArch: noarch
37997868
PG
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
37997868 24%description
d681b146
JB
25DBD::PgPP is a Pure Perl client interface for the PostgreSQL database.
26This module implements the PostgreSQL client/server network protocol,
27so you don't need an external PostgreSQL client library like "libpq"
28for it to work. That means you can connect to a PostgreSQL server from
29operating systems to which PostgreSQL has not been ported.
37997868 30
023e2c31 31%description -l pl.UTF-8
d681b146 32DBD::PgPP to czysto perlowy interfejs kliencki do bazy danych
023e2c31
JR
33PostgreSQL. Ten moduł implementuje protokół sieciowy klient-serwer
34PostgreSQL-a, więc nie wymaga do działania zewnętrznej biblioteki
35klienckiej typu libpq. Oznacza to, że można się łączyć z serwerem
36PostgreSQL z systemów operacyjnych, na które PostgreSQL nie został
d681b146 37sportowany.
37997868
PG
38
39%prep
40%setup -q -n %{pdir}-%{pnam}-%{version}
41
42%build
d681b146
JB
43%{__perl} Makefile.PL \
44 INSTALLDIRS=vendor
45%{__make}
37997868
PG
46
47# Needed to be set for tests:
48#PG_TEST_DB=<database>
49#PG_TEST_USER=<user>
50#PG_TEST_PASS=<password>
51#PG_TEST_HOST=<hostname>*
52%{?with_tests:%{__make} test}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56
57%{__make} install \
58 DESTDIR=$RPM_BUILD_ROOT
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%files
64%defattr(644,root,root,755)
65%doc Changes README
d681b146 66%{perl_vendorlib}/DBD/PgPP.pm
37997868 67%{_mandir}/man[13]/*
This page took 0.037384 seconds and 4 git commands to generate.