4b627f3
Name:           perl-PDL-Graphics-PLplot
4b627f3
Version:        0.51
4b627f3
Release:        3%{?dist}
4b627f3
Summary:        Object-oriented interface from perl/PDL to the PLPLOT plotting library
4b627f3
License:        GPL+ or Artistic
4b627f3
Group:          Development/Libraries
4b627f3
URL:            http://search.cpan.org/dist/PDL-Graphics-PLplot/
4b627f3
Source0:        http://www.cpan.org/modules/by-module/PDL/PDL-Graphics-PLplot-%{version}.tar.gz
4b627f3
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4b627f3
BuildRequires:  perl(ExtUtils::MakeMaker)
4b627f3
BuildRequires:  perl(Test::More)
4b627f3
BuildRequires:  perl(PDL)
4b627f3
BuildRequires:  plplot-devel
4b627f3
Requires:       perl(PDL)
4b627f3
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
4b627f3
4b627f3
4b627f3
%description
4b627f3
This is the PDL interface to the PLplot graphics library. It is designed
4b627f3
to be simple and light weight with a familiar 'perlish' Object Oriented
4b627f3
interface.
4b627f3
4b627f3
The interface consists of two levels.  A low level interface which maps
4b627f3
closely to the PLplot C interface, and a high level, object-oriented
4b627f3
interface which is easier to use.
4b627f3
4b627f3
4b627f3
%prep
4b627f3
%setup -q -n PDL-Graphics-PLplot-%{version}
4b627f3
4b627f3
4b627f3
%build
4b627f3
%{__perl} Makefile.PL INSTALLDIRS=vendor
4b627f3
make %{?_smp_mflags}
4b627f3
4b627f3
4b627f3
%install
4b627f3
rm -rf $RPM_BUILD_ROOT
4b627f3
4b627f3
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
4b627f3
4b627f3
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
4b627f3
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
4b627f3
4b627f3
%{_fixperms} $RPM_BUILD_ROOT/*
4b627f3
4b627f3
rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/PDL/Graphics/PLplot/PLplot.bs
4b627f3
4b627f3
4b627f3
%check
4b627f3
make test
4b627f3
4b627f3
4b627f3
%clean
4b627f3
rm -rf $RPM_BUILD_ROOT
4b627f3
4b627f3
4b627f3
%files
4b627f3
%defattr(-,root,root,-)
4b627f3
%doc Changes README
4b627f3
%{perl_vendorarch}/*
4b627f3
%exclude %dir %{perl_vendorarch}/auto/
4b627f3
%{_mandir}/man3/*
4b627f3
4b627f3
4b627f3
%changelog
4b627f3
* Mon Sep 14 2009 Orion Poplawski 0.51-3
4b627f3
- Add BR on perl(Test::More)
4b627f3
- Exclude PLplot.bs
4b627f3
4b627f3
* Thu Sep 10 2009 Orion Poplawski 0.51-2
4b627f3
- Use arch specific dir.
4b627f3
4b627f3
* Thu Sep 10 2009 Orion Poplawski 0.51-1
4b627f3
- Specfile autogenerated by cpanspec 1.78.