From 39269bb8ca228480520c83f8ff6bd5c4c2d9e8d6 Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Apr 11 2005 22:45:15 +0000 Subject: auto-import perl-Text-Shellwords-1.07-2 on branch devel from perl-Text-Shellwords-1.07-2.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..897d58a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Text-Shellwords-1.07.tar.gz diff --git a/perl-Text-Shellwords.spec b/perl-Text-Shellwords.spec new file mode 100644 index 0000000..170cb00 --- /dev/null +++ b/perl-Text-Shellwords.spec @@ -0,0 +1,69 @@ +Name: perl-Text-Shellwords +Version: 1.07 +Release: 2 +Summary: A thin wrapper around the shellwords.pl package. + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/Text-Shellwords/ +Source0: http://www.cpan.org/authors/id/L/LD/LDS/Text-Shellwords-1.07.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl >= 1:5.6.1 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +This is a thin wrapper around the shellwords.pl package, which comes +preinstalled with Perl. This module imports a single subroutine, +shellwords(). The shellwords() routine parses lines of text and +returns a set of tokens using the same rules that the Unix shell does +for its command-line arguments. Tokens are separated by whitespace, +and can be delimited by single or double quotes. The module also +respects backslash escapes. + + +%prep +%setup -q -n Text-Shellwords-%{version} +# Clean up /usr/local/bin/perl mess +#%{__perl} -pi -e 's|/usr/local/bin/perl\b|%{__perl}|' \ +# qd.pl bdf_scripts/cvtbdf.pl demos/{*.{pl,cgi},truetype_test} + +# avoid dependencies +#chmod 644 examples/* + + +%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 -a \( -name .packlist \ + -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' + + +%check || : +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/*.3* + + +%changelog +* Wed Apr 06 2005 Hunter Matthews 1.07-2 +- Review suggestions by José Pedro Oliveira + +* Tue Mar 22 2005 Hunter Matthews 1.07-1 +- Initial build. diff --git a/sources b/sources index e69de29..4a0df2f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bd011ca09492041b925e562c54b1a8b6 Text-Shellwords-1.07.tar.gz