commit 4acc21887e0feb9028b7272a540774cea291de08 Author: Steven Pritchard <steve@xxxxxxxxxxxxxxxxx> Date: Thu Apr 12 22:57:50 2007 +0000 Fix find option order. Use fixperms macro instead of our own chmod incantation. BR ExtUtils::MakeMaker. Minor spec cleanup to more closely resemble cpanspec output. perl-Chart.spec | 37 ++++++++++++++++++++----------------- 1 files changed, 20 insertions(+), 17 deletions(-) --- diff --git a/perl-Chart.spec b/perl-Chart.spec index ce4187e..2e1ef1a 100644 --- a/perl-Chart.spec +++ b/perl-Chart.spec @@ -1,47 +1,45 @@ Name: perl-Chart Version: 2.4.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Perl module for producing many types of charts - -Group: Development/Libraries License: GPL or Artistic +Group: Development/Libraries URL: http://search.cpan.org/dist/Chart/ Source0: http://www.cpan.org/authors/id/C/CH/CHARTGRP/Chart-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - BuildArch: noarch -BuildRequires: perl(GD) >= 1.20 +BuildRequires: perl(ExtUtils::MakeMaker) +#BuildRequires: perl(GD) >= 1.20 +BuildRequires: perl(GD) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description %{summary}. - %prep %setup -q -n Chart-%{version} chmod -c 644 Chart/*.pm TODO Documentation.pdf - +rm -f pm_to_blib %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} - %install -rm -rf %{buildroot} -make pure_install PERL_INSTALL_ROOT=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' -chmod -R u+w %{buildroot}/* +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/* %check make test - %clean -rm -rf %{buildroot} - +rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) @@ -49,8 +47,13 @@ rm -rf %{buildroot} %{perl_vendorlib}/Chart* %{_mandir}/man3/Chart.3* - %changelog +* Mon Apr 09 2007 Steven Pritchard <steve@xxxxxxxxx> 2.4.1-5 +- Fix find option order. +- Use fixperms macro instead of our own chmod incantation. +- BR ExtUtils::MakeMaker. +- Minor spec cleanup to more closely resemble cpanspec output. + * Mon Aug 27 2006 Michael J. Knox <michael[AT]knox.net.nz> - 2.4.1-4 - Rebuild for FC6 -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel