File perl-DBD-mysql.spec of Package perl-DBD-mysql

#
# spec file for package perl-DBD-mysql (Version 4.012)
#
# 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-mysql
BuildRequires:  mysql-devel perl-DBI perl-Data-ShowTable
Url:            http://cpan.org/modules/by-module/DBD/
License:        Artistic License ..
Group:          Development/Libraries/Perl
Obsoletes:      mysqperl perl-Msql-Mysql-modules
Provides:       mysqperl perl-Msql-Mysql-modules
Requires:       perl-DBI perl-Data-ShowTable
Requires:       perl = %{perl_version}
AutoReqProv:    on
Version:        4.012
Release:        1
Summary:        Interface to the MySQL database
Group:          Development/Libraries/Perl
Source:         http://www.cpan.org/modules/by-module/Mysql/DBD-mysql-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define _prefix /usr

%description
A Perl5 Database Interface to the MySQL database



Authors:
--------
    Jochen Wiedmann <joe@ispsoft.de>

%prep
%setup -q -n DBD-mysql-%{version}
chmod a-x ChangeLog README INSTALL.html

%build
perl Makefile.PL --verbose
make
#make test

%install
%perl_make_install
%perl_process_packlist
chmod a-x $RPM_BUILD_ROOT/%{perl_vendorarch}//Bundle/DBD/mysql.pm
chmod a-x $RPM_BUILD_ROOT/%{perl_vendorarch}/DBD/mysql.pm
chmod a-x $RPM_BUILD_ROOT/%{perl_vendorarch}/DBD/mysql/INSTALL.pod

%clean
# Clear up the mess
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc ChangeLog README INSTALL.html TODO
%doc %{_mandir}/man?/*
%{perl_vendorarch}/auto/DBD
%{perl_vendorarch}/Bundle/DBD
%{perl_vendorarch}/DBD
/var/adm/perl-modules/perl-DBD-mysql

%changelog
openSUSE Build Service is sponsored by