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