diff --git a/perl-PDL-Graphics-PLplot.spec b/perl-PDL-Graphics-PLplot.spec index ae08ea5..b98eec7 100644 --- a/perl-PDL-Graphics-PLplot.spec +++ b/perl-PDL-Graphics-PLplot.spec @@ -1,19 +1,18 @@ +%global pkgname PDL-Graphics-PLplot + Name: perl-PDL-Graphics-PLplot Version: 0.62 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Object-oriented interface from perl/PDL to the PLPLOT plotting library License: GPL+ or Artistic -Group: Development/Libraries URL: http://search.cpan.org/dist/PDL-Graphics-PLplot/ -Source0: http://search.cpan.org/CPAN/authors/id/D/DH/DHUNT/PDL-Graphics-PLplot-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Source0: http://search.cpan.org/CPAN/authors/id/D/DH/DHUNT/%{pkgname}-%{version}.tar.gz BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Test::More) BuildRequires: perl(PDL) BuildRequires: plplot-devel Requires: perl(PDL) -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) - +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) %description This is the PDL interface to the PLplot graphics library. It is designed @@ -24,46 +23,32 @@ The interface consists of two levels. A low level interface which maps closely to the PLplot C interface, and a high level, object-oriented interface which is easier to use. - %prep -%setup -q -n PDL-Graphics-PLplot-%{version} - +%setup -qn %{pkgname}-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} - %install -rm -rf $RPM_BUILD_ROOT - -make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT - -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; - -%{_fixperms} $RPM_BUILD_ROOT/* - -rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/PDL/Graphics/PLplot/PLplot.bs - +make pure_install PERL_INSTALL_ROOT=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +%{_fixperms} %{buildroot}/* +rm %{buildroot}%{perl_vendorarch}/auto/PDL/Graphics/PLplot/PLplot.bs %check make test - -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%defattr(-,root,root,-) %doc Changes README %{perl_vendorarch}/* %exclude %dir %{perl_vendorarch}/auto/ %{_mandir}/man3/* - %changelog +* Thu Aug 08 2013 Christopher Meng - 0.62-3 +- SPEC cleanup. + * Sun Aug 04 2013 Fedora Release Engineering - 0.62-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild