From 6528bcc185e51c2245365c5b3bd176fa49865a1c Mon Sep 17 00:00:00 2001 From: Steven Pritchard Date: Wed, 18 Apr 2007 15:52:58 +0000 Subject: [PATCH] Reformat to match cpanspec output. Use fixperms macro instead of our own chmod incantation. BR ExtUtils::MakeMaker. --- perl-String-ShellQuote.spec | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/perl-String-ShellQuote.spec b/perl-String-ShellQuote.spec index 3a4623f..b0d6081 100644 --- a/perl-String-ShellQuote.spec +++ b/perl-String-ShellQuote.spec @@ -1,49 +1,44 @@ Name: perl-String-ShellQuote Version: 1.03 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Perl module for quoting strings for passing through the shell - -Group: Development/Libraries License: GPL or Artistic +Group: Development/Libraries URL: http://search.cpan.org/dist/String-ShellQuote/ Source0: http://www.cpan.org/authors/id/R/RO/ROSCH/String-ShellQuote-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - BuildArch: noarch -BuildRequires: perl -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(ExtUtils::MakeMaker) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %description This package contains a Perl module and a command line utility which are useful for quoting strings which are going to pass through the shell or a shell-like object. - %prep %setup -q -n String-ShellQuote-%{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 ';' -chmod -R u+w $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 $RPM_BUILD_ROOT - %files %defattr(-,root,root,-) %doc Changes README @@ -52,8 +47,12 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/shell-quote.1* %{_mandir}/man3/String::ShellQuote.3* - %changelog +* Wed Apr 18 2007 Steven Pritchard 1.03-4 +- Reformat to match cpanspec output. +- Use fixperms macro instead of our own chmod incantation. +- BR ExtUtils::MakeMaker. + * Tue Aug 29 2006 Ville Skyttä - 1.03-3 - Fix order of arguments to find(1). - Drop version from perl build dependency.