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

# spec file for package perl-DBD-mysql (Version 4.018)
# Copyright (c) 2011 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

# norootforbuild

Name:           perl-DBD-mysql
%define cpan_name DBD-mysql
Summary:        MySQL driver for the Perl5 Database Interface (DBI)
Version:        4.018
Release:        1
License:        GPL+ or Artistic
Group:          Development/Libraries/Perl
Patch1:         bnc658792_pod_name_install.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
# quilt does not grock that
BuildRequires:  mysql-devel
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(DBI) >= 1.08
Requires:       perl(Data::Dumper)
Requires:       perl(DBI) >= 1.08

DBD::mysql is the Perl5 Database Interface driver for the MySQL database.
In other words: DBD::mysql is an interface between the Perl programming
language and the MySQL programming API that comes with the MySQL relational
database management system. Most functions provided by this programming API
are supported. Some rarely used functions are missing, mainly because noone
ever requested them. :-)

    Jochen Wiedmann <>

%setup -q -n %{cpan_name}-%{version}
# rpmlint: executable-docs,
#  spurious-executable-perm
#  script-without-shebang
find -type f -exec %{__chmod} 0644 {} \;
%patch1 -p1

%{__perl} Makefile.PL INSTALLDIRS=vendor --cflags="-I%{_includedir}/mysql $RPM_OPT_FLAGS"

%{__make} %{?_smp_mflags}

%{__make} test


%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
%doc ChangeLog eg INSTALL.html README TODO

openSUSE Build Service is sponsored by