]> git.pld-linux.org Git - packages/perl-DBI.git/blobdiff - perl-DBI.spec
- updated to 1.34
[packages/perl-DBI.git] / perl-DBI.spec
index f9816b270be1455665d5bd5cc8e7ce7d07de5b61..25066a8a75dee402eb80668b0c50048c629269e8 100644 (file)
+#
+# Conditional build:
+# _with_tests - perform "make test"
+#
 %include       /usr/lib/rpm/macros.perl
-Summary:       DBI perl module
-Summary(pl):   Modu³ perla DBI
+%define        pdir    DBI
+%define        pnam    DBI
+Summary:       DBI - database independent interface for Perl
+Summary(pl):   DBI - niezale¿ny interfejs baz danych dla perla
 Name:          perl-DBI
-Version:       1.18
+Version:       1.34
 Release:       1
-License:       GPL
+License:       GPL/Artistic
 Group:         Development/Languages/Perl
-Group(de):     Entwicklung/Sprachen/Perl
-Group(pl):     Programowanie/Jêzyki/Perl
-Source0:       ftp://ftp.perl.org/pub/CPAN/modules/by-module/DBI/DBI-%{version}.tar.gz
-Patch0:                %{name}-fmt.patch
+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
+BuildRequires: perl >= 5.6.1
+%if %{?_with_tests:1}%{!?_with_tests:0}
 BuildRequires: perl-PlRPC
+BuildRequires: perl-Storable
+BuildRequires: perl-Net-Daemon
+%endif
 Obsoletes:     perl-DBI-FAQ
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define                _noautoreq      'perl(DBD::<foo>)' 'perl(DBI::Format)' 'perl(DBI::PurePerl)'
+%define                _noautoreqdep   'perl(UNIVERSAL)'
+
 %description
-DBI - Database independent interface for Perl
+The DBI is a database access module for the Perl programming language.
+It defines a set of methods, variables, and conventions that provide
+a consistent database interface, independent of the actual database
+being used.
 
 %description -l pl
-DBI - niezale¿ny interfejs bazy danych dla perla
+DBI jest modu³em dostêpu do baz danych dla Perla.  Definiuje grupê metod,
+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 DBI-%{version}
-%patch -p0
+%setup -q -n %{pnam}-%{version}
+%patch0 -p0
 
 %build
-perl Makefile.PL
+%{__perl} Makefile.PL
 %{__make} OPTIMIZE="%{rpmcflags}"
 
+%{?_with_tests:%{__make} test}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf Changes README ToDo
+install -d $RPM_BUILD_ROOT{%{perl_sitelib}/DBIx,%{perl_sitearch}/auto/DBD}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc *.gz
+%doc Changes README ToDo
 %attr(755,root,root) %{_bindir}/*
-%{perl_sitearch}/Bundle/DBI.pm
-%{perl_sitearch}/DBD/*.pm
+%dir %{perl_sitelib}/DBIx
 %{perl_sitearch}/DBI.pm
-%{perl_sitearch}/DBI/*.pm
-%{perl_sitearch}/Win32/DBIODBC.pm
-%{perl_sitearch}/auto/DBI/DBIXS.h
+%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/*.h
 %{perl_sitearch}/auto/DBI/Driver.xst
-%{perl_sitearch}/auto/DBI/dbd_xsh.h
-%{perl_sitearch}/auto/DBI/dbi_sql.h
 %{perl_sitearch}/auto/DBI/DBI.bs
-%{perl_sitearch}/auto/DBI/dbipport.h
 %attr(755,root,root) %{perl_sitearch}/auto/DBI/DBI.so
-%{_mandir}/man[13]/*
+%{_mandir}/man1/*
+%{_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::*
This page took 0.063276 seconds and 4 git commands to generate.