%define name perl-DBD-mysql %define real_name DBD-mysql %define version 2.9002 %define release 2mdk Summary: DBD Mysql perl Emulation Layer Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Development/Databases Distribution: Mandrake Linux Source: ftp://ftp.perl.com/CPAN/modules/by-module/DBD/%{real_name}-%{version}.tar.bz2 URL: http://www.tcx.se/ Buildroot: %{_tmppath}/%{name}-root Requires: perl BuildRequires: mysql-devel BuildRequires: perl-devel Conflicts: perl-Mysql %description DBD::mysql is an interface driver for connecting the DBMS independent Perl-API DBI to the mysql DBMS. When you want to use mysql from within perl, DBI and DBD::mysql are your best choice: Unlike "mysqlperl", another option, this is based on a common standard, so your sources will easily be portable to other DBMS's. %prep %setup -q -n %{real_name}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make OPTIMIZE="$RPM_OPT_FLAGS" %clean rm -rf $RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %files %defattr(-,root,root) %doc README ChangeLog %{perl_vendorarch}/* %{_mandir}/*/* %changelog * Mon Nov 24 2003 Michael Scherer <misc@mandrake.org> 2.9002-2mdk - BuildRequires perl-devel * Tue Oct 21 2003 Warly <warly@mandrakesoft.com> 2.9002-1mdk - new version