Репозиторий Sisyphus
Последнее обновление: 8 февраля 2023 | Пакетов: 18184 | Посещений: 26685973
en ru br
Репозитории ALT
5.1: 1.609-alt1
4.1: 1.604-alt1
4.0: 1.604-alt1
3.0: 1.48-alt2

Группа :: Разработка/Perl
Пакет: perl-DBI

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define dist DBI
Name: perl-%dist
Version: 1.48
Release: alt2

Summary: Database independent interface for Perl
License: GPL or Artistic
Group: Development/Perl

URL: %CPAN %dist
Source: %dist-%version.tar.bz2

# don't look for previous installations

Patch0: %name-1.37-alt-makefile-buildreq.patch
# install Changes.pod, not Changes.pm
Patch1: %name-1.45-alt-makefile-pod.patch
# get rid of DBI::PurePerl
Patch2: %name-1.46-alt-no-PurePerl.patch
# disable PurePerl tests in DBI::DBD
Patch3: %name-1.46-alt-no-PurePerl-tests.patch

# requires Apache; not required by any package

%add_findreq_skiplist */DBI/ProfileDumper/Apache.pm

# Added by buildreq2 on Wed Jun 08 2005

BuildRequires: perl-MLDBM perl-PlRPC perl-Test-Pod

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.

# required to build binary DBI drivers

%package devel
Summary: DBI development files
Group: Development/Perl
Requires: %name = %version-%release

%description devel
This package contains DBI header files and additional modules
required to build DBI binary drivers.

# profiler

%package Profile
Summary: Performance profiling and benchmarking for the DBI
Group: Development/Perl
Requires: %name = %version-%release

%description Profile
The DBI::Profile module provides a simple interface to collect
and report performance and benchmarking data from the DBI.
DBI::ProfileDumper is a subclass of DBI::Profile which dumps
profile data to disk instead of printing a summary to your screen.
You can then use %_bindir/dbiprof to analyze the data in a number
of interesting ways, or you can roll your own analysis using

# requires MLDBM

%package -n perl-DBD-DBM
Summary: DBI driver for DBM and MLDBM files
Group: Development/Perl
Requires: %name = %version-%release

%description -n perl-DBD-DBM
DBD::DBM is a database management sytem that can work right out
of the box.  The module uses a DBM file storage layer.  DBM file
storage is common on many platforms and files can be created with
it in many languges.

# required by perl-DBD-DBM, DBD::AnyData, and DBD::CSV

%package -n perl-DBD-File
Summary: Base class for writing DBI drivers
Group: Development/Perl
Requires: %name = %version-%release

%description -n perl-DBD-File
DBD::File module is a base class for writing DBI drivers
that work with plain files, for example CSV files.

# requires PlRPC

%package -n perl-DBD-Proxy
Summary: A proxy driver for the DBI
Group: Development/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.

# requires PlRPC

%package ProxyServer
Summary: A server for the DBD::Proxy driver
Group: Development/Perl
Requires: %name = %version-%release

%description ProxyServer
DBI::ProxyServer is a module for implementing a proxy
for the DBI proxy driver, DBD::Proxy. It allows access
to databases over the network.

%setup -q -n %dist-%version
%__mv Changes lib/DBI/Changes.pod
%__mv Roadmap.pod lib/DBI/Roadmap.pod
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

# get rid of DBI::PurePerl

%__rm -fv lib/DBI/PurePerl.pm

# this requires Win32::ODBC which is not even available on CPAN

%__rm -fv lib/DBI/W32ODBC.pm lib/Win32/DBIODBC.pm

%ifdef __BTE
# fails when syslog is not available
%__rm -fv t/80proxy.t

%ifndef __buildreqs
# create this magic dir to enable additional tests
%__mkdir_p .svn



%dir %perl_vendor_archlib/DBD
%dir %perl_vendor_autolib/DBI

%files devel
%dir %perl_vendor_archlib/DBI
%dir %perl_vendor_archlib/DBI/DBD
%dir %perl_vendor_archlib/DBI/Const
%dir %perl_vendor_archlib/DBI/Const/GetInfo
%dir %perl_vendor_autolib/DBI
# docs
%doc %perl_vendor_archlib/DBI/Changes.pod
%doc %perl_vendor_archlib/DBI/FAQ.pm
%doc %perl_vendor_archlib/DBI/Roadmap.pod
# extras
%dir %perl_vendor_archlib/Bundle
%dir %perl_vendor_archlib/DBD

%files Profile
%dir %perl_vendor_archlib/DBI

%files -n perl-DBD-DBM
%dir %perl_vendor_archlib/DBD

%files -n perl-DBD-File
%dir %perl_vendor_archlib/DBD
%dir %perl_vendor_archlib/DBI/SQL

%files -n perl-DBD-Proxy
%dir %perl_vendor_archlib/DBD

%files ProxyServer
%dir %perl_vendor_archlib/DBI


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin