commit 7b2fc6672ec1e5fc7cc9c6a5cc4d9f8be09c5de4 Author: corsepiu Date: Tue Aug 16 17:17:09 2005 +0000 Manual import, because cvs-import has failed diff --git a/.cvsignore b/.cvsignore new file mode 100644 index 0000000..464657e --- /dev/null +++ b/.cvsignore @@ -0,0 +1 @@ +Text-Glob-0.06.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a3ccc20 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: perl-Text-Glob +# $Id$ +NAME := perl-Text-Glob +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-Glob.spec b/perl-Text-Glob.spec new file mode 100644 index 0000000..46fb253 --- /dev/null +++ b/perl-Text-Glob.spec @@ -0,0 +1,52 @@ +Name: perl-Text-Glob +Version: 0.06 +Release: 2%{?dist} +Summary: Perl module to match globbing patterns against text +License: Artistic or GPL +Group: Development/Libraries +URL: http://search.cpan.org/dist/Text-Glob/ +Source0: http://www.cpan.org/modules/by-module/Text/Text-Glob-%{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)) + +%description +Text::Glob implements glob(3) style matching that can be used to match +against text, rather than fetching names from a filesystem. If you +want to do full file globbing use the File::Glob module instead. + +%prep +%setup -q -n Text-Glob-%{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 -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%clean +rm -rf $RPM_BUILD_ROOT + +%check +make test + +%files +%defattr(-,root,root,-) +%doc Changes +%{perl_vendorlib}/Text +%{_mandir}/man3/* + +%changelog +* Wed Aug 10 2005 Ralf Corsepius - 0.06-2 +- FE resubmission. + +* Fri Jul 01 2005 Ralf Corsepius - 0.06-1 +- FE submission. diff --git a/sources b/sources new file mode 100644 index 0000000..be45f8d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +800d5a40b2f0c7514c58d736d21f616c Text-Glob-0.06.tar.gz