%define module Math-Derivative %define name perl-%{module} %define version 0.01 %define release 3mdk Name: %{name} Version: %{version} Release: %{release} Summary: Numeric 1st and 2nd order differentiation License: GPL or Artistic Group: Development/Perl Source: http://search.cpan.org/CPAN/authors/id/J/JA/JARW/%{module}-%{version}.tar.bz2 Url: http://www.cpan.org BuildRoot: %{_tmppath}/%{name}-buildroot/ %if %{mdkversion} < 1010 Buildrequires: perl-devel %endif Buildarch: noarch %description This Perl package exports functions for performing numerical first (Derivative1) and second Derivative2) order differentiation on vectors of data. They both take references to two arrays containing the x and y ordinates of the data and return an array of the 1st or 2nd derivative at the given x ordinates. Derivative2 may optionally be given values to use for the first dervivative at the start and end points of the data - otherwiswe 'natural' values are used. %prep %setup -n %{module}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %make test %install rm -rf $RPM_BUILD_ROOT %makeinstall_std %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc README %{perl_vendorlib}/* %{_mandir}/*/* %changelog * Mon Dec 20 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.01-3mdk - fix buildrequires in a backward compatible way * Fri Jul 23 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.01-2mdk - rpmbuildupdate aware * Mon Jan 05 2004 Guillaume Rousse <guillomovitch@mandrake.org> 0.01-1mdk - first mdk release