%define pkg_name PDL %define pkg_version 2.4.3 %define rpm_pkg_version 2.4.3 %define rpm_pkg_release 1.n0i.12 Summary: Perl Data Language - numeric analysis env Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/C/CS/CSOE/%{pkg_name}-%{pkg_version}.tar.gz Patch1: perl-PDL-2.4.2-fix_ia64_sdump.patch Patch2: perl-PDL-2.4.3-cleanup.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Inline) >= 0.43 BuildRequires: perl(File::Spec) >= 0.6 BuildRequires: perl(Filter::Util::Call) BuildRequires: perl(Text::Balanced) BuildRequires: perl(IO::File) BuildRequires: perl(Config) # don't require too much, let people deal with what THEY really need %if %{?_with_max:1}0 BuildRequires: perl(ExtUtils::F77) BuildRequires: perl(Astro::FITS::Header) BuildRequires: perl(PGPLOT) BuildRequires: fftw2-devel BuildRequires: gd-devel BuildRequires: gsl-devel BuildRequires: hdf-devel BuildRequires: mesa-libGLU-devel BuildRequires: netpbm-devel, libjpeg-devel BuildRequires: plplot-devel BuildRequires: proj-devel %endif # Drop erroneous provides %global perl_filter_prov 'perl\\((Inline|NullHandle|StrHandle|SymTab|XS)\\)' # Drop clumsy requirements AND ALL PDL:: dependencies! PDL is PDL ;-) %global perl_filter_req 'perl\\((Win32|Tk|PGPLOT|PDL::)' %description PDL is the Perl Data Language, a perl extension that is designed for scientific and bulk numeric data processing and display. It extends perl's syntax and includes fully vectorized, multidimensional array handling, plus several paths for device-independent graphics output. %prep %setup -q -n %{pkg_name}-%{pkg_version} %patch1 -p1 %patch2 -p1 -b .cleanup # fedora ditches HDF location %if %{?fedora}0 %{__perl} -pi -e ' s{(\@HDF_lib_locations = \()}{$1 "%{_libdir}/hdf",}; s{(\@HDF_inc_locations = \()}{$1 "%{_includedir}/hdf",}; ' IO/HDF/Makefile.PL %endif %{fix_mod} %build %{perl_build} # yeah, sure, it's scientific! ;-) %{!?_without_test:%{__make} test ||:} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %{fix_man} # yes, ugly :) %{__chmod} 0644 $RPM_BUILD_ROOT%{perl_vendorarch}/PDL/Doc/Config.pm # use this ugly trick to properly skip uneeded files %{__mkdir} -p -v _rpm_install %{__mv} -v $RPM_BUILD_ROOT%{perl_vendorarch}/PDL/Demos/ _rpm_install/ %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files -b -m} %doc Changes README COPYING Release_Notes %doc BUGS DEPENDENCIES DEVELOPMENT Known_problems TODO %doc _rpm_install/Demos/ %changelog * Fri Jun 01 2007 Marius Feraru - 2.4.3-1.n0i.12 - spec file (re)created using N0i::CPAN::RPMizer/1.14.8 - version 2.4.3 - plugged Fedora's patches (x86_64 fix and debug messages cleanup) * Sat Mar 04 2006 Marius Feraru - 2.4.2-20.n0i.11 - automatic rebuild (perl 5.8.8) * Sat Jul 23 2005 Marius Feraru 2.4.2-19.n0i.10 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Fri Apr 01 2005 Marius Feraru 0:2.4.2-18.n0i.9 - rebuild for FC4 * Sat Jan 22 2005 Marius Feraru 0:2.4.2-17.n0i.8 - version 2.4.2 - dropped 'long' patch (fixed upstream) * Mon Jan 03 2005 Marius FERARU 0:2.4.1-16.n0i.7 - rebuild (gsl update) - added a patch from Fedora distro - converted an old man page to UTF8 * Mon Dec 06 2004 Marius Feraru 0:2.4.1-15.n0i.6 - rebuild (perl 5.8.6) * Sat May 15 2004 Marius Feraru 0:2.4.1-14.n0i.5 - spec file (re?)created using N0i::CPAN::RPMizer/2004050401 - rebuild (perl 5.8.4) * Fri Jan 23 2004 Marius FERARU 1:2.4.1-0.n0i.4 - version 2.4.1 * Tue Dec 30 2003 Marius FERARU 0:2.4.0-2.n0i.3 - rebuilt on perl 5.8.2 / Fedora 1 Devel (tobe FC2) - rebuilt with lots and lots of optional stuff :) * Thu Oct 16 2003 Marius FERARU 2.4.0-1.n0i - version 2.4.0 - spec file (re?)created using N0i::CPAN::RPMizer/2003101101 * Sun Jul 27 2003 Marius FERARU 2.4.0-0.n0i - first custom rebuild - spec cleanups