Name: perl-URI-FromHash Version: 0.03 Release: 2%{?dist} # see lib/URI/FromHash.pm License: GPL+ or Artistic Group: Development/Libraries Summary: Build a URI from a set of named parameters Source: http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/URI-FromHash-%{version}.tar.gz Url: http://search.cpan.org/dist/URI-FromHash BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(Module::Build::Compat) BuildRequires: perl(Params::Validate) BuildRequires: perl(Test::More) BuildRequires: perl(URI) >= 1.22 %description This module provides a simple one-subroutine "named parameters" style interface for creating URIs. Underneath the hood it uses 'URI.pm', though because of the simplified interface it may not support all possible options for all types of URIs. It was created for the common case where you simply want to have a simple interface for creating syntactically correct URIs from known components (like a path and query string). Doing this using the native 'URI.pm' interface is rather tedious, requiring a number of method calls, which is particularly ugly when done inside a templating system such as Mason or TT2. %prep %setup -q -n URI-FromHash-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf %{buildroot} make pure_install PERL_INSTALL_ROOT=%{buildroot} find %{buildroot} -type f -name .packlist -exec rm -f {} ';' find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' %{_fixperms} %{buildroot}/* %check make test %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc Changes README LICENSE t/ %{perl_vendorlib}/* %{_mandir}/man3/*.3* %changelog * Wed Nov 05 2008 Chris Weyl 0.03-2 - update for submission * Tue Oct 07 2008 Chris Weyl 0.03-1 - initial RPM packaging - generated with cpan2dist (CPANPLUS::Dist::RPM version 0.0.1)