Sophie

Sophie

distrib > Mandriva > mes5 > i586 > by-pkgid > dfe78e6cfc72243c21616f50f092654b > files > 8

perl-PDL-2.4.3-3mdv2009.0.src.rpm

%define	module	PDL
%define	name	perl-%{module}
%define	version	2.4.3
%define release	%mkrel 3
%define	epoch	1

Summary:	PerlDL, an efficient numerical language for scientific computing
Name:		%{name}
Version:	%{version}
Release:	%{release}
Epoch:		%{epoch}
License:	GPL
Group:		Development/Perl
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
URL:		http://search.cpan.org/dist/%{module}/
Source0:	ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/PDL/%{module}-%{version}.tar.bz2
Source1:	PDL-convert-doc.pl.bz2
Patch1:		PDL-2.3.3-pic.patch
Patch2:		PDL-2.4.0-handle-INSTALLDIRS-vendor.patch
Patch4:		PDL-2.4.0-fix-gimp.patch
Patch5:		PDL-2.4.2-makemakerfix.patch
Patch6:     PDL-2.4.3-gslversion.patch
BuildRequires:	X11-devel gcc-gfortran ncurses-devel perl-devel MesaGLU-devel
BuildRequires:	perl-ExtUtils_F77 >= 1.14-11mdk
BuildRequires:	libgsl-devel
Obsoletes:	PDL
Provides:	PDL

%define _requires_exceptions perl(PDL\\|perl(PGPLOT

%package	doc
Summary:	PerlDL documentation package
Group:		Books/Computer books
Requires:	perl-PDL

%description
The perlDL project aims to turn perl into an efficient numerical language for
scientific computing. The PDL module gives standard perl the ability to
COMPACTLY store and SPEEDILY manipulate the large N-dimensional data sets which
are the bread and butter of scientific computing. e.g. C<$a=$b+$c> can add two
2048x2048 images in only a fraction of a second.

The aim is to provide tons of useful functionality for
scientific and numeric analysis.

%description	doc
The perlDL project aims to turn perl into an efficient numerical language for
scientific computing. The PDL module gives standard perl the ability to
COMPACTLY store and SPEEDILY manipulate the large N-dimensional data sets which
are the bread and butter of scientific computing. e.g. C<$a=$b+$c> can add two
2048x2048 images in only a fraction of a second.

The aim is to provide tons of useful functionality for
scientific and numeric analysis.

This is the documentation package.

%prep
%setup -q -n %{module}-%{version}
%patch1 -p1 -b .pic
%patch2 -p1 -b .vendor
%patch4 -p0 -b .gimp
%patch5 -p0 -b .mm
%patch6 -p0 -b .gsl

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix}
make OPTIMIZE="$RPM_OPT_FLAGS" PREFIX=%{_prefix}
#DISPLAY="" make test

# first generate blib/lib/PDL/pdldoc.db
make doctest
# 

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall PREFIX="$RPM_BUILD_ROOT/%{_prefix}"

# create /usr/bin if it doesn't already exist
%{__mkdir_p} $RPM_BUILD_ROOT%{_bindir}

# fix installed documentation
%{__bzip2} -dc %{SOURCE1} | %{__perl} - "$RPM_BUILD_ROOT"

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING Changes DEPENDENCIES Known_problems README DEVELOPMENT INSTALL TODO BUGS
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorarch}/auto/PDL
%{perl_vendorarch}/PDL.pm*
%{perl_vendorarch}/Inline
%dir %{perl_vendorarch}/PDL
%{perl_vendorarch}/PDL/default.perldlrc
%{perl_vendorarch}/PDL/pdldoc.db
%{perl_vendorarch}/PDL/*.pm*
%{perl_vendorarch}/PDL/Core
%{perl_vendorarch}/PDL/Demos
%{perl_vendorarch}/PDL/Doc
%{perl_vendorarch}/PDL/Filter
%{perl_vendorarch}/PDL/Fit
%{perl_vendorarch}/PDL/Graphics
%{perl_vendorarch}/PDL/GSL
%{perl_vendorarch}/PDL/GSLSF
%{perl_vendorarch}/PDL/IO
%{perl_vendorarch}/PDL/Opt
%{perl_vendorarch}/PDL/Pod
%{perl_vendorarch}/PDL/PP
%{perl_vendorarch}/PDL/Transform

%files doc
%defattr(-,root,root)
%doc COPYING
%{perl_vendorarch}/PDL/*.pod
%{perl_vendorarch}/PDL/HtmlDocs



%changelog
* Thu Aug 07 2008 Thierry Vignaud <tvignaud@mandriva.com> 1:2.4.3-3mdv2009.0
+ Revision: 265431
- rebuild early 2009.0 package (before pixel changes)

* Wed Apr 16 2008 Jérôme Quelin <jquelin@mandriva.org> 1:2.4.3-2mdv2009.0
+ Revision: 194734
- fixing build on new perl (bug 40056)

  + Pixel <pixel@mandriva.com>
    - rebuild for perl-5.10.0

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

  + Thierry Vignaud <tvignaud@mandriva.com>
    - kill re-definition of %%buildroot on Pixel's request
    - buildrequires X11-devel instead of XFree86-devel

* Sat May 05 2007 Olivier Thauvin <nanardon@mandriva.org> 1:2.4.3-1mdv2008.0
+ Revision: 23213
- 2.4.3


* Thu Apr 20 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 1:2.4.2-5mdk
- Remove a lot of internal automatic requires

* Thu Apr 20 2006 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 1:2.4.2-4mdk
- Don't gzip modules
- Fix for rebuild with 5.8.8

* Sun Jan 01 2006 Mandriva Linux Team <http://www.mandrivaexpert.com/> 2.4.2-3mdk
- Rebuild

* Tue Jun 14 2005 Rafael Garcia-Suarez <rgarciasuarez@mandriva.com> 2.4.2-2mdk
- Use gfortran instead of g77

* Tue Jan 11 2005 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 2.4.2-1mdk
- 2.4.2
- Drop patch 3, merged upstream

* Fri Dec 24 2004 Rafael Garcia-Suarez <rgarciasuarez@mandrakesoft.com> 2.4.1-4mdk
- Removed dependency on Mesa (bug #12798)

* Mon Nov 15 2004 Götz Waschk <waschk@linux-mandrake.com> 2.4.1-3mdk
- disable parallel build
- rebuild for new perl

* Mon Jun 28 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.4.1-2mdk
- BuildRequires: libgsl-devel

* Wed Apr 21 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 2.4.1-1mdk
- 2.4.1
- use %%make macro
- spec cosmetics

* Fri Aug 08 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.4.0-4mdk
- BuildRequires: libncurses-devel, libMesaGLU-devel as any of them
  should work

* Fri Jul 18 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 2.4.0-3mdk
- drop Prefix tag, use %%{_prefix}

* Thu Jun 26 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.4.0-2mdk
- fix provides

* Thu Jun 26 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.4.0-1mdk
- new release
- rediff patch 2
- patch 4: fix build of gimp gratuitously broken by fpons_sucks
- fix unpackaged files

* Tue May 27 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.3.4-3mdk
- rebuild for new auto{prov,req}