]> git.pld-linux.org Git - packages/perl-DBD-Pg.git/blob - perl-DBD-Pg.spec
- applied changes using automat supplied by Radoslaw Zielinski
[packages/perl-DBD-Pg.git] / perl-DBD-Pg.spec
1 %include        /usr/lib/rpm/macros.perl
2 %define pdir    DBD
3 %define pnam    Pg
4 %define         _noautoreq "perl(POSIX(qw(isprint)))"
5 Summary:        DBD::Pg perl module
6 Summary(pl):    Modu³ perla DBD::Pg
7 Name:           perl-DBD-Pg
8 Version:        1.01
9 Release:        3
10 License:        GPL
11 Group:          Development/Languages/Perl
12 Source0:        ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
13 BuildRequires:  rpm-perlprov >= 3.0.3-16
14 BuildRequires:  perl >= 5.6
15 BuildRequires:  perl-DBI
16 BuildRequires:  postgresql-libs
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 DBD::Pg - PostgreSQL database driver for the DBI module.
21
22 %description -l pl
23 DBD::Pg - Sterownik bazy danych PostgreSQL dla modu³u DBI.
24
25 %prep
26 %setup -q -n %{pdir}-%{pnam}-%{version}
27
28 %build
29 POSTGRES_LIB="%{_libdir}"; export POSTGRES_LIB
30 POSTGRES_INCLUDE="%{_includedir}/postgresql"; export POSTGRES_INCLUDE
31 perl Makefile.PL
32 %{__make} OPTIMIZE="%{rpmcflags}"
33
34 %install
35 rm -rf $RPM_BUILD_ROOT
36
37 %{__make} install DESTDIR=$RPM_BUILD_ROOT
38
39 gzip -9nf Changes README
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %files
45 %defattr(644,root,root,755)
46 %doc *.gz
47 %{perl_sitearch}/DBD/*.pm
48 %{perl_sitearch}/auto/DBD/Pg/Pg.bs
49 %attr(755,root,root) %{perl_sitearch}/auto/DBD/Pg/Pg.so
50 %{_mandir}/man[13]/*
This page took 0.098423 seconds and 4 git commands to generate.