Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > c19f377981bb1bb2eb5507558efb7fd3 > files > 2

perl-DBI-1.623.0-2.mga3.src.rpm

%define upstream_name DBI
%define upstream_version 1.623

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 2

Summary:    The Perl Database Interface
License:    GPL+
Group:      Development/Perl
Url:        http://dbi.perl.org/
Source0:    ftp://ftp.perl.org/pub/CPAN/modules/by-module/DBI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 6.480.0
BuildRequires: perl(Test::Simple) >= 0.900.0
BuildRequires: perl-devel
%description
The Perl Database Interface (DBI) is a database access Application Programming
Interface (API) for the Perl Language. The Perl DBI API specification defines a
set of functions, variables and conventions that provide a consistent database
interface independent of the actual database being used.

%package	proxy
Group:      Development/Perl
Summary:    DBI proxy server and client
Requires:   %{name} = %{version}
%description	proxy
DBI::ProxyServer is a module for implementing a proxy for the DBI
proxy driver, DBD::Proxy.
DBD::Proxy is a Perl module for connecting to a database via a remote
DBI driver.

%package	ProfileDumper-Apache
Group:      Development/Perl
Summary:    DBI profiling data for mod_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.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 755 ex

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%__make CFLAGS="%{optflags}"

%check
rm -f t/zvg_85gofer t/pod.t
%__make test

%install
%makeinstall_std

# remove Win32 stuff
rm -rf %{buildroot}%{perl_vendorarch}/Win32
rm -f %{buildroot}%{perl_vendorarch}/DBI/W32ODBC.pm
rm -f %{buildroot}%{perl_vendorarch}/Roadmap.pod
rm -f %{buildroot}%{perl_vendorarch}/DBI/Roadmap.pm
rm -f %{buildroot}%{perl_vendorarch}/TASKS.pod
rm -f %{buildroot}%{perl_vendorarch}/DBI/TASKS.pm
rm -f %{buildroot}%{_mandir}/man3*/Win32::DBIODBC.3pm*
rm -f %{buildroot}%{_mandir}/man3*/DBI::W32ODBC.3pm*
rm -f %{buildroot}%{_mandir}/man3*/Roadmap.3pm*
rm -f %{buildroot}%{_mandir}/man3*/TASKS.3pm*
# Fix upstream perm bug #3053
chmod 644 META.yml

%files
%doc Changes META.json META.yml MYMETA.yml README ex
%{_bindir}/dbiprof
%{_bindir}/dbilogstrip
%{_mandir}/*/*
%exclude %{_mandir}/man1/dbiproxy.1*
%exclude %{_mandir}/man3*/DBD::Proxy.3pm*
%exclude %{_mandir}/man3*/DBI::ProxyServer.3pm*
%exclude %{_mandir}/man3*/DBI::ProfileDumper::Apache.3pm*
%{perl_vendorarch}/Bundle
%{perl_vendorarch}/DBD
%{perl_vendorarch}/dbixs_rev.pl
%exclude %{perl_vendorarch}/DBD/Proxy.pm
%{perl_vendorarch}/DBI.pm
%{perl_vendorarch}/DBI
%exclude %{perl_vendorarch}/DBI/ProfileDumper
%exclude %{perl_vendorarch}/DBI/ProxyServer.pm
%{perl_vendorarch}/auto/DBI

%files proxy
%{_bindir}/dbiproxy
%{perl_vendorarch}/DBD/Proxy.pm
%{perl_vendorarch}/DBI/ProxyServer.pm
%{_mandir}/man1/dbiproxy.1.*
%{_mandir}/man3*/DBI::ProxyServer.3pm.*
%{_mandir}/man3*/DBD::Proxy.3pm.*

%files ProfileDumper-Apache
%{perl_vendorarch}/DBI/ProfileDumper
%{perl_vendorarch}/DBI/ProfileDumper.pm
%{_mandir}/man3*/DBI::ProfileDumper::Apache.3pm.*

%changelog

* Sun Jan 13 2013 umeabot <umeabot> 1.623.0-2.mga3
+ Revision: 365052
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Jan 08 2013 jquelin <jquelin> 1.623.0-1.mga3
+ Revision: 342039
- update to 1.623

* Sat Jun 09 2012 jquelin <jquelin> 1.622.0-1.mga3
+ Revision: 258873
- update to 1.622

* Wed Jun 06 2012 jquelin <jquelin> 1.621.0-1.mga3
+ Revision: 256128
- update to 1.621

* Wed May 30 2012 jquelin <jquelin> 1.618.0-3.mga3
+ Revision: 250497
- rebuild for perl 5.16

* Thu Apr 26 2012 jquelin <jquelin> 1.618.0-2.mga2
+ Revision: 233352
- fix examples perms (mga#5621)

* Mon Mar 05 2012 jquelin <jquelin> 1.618.0-1.mga2
+ Revision: 218695
- update to 1.618

* Thu Feb 23 2012 jquelin <jquelin> 1.617.0-1.mga2
+ Revision: 212809
- update to 1.617

* Tue Dec 06 2011 barjac <barjac> 1.616.0-5.mga2
+ Revision: 177892
- Fix perm - bug #3053 and some cleaning

* Sat Jun 11 2011 sander85 <sander85> 1.616.0-4.mga2
+ Revision: 103921
- perl 5.14

* Tue Jan 18 2011 blino <blino> 1.616.0-3.mga1
+ Revision: 23263
- rebuild for new perl

* Sun Jan 09 2011 jquelin <jquelin> 1.616.0-2.mga1
+ Revision: 2392
- imported package perl-DBI