Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37369628
en ru br
Репозитории ALT
S:1.643-alt3
5.1: 1.609-alt1
4.1: 1.604-alt1
4.0: 1.604-alt1
3.0: 1.48-alt2
www.altlinux.org/Changes

Группа :: Разработка/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

%description
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
DBI::ProfileData.

# 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.

%prep
%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

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

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

%perl_vendor_build

%install
%perl_vendor_install

%files
%perl_vendor_archlib/DBI.pm
%dir %perl_vendor_archlib/DBD
%perl_vendor_archlib/DBD/Sponge.pm
%dir %perl_vendor_autolib/DBI
%perl_vendor_autolib/DBI/DBI.so

%files devel
%dir %perl_vendor_archlib/DBI
%dir %perl_vendor_archlib/DBI/DBD
%perl_vendor_archlib/DBI/DBD.pm
%perl_vendor_archlib/DBI/DBD/Metadata.pm
%dir %perl_vendor_archlib/DBI/Const
%dir %perl_vendor_archlib/DBI/Const/GetInfo
%perl_vendor_archlib/DBI/Const/GetInfo/ANSI.pm
%perl_vendor_archlib/DBI/Const/GetInfo/ANSI.pm
%perl_vendor_archlib/DBI/Const/GetInfo/ODBC.pm
%perl_vendor_archlib/DBI/Const/GetInfoReturn.pm
%perl_vendor_archlib/DBI/Const/GetInfoType.pm
%dir %perl_vendor_autolib/DBI
%perl_vendor_autolib/DBI/*.h
%perl_vendor_autolib/DBI/Driver.xst
# 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
%perl_vendor_archlib/Bundle/DBI.pm
%dir %perl_vendor_archlib/DBD
%perl_vendor_archlib/DBD/ExampleP.pm
%perl_vendor_archlib/DBD/NullP.pm

%files Profile
%_bindir/dbiprof
%dir %perl_vendor_archlib/DBI
%perl_vendor_archlib/DBI/Profile*

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

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

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

%files ProxyServer
%_bindir/dbiproxy
%dir %perl_vendor_archlib/DBI
%perl_vendor_archlib/DBI/ProxyServer.pm

%changelog

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

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