]> git.pld-linux.org Git - packages/perl-DBI.git/blobdiff - perl-DBI.spec
- pl for DBD::Proxy
[packages/perl-DBI.git] / perl-DBI.spec
index 546032cb4044d8f437fe349e576ade9df5a765d8..dbcd1f04d7f4039999c65f9eaa22656f7b9b14f1 100644 (file)
@@ -1,5 +1,3 @@
-# TODO
-# - perl(RPC::PlClient) as optional?  If yes, separate /proxy/i to subpackage.
 #
 # Conditional build:
 %bcond_without autodeps        # don't BR packages needed only for resolving deps
@@ -25,13 +23,14 @@ Summary(ru.UTF-8):  Библиотека для доступа к базам да
 Summary(sv.UTF-8):     Ett databasåtkomst-API för Perl
 Summary(zh_CN.UTF-8):  Perl 的数据库访问 API。
 Name:          perl-DBI
-Version:       1.601
+Version:       1.602
 Release:       1
 License:       GPL or Artistic
 Group:         Development/Languages/Perl
-Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pnam}-%{version}.tar.gz
-# Source0-md5: d80677bd8113ec8cb0438b8703f3c418
+Source0:       http://www.cpan.org/modules/by-module/DBI/%{pnam}-%{version}.tar.gz
+# Source0-md5: 6ca87d67decf274983e62261889edc85
 Patch0:                %{name}-changes.patch
+URL:           http://search.cpan.org/dist/DBI/
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
 %if %{with autodeps} || %{with tests}
@@ -42,7 +41,7 @@ Obsoletes:    perl-DBI-FAQ
 Conflicts:     perl-DBD-CSV < 1:0.21
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _noautoreq      'perl(DBD::<foo>)' 'perl(DBI::Format)' 'perl(DBI::PurePerl)' 'perl(DBI)' 'perl(DBI::.*)'
+%define                _noautoreq      'perl(DBD::<foo>)' 'perl(DBI)' 'perl(DBI::.*)'
 %define                _noautoreqdep   'perl(UNIVERSAL)'
 
 %description
@@ -134,6 +133,28 @@ DBI 是用于 Perl 编程语言的数据库访问程序编写界面 (API)。 DBI
 明细表定义了一组函数、变量和定规,它们提供了一个独立于实际被使用的数据
 库之外的连贯的数据库 界面。
 
+%package -n perl-DBD-Proxy
+Summary:       DBD::Proxy - A proxy driver for the DBI
+Summary(pl.UTF-8):     DBD::Proxy - sterownik proxy dla DBI
+Group:         Development/Languages/Perl
+Requires:      %{name} = %{version}-%{release}
+
+%description -n perl-DBD-Proxy
+DBD::Proxy is a Perl module for connecting to a database via a remote
+DBI driver.
+
+This is of course not needed for DBI drivers which already support
+connecting to a remote database, but there are engines which don't
+offer network connectivity.
+
+%description -n perl-DBD-Proxy -l pl.UTF-8
+DBD::Proxy to moduł Perla służący do łączenia się z bazą danych
+poprzez zdalny sterownik DBI.
+
+Nie jest to oczywiście potrzebne dla sterowników DBI które same
+obsługują łączenie się ze zdalną bazą danych, ale oprócz nich są
+silniki, które nie oferują łączności sieciowej.
+
 %package ProfileDumper-Apache
 Summary:       DBI::ProfileDumper::Apache - capture DBI profiling data from Apache/mod_perl
 Summary(pl.UTF-8):     DBI::ProfileDumper::Apache - przechwytywanie danych parametryzujących DBI z Apache/mod_perl
@@ -167,6 +188,7 @@ mv t/80proxy.t{,-needs-syslog}
 %{__perl} Makefile.PL \
        INSTALLDIRS=vendor
 %{__make} \
+       CC="%{__cc}" \
        OPTIMIZE="%{rpmcflags}"
 
 %{?with_tests:%{__make} test}
@@ -206,7 +228,7 @@ rm -rf $RPM_BUILD_ROOT
 %{perl_vendorarch}/DBI/Gofer
 %{perl_vendorarch}/DBI/SQL
 %{perl_vendorarch}/DBI/Util
-%{perl_vendorarch}/DBI/[DFPS]*.pm
+%{perl_vendorarch}/DBI/*.pm
 %{perl_vendorarch}/DBD
 %dir %{perl_vendorarch}/auto/DBD
 %dir %{perl_vendorarch}/auto/DBI
@@ -217,16 +239,24 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{perl_vendorarch}/auto/DBI/DBI.so
 %{_mandir}/man1/*
 %{_mandir}/man3/DBD*
-%{_mandir}/man3/DBI.3*
-%{_mandir}/man3/DBI::Profile.3*
-%{_mandir}/man3/DBI::ProfileData.3*
-%{_mandir}/man3/DBI::ProfileDumper.3*
-%{_mandir}/man3/DBI::ProfileSubs.3pm*
-%{_mandir}/man3/DBI::ProxyServer.3*
-%{_mandir}/man3/DBI::PurePerl.3*
-%{_mandir}/man3/DBI::[!PW]*
+%{_mandir}/man3/DBI*
 %{_mandir}/man3/TASKS.3pm*
 
+# in subpackages
+%exclude %{_mandir}/man3/DBD::Proxy.3pm*
+%exclude %{_mandir}/man3/DBI::ProfileDumper::Apache.3*
+%exclude %{_mandir}/man3/DBI::ProxyServer.3*
+%exclude %{perl_vendorarch}/DBD/Proxy.pm
+%exclude %{perl_vendorarch}/DBI/ProfileDumper/Apache.pm
+%exclude %{perl_vendorarch}/DBI/ProxyServer.pm
+
+%files -n perl-DBD-Proxy
+%defattr(644,root,root,755)
+%{perl_vendorarch}/DBD/Proxy.pm
+%{perl_vendorarch}/DBI/ProxyServer.pm
+%{_mandir}/man3/DBD::Proxy.3pm*
+%{_mandir}/man3/DBI::ProxyServer.3*
+
 %files ProfileDumper-Apache
 %defattr(644,root,root,755)
 %dir %{perl_vendorarch}/DBI/ProfileDumper
This page took 0.112169 seconds and 4 git commands to generate.