rpms/perl-Chart/devel perl-Chart.spec,1.8,1.9

Steven Pritchard (steve) fedora-extras-commits at redhat.com
Thu Apr 12 22:58:25 UTC 2007


Author: steve

Update of /cvs/extras/rpms/perl-Chart/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13009

Modified Files:
	perl-Chart.spec 
Log Message:
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.



Index: perl-Chart.spec
===================================================================
RCS file: /cvs/extras/rpms/perl-Chart/devel/perl-Chart.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- perl-Chart.spec	28 Aug 2006 04:24:47 -0000	1.8
+++ perl-Chart.spec	12 Apr 2007 22:57:50 -0000	1.9
@@ -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 @@
 %{perl_vendorlib}/Chart*
 %{_mandir}/man3/Chart.3*
 
-
 %changelog
+* Mon Apr 09 2007 Steven Pritchard <steve at kspei.com> 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
 




More information about the scm-commits mailing list