#
# Conditional build:
-# _without_tests - do not perform "make test"
+# _with_tests - perform "make test"
+#
%include /usr/lib/rpm/macros.perl
%define pdir DBI
%define pnam DBI
-Summary: DBI - Database independent interface for Perl
+Summary: DBI - database independent interface for Perl
Summary(pl): DBI - niezale¿ny interfejs baz danych dla perla
Name: perl-DBI
-Version: 1.30
+Version: 1.34
Release: 1
License: GPL/Artistic
Group: Development/Languages/Perl
-Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
+Patch0: perl-DBI-changes.patch
BuildRequires: rpm-perlprov >= 3.0.3-16
BuildRequires: perl >= 5.6.1
-%if %{?_without_tests:0}%{!?_without_tests:1}
+%if %{?_with_tests:1}%{!?_with_tests:0}
BuildRequires: perl-PlRPC
BuildRequires: perl-Storable
BuildRequires: perl-Net-Daemon
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautoreq 'perl(DBD::<foo>)' 'perl(DBI::Format)' 'perl(DBI::PurePerl)'
+%define _noautoreqdep 'perl(UNIVERSAL)'
%description
The DBI is a database access module for the Perl programming language.
zmiennych i konwencji, zapewniaj±cych spójny interfejs do baz danych,
niezale¿ny od typu aktualnie u¿ywanej bazy.
+%package ProfileDumper-Apache
+Summary: DBI::ProfileDumper::Apache - capture DBI profiling data from Apache/mod_perl
+Summary(pl): DBI::ProfileDumper::Apache - przechwytywanie danych parametryzuj±cych DBI z Apache/mod_perl
+Group: Development/Languages/Perl
+Requires: %{name} = %{version}
+
+%description ProfileDumper-Apache
+This module interfaces DBI::ProfileDumper to Apache/mod_perl. Using
+this module you can collect profiling data from mod_perl applications.
+It works by creating a DBI::ProfileDumper data file for each Apache
+process. These files are created in your Apache log directory. You can
+then use dbiprof to analyze the profile files.
+
+%description ProfileDumper-Apache -l pl
+Modu³ ten sprzêga DBI::ProfileDumper z Apache/mod_perl. Korzystaj±c z
+niego mo¿na pobraæ dane o parametryzacji z aplikacji mod_perl. Dzia³a
+on w oparciu o tworzenie przez DBI::ProfileDumper pliku danych dla
+ka¿dego procesu Apache'a. Pliki te tworzone s± w katalogu logów
+Apache'a. Mo¿na je analizowaæ za pomoc± dbiprof.
+
%prep
%setup -q -n %{pnam}-%{version}
+%patch0 -p0
%build
-perl Makefile.PL
+%{__perl} Makefile.PL
%{__make} OPTIMIZE="%{rpmcflags}"
-%{!?_without_tests:%{__make} test}
+%{?_with_tests:%{__make} test}
%install
rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/*
%dir %{perl_sitelib}/DBIx
%{perl_sitearch}/DBI.pm
-%{perl_sitearch}/DBI
+%dir %{perl_sitearch}/DBI
+%{perl_sitearch}/DBI/Const
+%{perl_sitearch}/DBI/[DFPS]*.pm
+%{perl_sitearch}/DBI/DBD
%{perl_sitearch}/DBD
%dir %{perl_sitearch}/auto/DBD
%dir %{perl_sitearch}/auto/DBI
%{perl_sitearch}/auto/DBI/DBI.bs
%attr(755,root,root) %{perl_sitearch}/auto/DBI/DBI.so
%{_mandir}/man1/*
-%{_mandir}/man3/D*
+%{_mandir}/man3/DBD*
+%{_mandir}/man3/DBI.*
+%{_mandir}/man3/DBI::Profile.*
+%{_mandir}/man3/DBI::ProfileData.*
+%{_mandir}/man3/DBI::ProfileDumper.*
+%{_mandir}/man3/DBI::ProxyServer.*
+%{_mandir}/man3/DBI::PurePerl.*
+%{_mandir}/man3/DBI::[!PW]*
+
+%files ProfileDumper-Apache
+%defattr(644,root,root,755)
+%{perl_sitearch}/DBI/ProfileDumper
+%{_mandir}/man3/DBI::ProfileDumper::*