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/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
32 # Source0-md5: 76b9d6a2f4cbaefcba23380f83998215
33 BuildRequires: perl-DBI
34 BuildRequires: perl-devel >= 1:5.8.0
35 BuildRequires: postgresql-devel
36 BuildRequires: rpm-perlprov >= 4.1-13
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39 %define _noautoreq 'perl(POSIX(qw(isprint)))'
42 DBD::Pg - PostgreSQL database driver for the DBI module.
44 %description -l cs.UTF-8
45 Implementace DBI pro PostgreSQL do Perlu.
47 %description -l da.UTF-8
48 Denne pakke indeholder en implementation af DBI for PostgreSQL for
51 %description -l de.UTF-8
52 Dieses Paket enthält eine Implementierung von PostgreSQL für Perl.
54 %description -l es.UTF-8
55 Este paquete contiene una implementación de DBI para PotgreSQL para
58 %description -l fr.UTF-8
59 Ce paquetage contient une mise en oeuvre de DBI pour PostgreSQL pour
62 %description -l it.UTF-8
63 Questo pacchetto contiene un'implementazione di DBI per PostgreSQL per
66 %description -l ja.UTF-8
67 このパッケージには Perl の PostgreSQL 用 DBI 実装が収録されています。
69 %description -l ko.UTF-8
70 이 패키지는 펄을 위한 PostgreSQL의 DBI 실현을 포함하고 있습니다.
72 %description -l nb.UTF-8
73 Denne pakken inneholder en implementasjon av DBI for PostgreSQL for
76 %description -l pl.UTF-8
77 DBD::Pg - Sterownik bazy danych PostgreSQL dla modułu DBI.
79 %description -l pt.UTF-8
80 Este pacote contém uma implementação de DBI para o PostgreSQL para o
83 %description -l pt_BR.UTF-8
84 Este pacote contém uma implementação de DBI para o PostgreSQL para o
87 %description -l ru.UTF-8
88 Это пакет содержит реализацию DBI для PostgreSQL для Perl.
90 %description -l sv.UTF-8
91 Detta paket innehåller en implementation av DBI för PostgreSQL för
94 %description -l zh_CN.UTF-8
95 该软件包包括用于 Perl 的 PostgreSQL 的 DBI 实现。
98 %setup -q -n %{pdir}-%{pnam}-%{version}
101 POSTGRES_LIB="%{_libdir}"; export POSTGRES_LIB
102 POSTGRES_INCLUDE="%{_includedir}/postgresql"; export POSTGRES_INCLUDE
103 %{__perl} Makefile.PL \
106 OPTIMIZE="%{rpmcflags}"
108 # skip SIGNATURE test (uses network to get PGP key)
110 %{?with_tests:%{__make} test}
113 rm -rf $RPM_BUILD_ROOT
116 DESTDIR=$RPM_BUILD_ROOT
119 rm -rf $RPM_BUILD_ROOT
122 %defattr(644,root,root,755)
124 %{perl_vendorarch}/DBD/*
125 %dir %{perl_vendorarch}/auto/DBD/Pg
126 %{perl_vendorarch}/auto/DBD/Pg/Pg.bs
127 %attr(755,root,root) %{perl_vendorarch}/auto/DBD/Pg/Pg.so