Files
perl-Text-Scan/perl-Text-Scan.spec

65 lines
2.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Text-Scan (Version 0.30)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%define modname Text-Scan
Name: perl-%{modname}
Version: 0.30
Release: 1
URL: http://search.cpan.org/~tbusch/Text-Scan-0.30/Scan.pm
Summary: Fast search for very large numbers of keys in a body of text
Requires: perl = %{perl_version} perl-libwww-perl
Requires: perl-TimeDate perl-Inline
BuildRequires: perl perl-libwww-perl perl-TimeDate perl-Inline
License: GPL/Artistic
Group: Development/Libraries/Perl
Source: %{modname}-%{version}.tar.bz2
Patch0: %{modname}-%{version}.diff
BuildRoot: %{_tmppath}/%{name}-root
%description
This module provides facilities for fast searching on strings with very many search keys. The basic object behaves somewhat like a perl hash, except that you can retrieve based on a superstring of any keys stored. Simply scan a string as shown above and you will get back a perl hash (or list) of all keys found in the string (along with associated values and/or positions). All keys present in the text are returned.
This module is an implementation of the Aho/Corasick Pattern Matching algorithm-
Authors:
--------
Ira Woodhead, <textscan@sweetpota.to>
Thomas Busch, <tbusch@cpan.org>
Jerome Eteve, <jerome.eteve@gmail.com>
%prep
%setup -q -n %{modname}-%{version}
%patch0
%build
echo y | perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make
make test
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc Changes README
%doc %{_mandir}/man?/*
%{perl_vendorarch}/Text
%{perl_vendorarch}/auto/Text
/var/adm/perl-modules/%{name}
%changelog