diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..48f7d63 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: perl-Text-Shellwords +# $Id$ +NAME := perl-Text-Shellwords +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/perl-Text-Shellwords.spec b/perl-Text-Shellwords.spec new file mode 100644 index 0000000..aa367e4 --- /dev/null +++ b/perl-Text-Shellwords.spec @@ -0,0 +1,72 @@ +Name: perl-Text-Shellwords +Version: 1.08 +Release: 1%{?dist} +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.08.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +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 Mar 23 2007 Alex Lancaster 1.08-1 +- Updated to 1.08 +- Removed superfluous BR: Perl as per suggestion from Ralf Corsepius + +* 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 new file mode 100644 index 0000000..1760fbb --- /dev/null +++ b/sources @@ -0,0 +1 @@ +72284605020ed5135dbed65a8d3b70c6 Text-Shellwords-1.08.tar.gz