[suggest] perl-Tie-RegexpHash

Al Pacifico adpacifico at users.sourceforge.net
Wed Sep 27 17:05:30 CEST 2006


Name:           perl-Tie-RegexpHash
Version:        0.15
Release:        1%{?dist}
Summary:        Perl module to permit use of regular expressions as hash
keys

Group:          Development/Libraries
License:        GPL or Artistic
URL:            http://search.cpan.org/dist/Tie-RegexpHash/
Source0:
ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Tie/Tie-RegexpHash-%{version}.tar.gz<ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Tie/Tie-RegexpHash-%25%7Bversion%7D.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
This module allows one to use regular expressions for hash keys, so that
values can be associated with anything that matches the key.

Hashes can be operated on using the standard tied hash interface in Perl,
or using an object-oriented interface.

%prep
%setup -q -n Tie-RegexpHash-%{version}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
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/*


%check
make test


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README Changes
%{perl_vendorlib}/*
%doc %{_mandir}/man3/*.3*


%changelog
* Tue Jul 18 2006 Al Pacifico < adpacifico at users.sourceforge.net> - 0.15-1
Initial packaging, using fedora-newrpmspec to generate .spec template
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.repoforge.org/pipermail/users/attachments/20060927/f227dd1f/attachment-0004.html>


More information about the users mailing list