%define name perl-DBI %define real_name DBI %define version 1.14 %define release 4mdk Summary: The Perl Database Interface by Tim Bunce Name: %{name} Version: %{version} Release: %{release} Copyright: GPL Group: Development/Perl Requires: perl >= 5.004 Source: ftp://ftp.pasteur.fr/pub/computing/CPAN/modules/by-module/DBI/%{real_name}-%{version}.tar.bz2 Prefix: %{_prefix} Buildroot: %{_tmppath}/%{name}-root %description The Perl Database Interface (DBI) is a database access Application Programming Interface (API) for the Perl Language. The Perl DBI API specification defines a set of functions, variables and conventions that provide a consistent database interface independant of the actual database being used. %prep -q %setup -n %{real_name}-%{version} %build %{__perl} Makefile.PL PREFIX=%{prefix} make OPTIMIZE="$RPM_OPT_FLAGS" PREFIX=%{prefix} make test %install rm -rf $RPM_BUILD_ROOT %makeinstall PREFIX=$RPM_BUILD_ROOT%{prefix} INSTALLMAN1DIR=$RPM_BUILD_ROOT%{_mandir}/man1 %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc Changes README ToDo %{_libdir}/perl5/man/man3/* %{perl_sitearch}/Bundle %{perl_sitearch}/DBD %{perl_sitearch}/DBI.pm %{perl_sitearch}/DBI %{perl_sitearch}/Win32 %{perl_sitearch}/auto/DBI %changelog * Tue Aug 29 2000 François Pons <fpons@mandrakesoft.com> 1.14-4mdk - removed make macro (-j x gets mad with x > 1). - simplification of files. * Thu Aug 03 2000 François Pons <fpons@mandrakesoft.com> 1.14-3mdk - macroszifications. - add doc. * Tue Jul 18 2000 François Pons <fpons@mandrakesoft.com> 1.14-2mdk - forgot dbipport.h in files. * Tue Jul 18 2000 François Pons <fpons@mandrakesoft.com> 1.14-1mdk - added requires. - 1.14. * Fri Jul 07 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.13-4mdk - FIx build as user. * Wed May 17 2000 David BAUDENS <baudens@mandrakesoft.com> 1.13-3mdk - Fix build for i486 * Mon Apr 3 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 1.13-2mdk - fixed group - rebuild with new perl - fixed location * Sun Dec 05 1999 Axalon Bloodstone <axalon@linux-mandrake.com> - First specfile