Compare commits
10 Commits
0229ba0d10
...
08072c2561
Author | SHA256 | Date | |
---|---|---|---|
08072c2561 | |||
337af940c6 | |||
46e68d7de2 | |||
8038ccb2b7 | |||
|
c2b579a711 | ||
|
a763881dd7 | ||
|
f0497fd97f | ||
|
4983a20fb7 | ||
|
c3769784a8 | ||
|
e8662aec95 |
@@ -1,11 +0,0 @@
|
||||
--- Scan.pm.orig 2008-12-23 21:27:08.000000000 +0000
|
||||
+++ Scan.pm 2008-12-23 21:27:09.000000000 +0000
|
||||
@@ -296,7 +296,7 @@
|
||||
|
||||
|
||||
|
||||
-_malloc(fsm m) {
|
||||
+void _malloc(fsm m) {
|
||||
av_clear(m->found_keys);
|
||||
av_clear(m->found_offsets);
|
||||
av_clear(m->found_vals);
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:66fbe2e43fa44660e658dddb0bd3822dff3c9507a550065c22bc256c2a1d8236
|
||||
size 37730
|
11
Text-Scan-0.31.diff
Normal file
11
Text-Scan-0.31.diff
Normal file
@@ -0,0 +1,11 @@
|
||||
--- Text-Scan-0.31/Scan.xs.orig 2010-04-15 21:44:27.000000000 +0200
|
||||
+++ Text-Scan-0.31/Scan.xs 2010-09-13 13:12:38.994283000 +0200
|
||||
@@ -57,7 +57,7 @@ int _find_match(fsm this, int matchlen,
|
||||
|
||||
|
||||
|
||||
-_malloc(fsm m) {
|
||||
+void _malloc(fsm m) {
|
||||
av_clear(m->found_keys);
|
||||
av_clear(m->found_offsets);
|
||||
av_clear(m->found_vals);
|
3
Text-Scan-0.31.tar.gz
Normal file
3
Text-Scan-0.31.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:93c26219be8f25359b4c25a74eeca6c8bcae61c09f24eada1371985d7a506db9
|
||||
size 79621
|
35
cpanspec.yml
Normal file
35
cpanspec.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
---
|
||||
description_paragraphs: 1
|
||||
#description: |-
|
||||
# override description from CPAN
|
||||
#summary: override summary from CPAN
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
patches:
|
||||
Text-Scan-0.31.diff: -p1
|
||||
# bar.patch:
|
||||
# baz.patch: PATCH-FIX-OPENSUSE
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_build: |-
|
||||
# rm unused.files
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
||||
#skip_doc: regexp_to_skip_for_doc.*
|
||||
#add_doc: files to add to docs
|
||||
#misc: |-
|
||||
#anything else to be added to spec file
|
||||
#follows directly after %files section, so it can contain new blocks or also
|
||||
#changes to %files section
|
@@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 8 00:19:45 UTC 2024 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Use %autosetup instead of deprecated %patchN
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 29 18:31:20 UTC 2010 - coolo@novell.com
|
||||
|
||||
- remove /var/adm/perl-modules
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 13 11:16:57 UTC 2010 - jw@novell.com
|
||||
|
||||
- updatde to 0.31
|
||||
- removed Inline::C dependency
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 14 22:04:51 CEST 2008 - jw@suse.de
|
||||
|
||||
|
@@ -1,64 +1,63 @@
|
||||
#
|
||||
# spec file for package perl-Text-Scan (Version 0.30)
|
||||
# spec file for package perl-Text-Scan
|
||||
#
|
||||
# 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.
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# 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.
|
||||
|
||||
# Please submit bugfixes or comments via https://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
|
||||
%define cpan_name Text-Scan
|
||||
Name: perl-Text-Scan
|
||||
Version: 0.310.0
|
||||
Release: 0
|
||||
# 0.31 -> normalize -> 0.310.0
|
||||
%define cpan_version 0.31
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
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
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/T/TB/TBUSCH/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
Patch0: Text-Scan-0.31.diff
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
Provides: perl(Text::Scan) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
|
||||
%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>
|
||||
|
||||
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.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{version}
|
||||
%patch0
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
%build
|
||||
echo y | perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||
make
|
||||
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
%make_build
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%files -f %{name}.files
|
||||
%doc Changes README
|
||||
%doc %{_mandir}/man?/*
|
||||
%{perl_vendorlib}/Text
|
||||
%{perl_vendorarch}/auto/Text
|
||||
/var/adm/perl-modules/%{name}
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user