#
# Conditional build:
+%bcond_with coro # don't package Coro transport
%bcond_without tests # perform "make test"
%define pdir DBI
Summary(sv.UTF-8): Ett databasåtkomst-API för Perl
Summary(zh_CN.UTF-8): Perl 的数据库访问 API。
Name: perl-DBI
-Version: 1.631
-Release: 1
+Version: 1.636
+Release: 2
License: GPL or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/DBI/%{pnam}-%{version}.tar.gz
-# Source0-md5: 444d3c305e86597e11092b517794a840
+# Source0-md5: 60f291e5f015550dde71d1858dfe93ba
URL: http://search.cpan.org/dist/DBI/
BuildRequires: perl-ExtUtils-MakeMaker >= 6.48
BuildRequires: perl-devel >= 1:5.8.1
# already in doc
%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/DBI/Changes.pod
+%if %{without coro}
+%{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/DBD/Gofer/Transport/corostream.pm
+%endif
+
%clean
rm -rf $RPM_BUILD_ROOT
%exclude %{perl_vendorarch}/DBD/Proxy.pm
%exclude %{perl_vendorarch}/DBI/ProfileDumper/Apache.pm
%exclude %{perl_vendorarch}/DBI/ProxyServer.pm
+%if %{with coro}
%exclude %{perl_vendorarch}/DBD/Gofer/Transport/corostream.pm
+%endif
%files -n perl-DBD-Proxy
%defattr(644,root,root,755)
%{_mandir}/man3/DBD::Proxy.3pm*
%{_mandir}/man3/DBI::ProxyServer.3pm*
+%if %{with coro}
%files Coro
%defattr(644,root,root,755)
%doc ex/corogofer.pl
%{perl_vendorarch}/DBD/Gofer/Transport/corostream.pm
+%endif
%files ProfileDumper-Apache
%defattr(644,root,root,755)