3 %bcond_with tests # perform "make test" (requires database connection)
5 %include /usr/lib/rpm/macros.perl
8 Summary: Pure Perl PostgresSQL driver for DBI
9 Summary(pl.UTF-8): Czysto perlowy sterownik do PostgresSQL-a dla DBI
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/DBD/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 159d54a21eda08ab93fd44f2791cf56f
18 URL: http://search.cpan.org/dist/DBD-PgPP/
19 BuildRequires: perl-DBI
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 DBD::PgPP is a Pure Perl client interface for the PostgreSQL database.
27 This module implements the PostgreSQL client/server network protocol,
28 so you don't need an external PostgreSQL client library like "libpq"
29 for it to work. That means you can connect to a PostgreSQL server from
30 operating systems to which PostgreSQL has not been ported.
32 %description -l pl.UTF-8
33 DBD::PgPP to czysto perlowy interfejs kliencki do bazy danych
34 PostgreSQL. Ten moduł implementuje protokół sieciowy klient-serwer
35 PostgreSQL-a, więc nie wymaga do działania zewnętrznej biblioteki
36 klienckiej typu libpq. Oznacza to, że można się łączyć z serwerem
37 PostgreSQL z systemów operacyjnych, na które PostgreSQL nie został
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 # Needed to be set for tests:
49 #PG_TEST_DB=<database>
51 #PG_TEST_PASS=<password>
52 #PG_TEST_HOST=<hostname>*
53 %{?with_tests:%{__make} test}
56 rm -rf $RPM_BUILD_ROOT
59 DESTDIR=$RPM_BUILD_ROOT
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
67 %{perl_vendorlib}/DBD/PgPP.pm
68 %lang(ja) %{perl_vendorlib}/DBD/DBD-PgPP.ja.pod