File perl-DBD-ODBC.spec of Package perl-DBD-ODBC
#
# spec file for package perl-DBD-ODBC (Version 1.22)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: perl-DBD-ODBC
Url: http://cpan.org/modules/by-module/DBD/
BuildRequires: perl-DBI unixODBC-devel
License: GPL v2 or later
Group: Development/Libraries/Perl
AutoReqProv: on
Requires: perl-DBI unixODBC
Requires: perl = %{perl_version}
Summary: Perl DBD module for interfacing with ODBC databases
Version: 1.22
Release: 1
Source: DBD-ODBC-%{version}.tar.bz2
Patch: %{name}-%{version}-Makefile.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This module is needed to access ODBC databases from within Perl. The
module uses the unixODBC manager to connect to the database.
Authors:
--------
Tim Bunce
Jeff Urlwin
Thomas K. Wenrich
%prep
%setup -q -n DBD-ODBC-%{version}
%patch
%build
export ODBCHOME=/usr LIB=%{_lib}
perl Makefile.PL
make
%check
make test
%install
install -d $RPM_BUILD_ROOT/%{perl_archlib}
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc Changes README MANIFEST
%doc %{_mandir}/man?/*
%dir %{perl_vendorarch}/DBD
%dir %{perl_vendorarch}/auto/DBD
%{perl_vendorarch}/DBD/*
%{perl_vendorarch}/auto/DBD/*
/var/adm/perl-modules/%{name}
%changelog