3 %bcond_without tests # Do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: A PostgresSQL interface for Perl
9 Summary(cs.UTF-8): PostgresSQL rozhraní pro Perl
10 Summary(da.UTF-8): Et PostgreSQL-grænseflade for Perl
11 Summary(de.UTF-8): Ein PostgreSQL-Interface für Perl
12 Summary(es.UTF-8): Interfaz PostgresSQL para Perl
13 Summary(fr.UTF-8): Interface PostgresSQL pour Perl
14 Summary(it.UTF-8): Interfaccia PostgreSQL per Perl
15 Summary(ja.UTF-8): Perl の PostgreSQL インターフェイス
16 Summary(ko.UTF-8): 펄을 위한 PostgresSQL 인터페이스
17 Summary(nb.UTF-8): Et PostgreSQL-grensesnitt for Perl
18 Summary(pl.UTF-8): Perlowy interfejs do PostgresSQL-a
19 Summary(pt.UTF-8): Uma interface de Perl para o PostgresSQL
20 Summary(pt_BR.UTF-8): Uma interface de Perl para o PostgresSQL
21 Summary(ru.UTF-8): Интерфейс PostgresSQL для Perl
22 Summary(sv.UTF-8): Ett gränssnitt till PostgresSQL för Perl
23 Summary(uk.UTF-8): Perl-інтерфейс до PostgresSQL
24 Summary(zh_CN.UTF-8): Perl 的 PostgresSQL 界面。
29 License: GPL v1+ or Artistic
30 Group: Development/Languages/Perl
31 Source0: http://www.cpan.org/modules/by-module/DBD/%{pdir}-%{pnam}-%{version}.tar.gz
32 # Source0-md5: 71757069e05662985f2931e84edc3e6c
33 URL: http://search.cpan.org/dist/DBD-Pg/
34 BuildRequires: perl-DBI
35 BuildRequires: perl-devel >= 1:5.8.0
36 BuildRequires: postgresql-devel
37 BuildRequires: rpm-perlprov >= 4.1-13
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define _noautoreq 'perl(POSIX(qw(isprint)))'
43 DBD::Pg - PostgreSQL database driver for the DBI module.
45 %description -l cs.UTF-8
46 Implementace DBI pro PostgreSQL do Perlu.
48 %description -l da.UTF-8
49 Denne pakke indeholder en implementation af DBI for PostgreSQL for
52 %description -l de.UTF-8
53 Dieses Paket enthält eine Implementierung von PostgreSQL für Perl.
55 %description -l es.UTF-8
56 Este paquete contiene una implementación de DBI para PotgreSQL para
59 %description -l fr.UTF-8
60 Ce paquetage contient une mise en oeuvre de DBI pour PostgreSQL pour
63 %description -l it.UTF-8
64 Questo pacchetto contiene un'implementazione di DBI per PostgreSQL per
67 %description -l ja.UTF-8
68 このパッケージには Perl の PostgreSQL 用 DBI 実装が収録されています。
70 %description -l ko.UTF-8
71 이 패키지는 펄을 위한 PostgreSQL의 DBI 실현을 포함하고 있습니다.
73 %description -l nb.UTF-8
74 Denne pakken inneholder en implementasjon av DBI for PostgreSQL for
77 %description -l pl.UTF-8
78 DBD::Pg - Sterownik bazy danych PostgreSQL dla modułu DBI.
80 %description -l pt.UTF-8
81 Este pacote contém uma implementação de DBI para o PostgreSQL para o
84 %description -l pt_BR.UTF-8
85 Este pacote contém uma implementação de DBI para o PostgreSQL para o
88 %description -l ru.UTF-8
89 Это пакет содержит реализацию DBI для PostgreSQL для Perl.
91 %description -l sv.UTF-8
92 Detta paket innehåller en implementation av DBI för PostgreSQL för
95 %description -l zh_CN.UTF-8
96 该软件包包括用于 Perl 的 PostgreSQL 的 DBI 实现。
99 %setup -q -n %{pdir}-%{pnam}-%{version}
102 POSTGRES_LIB="%{_libdir}"; export POSTGRES_LIB
103 POSTGRES_INCLUDE="%{_includedir}/postgresql"; export POSTGRES_INCLUDE
104 %{__perl} Makefile.PL \
108 OPTIMIZE="%{rpmcflags}"
110 # skip SIGNATURE test (uses network to get PGP key)
112 %{?with_tests:%{__make} test}
115 rm -rf $RPM_BUILD_ROOT
118 DESTDIR=$RPM_BUILD_ROOT
121 rm -rf $RPM_BUILD_ROOT
124 %defattr(644,root,root,755)
126 %{perl_vendorarch}/DBD/*
127 %dir %{perl_vendorarch}/auto/DBD/Pg
128 %{perl_vendorarch}/auto/DBD/Pg/Pg.bs
129 %attr(755,root,root) %{perl_vendorarch}/auto/DBD/Pg/Pg.so