2008-09-16 15:46:55 +00:00
|
|
|
#
|
2011-11-17 15:54:07 +00:00
|
|
|
# spec file for package perl-Text-Scan
|
2008-09-16 15:46:55 +00:00
|
|
|
#
|
2011-11-17 15:54:07 +00:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-09-16 15:46:55 +00:00
|
|
|
#
|
2011-11-17 15:54:07 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2008-09-16 15:46:55 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
%define modname Text-Scan
|
2011-11-17 15:54:07 +00:00
|
|
|
|
2008-09-16 15:46:55 +00:00
|
|
|
Name: perl-%{modname}
|
2010-09-13 15:49:52 +00:00
|
|
|
Version: 0.31
|
2008-09-16 15:46:55 +00:00
|
|
|
Release: 1
|
2011-11-17 15:54:07 +00:00
|
|
|
Url: http://search.cpan.org/~tbusch/Text-Scan-0.30/Scan.pm
|
2008-09-16 15:46:55 +00:00
|
|
|
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
|
2011-11-17 15:54:07 +00:00
|
|
|
BuildRequires: perl perl-Inline perl-TimeDate perl-libwww-perl perl-macros
|
2008-09-16 15:46:55 +00:00
|
|
|
License: GPL/Artistic
|
|
|
|
Group: Development/Libraries/Perl
|
2011-11-17 15:54:07 +00:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/T/TB/TBUSCH/%{modname}-%{version}.tar.gz
|
2010-09-13 15:49:52 +00:00
|
|
|
Patch0: %{modname}-0.31.diff
|
2011-11-17 15:54:07 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2008-09-16 15:46:55 +00:00
|
|
|
|
|
|
|
%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}
|
2010-09-13 15:49:52 +00:00
|
|
|
%patch0 -p1
|
2008-09-16 15:46:55 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
echo y | perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
make
|
2010-09-13 15:49:52 +00:00
|
|
|
|
|
|
|
%check
|
2008-09-16 15:46:55 +00:00
|
|
|
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?/*
|
2008-12-29 11:08:43 +00:00
|
|
|
%{perl_vendorarch}/Text
|
2008-12-23 21:38:59 +00:00
|
|
|
%{perl_vendorarch}/auto/Text
|
2008-09-16 15:46:55 +00:00
|
|
|
|
|
|
|
%changelog
|