2007-01-16 00:30:21 +01:00
|
|
|
#
|
2009-07-27 22:13:22 +02:00
|
|
|
# spec file for package perl-DBI (Version 1.609)
|
2007-01-16 00:30:21 +01:00
|
|
|
#
|
2009-05-19 01:27:49 +02:00
|
|
|
# Copyright (c) 2009 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
|
|
|
|
|
2009-07-27 22:13:22 +02:00
|
|
|
%define pren perl
|
|
|
|
%define cpan_name DBI
|
|
|
|
%define ver 1.609
|
|
|
|
%if %{?rel:0}%{!?rel:1}
|
|
|
|
%define rel 1
|
|
|
|
%endif
|
|
|
|
#Distribution: %dist
|
|
|
|
#Packager: %packager
|
|
|
|
#Vendor: %vendor
|
2008-02-22 01:43:38 +01:00
|
|
|
|
2007-01-16 00:30:21 +01:00
|
|
|
Name: perl-DBI
|
2009-07-27 22:13:22 +02:00
|
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
|
|
|
Summary: The Perl Database Interface
|
|
|
|
Version: 1.609
|
2007-01-16 00:30:21 +01:00
|
|
|
Release: 1
|
2007-10-08 12:26:58 +02:00
|
|
|
AutoReqProv: on
|
2007-07-05 01:22:28 +02:00
|
|
|
License: GPL v2 or later
|
2009-07-27 22:13:22 +02:00
|
|
|
Group: Development/Libraries/Perl
|
2007-10-08 12:26:58 +02:00
|
|
|
Url: http://cpan.org/modules/by-module/DBI/
|
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
|
2009-07-27 22:13:22 +02:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Test::Simple) >= 0.40
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
|
|
|
|
BuildRequires: perl(Storable) >= 1
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
BuildRequires: perl(Scalar::Util)
|
|
|
|
#BuildRequires: perl(Curses)
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Requires: perl(Storable) >= 1
|
|
|
|
Requires: perl(File::Spec)
|
|
|
|
Requires: perl(Scalar::Util)
|
|
|
|
Requires: perl-PlRPC
|
|
|
|
Obsoletes: perl_dbi
|
|
|
|
Provides: perl_dbi DBI DBDI
|
2007-01-16 00:30:21 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
The Perl Database Interface by Tim Bunce.
|
|
|
|
|
2009-07-27 22:13:22 +02:00
|
|
|
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
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
2009-07-27 22:13:22 +02:00
|
|
|
%{__make}
|
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
|
2007-01-16 00:30:21 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes README
|
2008-02-22 01:43:38 +01:00
|
|
|
|
2007-02-26 13:20:36 +01:00
|
|
|
%changelog
|