Manual import, because cvs-import has failed
This commit is contained in:
commit
7b2fc6672e
1
.cvsignore
Normal file
1
.cvsignore
Normal file
@ -0,0 +1 @@
|
||||
Text-Glob-0.06.tar.gz
|
||||
21
Makefile
Normal file
21
Makefile
Normal file
@ -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)
|
||||
52
perl-Text-Glob.spec
Normal file
52
perl-Text-Glob.spec
Normal file
@ -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 <ralf@links2linux.de> - 0.06-2
|
||||
- FE resubmission.
|
||||
|
||||
* Fri Jul 01 2005 Ralf Corsepius <ralf@links2linux.de> - 0.06-1
|
||||
- FE submission.
|
||||
Loading…
Reference in New Issue
Block a user