2007-01-16 00:30:21 +01:00
|
|
|
#
|
2010-10-02 00:10:17 +02:00
|
|
|
# spec file for package perl-DBI (Version 1.615)
|
2007-01-16 00:30:21 +01:00
|
|
|
#
|
2010-01-11 16:20:48 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:30:21 +01:00
|
|
|
#
|
2009-05-19 01:27:49 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:30:21 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2010-08-09 02:12:48 +02:00
|
|
|
%bcond_with opt
|
2010-07-20 20:39:24 +02:00
|
|
|
|
2007-01-16 00:30:21 +01:00
|
|
|
Name: perl-DBI
|
2010-06-02 16:50:02 +02:00
|
|
|
%define cpan_name DBI
|
|
|
|
Summary: Database independent interface for Perl
|
2010-10-02 00:10:17 +02:00
|
|
|
Version: 1.615
|
2010-08-09 02:12:48 +02:00
|
|
|
Release: 1
|
2010-07-20 20:39:25 +02:00
|
|
|
License: GPL+ or Artistic
|
2009-07-27 22:13:22 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2010-06-02 16:50:02 +02:00
|
|
|
Url: http://search.cpan.org/dist/DBI/
|
2010-07-20 20:39:25 +02:00
|
|
|
#Source: http://www.cpan.org/modules/by-module/DBI/DBI-%{version}.tar.gz
|
2009-07-27 22:13:22 +02:00
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
2007-01-16 00:30:21 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 15:02:13 +01:00
|
|
|
%{perl_requires}
|
2009-07-27 22:13:22 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2010-08-09 02:12:48 +02:00
|
|
|
BuildRequires: perl(Test::Simple) >= 0.90
|
|
|
|
#
|
|
|
|
%if %{with opt}
|
2010-07-20 20:39:25 +02:00
|
|
|
BuildRequires: perl(Clone) >= 0.31
|
2010-08-09 02:12:48 +02:00
|
|
|
BuildRequires: perl(DB_File)
|
2010-07-20 20:39:25 +02:00
|
|
|
BuildRequires: perl(MLDBM)
|
|
|
|
BuildRequires: perl(Net::Daemon)
|
|
|
|
BuildRequires: perl(RPC::PlServer) >= 0.2001
|
|
|
|
BuildRequires: perl(SQL::Statement) >= 1.28
|
2010-08-09 02:12:48 +02:00
|
|
|
%endif
|
|
|
|
#
|
2010-11-30 14:15:46 +01:00
|
|
|
%if 0%{?suse_version} > 0
|
2010-08-09 02:12:48 +02:00
|
|
|
Recommends: perl(Clone) >= 0.31
|
|
|
|
Recommends: perl(DB_File)
|
|
|
|
Recommends: perl(MLDBM)
|
|
|
|
Recommends: perl(Net::Daemon)
|
|
|
|
Recommends: perl(RPC::PlServer) >= 0.2001
|
|
|
|
Recommends: perl(SQL::Statement) >= 1.28
|
2010-11-30 14:15:46 +01:00
|
|
|
%endif
|
2007-01-16 00:30:21 +01:00
|
|
|
|
|
|
|
%description
|
2010-06-02 16:50:02 +02:00
|
|
|
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.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Tim Bunce <Tim.Bunce@pobox.com>
|
|
|
|
<dbi-users@isc.org>
|
2007-01-16 00:30:21 +01:00
|
|
|
|
|
|
|
%prep
|
2009-07-27 22:13:22 +02:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2007-01-16 00:30:21 +01:00
|
|
|
|
|
|
|
%build
|
2010-07-20 20:39:25 +02:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
2010-01-12 11:45:02 +01:00
|
|
|
%{__make} %{?_smp_mflags}
|
2007-06-14 15:48:59 +02:00
|
|
|
|
|
|
|
%check
|
2009-07-27 22:13:22 +02:00
|
|
|
%{__make} test
|
2007-01-16 00:30:21 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2009-07-27 22:13:22 +02:00
|
|
|
%perl_gen_filelist
|
2007-01-16 00:30:21 +01:00
|
|
|
|
|
|
|
%clean
|
2009-07-27 22:13:22 +02:00
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
2007-01-16 00:30:21 +01:00
|
|
|
|
2009-07-27 22:13:22 +02:00
|
|
|
%files -f %{name}.files
|
2010-06-02 16:50:02 +02:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes Driver.xst README TODO_2005.txt TODO_gofer.txt ex
|
2008-02-22 01:43:38 +01:00
|
|
|
|
2007-02-26 13:20:36 +01:00
|
|
|
%changelog
|