[suggest] perl-URI-Find

Al Pacifico adpacifico at users.sourceforge.net
Fri Sep 29 15:52:36 CEST 2006


Name:           perl-URI-Find
Version:        0.16
Release:        1%{?dist}
Summary:        Perl module to find URIs in arbitrary text

Group:          Development/Libraries
License:        GPL or Artistic
URL:            http://search.cpan.org/dist/URI-Find/
Source0:
http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/URI-Find-%{version}.tar.gz
<http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/URI-Find-%25%7Bversion%7D.tar.gz>
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u}
-n)

BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  perl(URI)
BuildRequires:  perl(URI::URL)
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo
$version))

%description
This module does one thing: Finds URIs and URLs in plain text. It finds them
quickly and it finds them all (or what URI::URL considers a URI to be.) It
only finds URIs which include a scheme (http:// or the like).

%prep
%setup -q -n URI-Find-%{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 Changes README
%{perl_vendorlib}/*
%doc %{_mandir}/man3/*.3*


%changelog
* Sat Sep 09 2006 Al Pacifico <adpacifico at users.sourceforge.net> - 0.16-1
- initial packaging
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.repoforge.org/pipermail/users/attachments/20060929/965d7e5f/attachment-0004.html>


More information about the users mailing list