Files
perl-Lingua-StopWords/perl-Lingua-StopWords.spec
2025-08-12 18:15:03 +02:00

85 lines
3.1 KiB
RPMSpec

#
# spec file for package perl-Lingua-StopWords
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
%define cpan_name Lingua-StopWords
Name: perl-Lingua-StopWords
Version: 0.120.0
Release: 0
# 0.12 -> normalize -> 0.120.0
%define cpan_version 0.12
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Stop words for several languages
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/W/WO/WOLLMERS/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Build::Tiny) >= 0.039
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::More::UTF8) >= 0.00
Provides: perl(Lingua::StopWords) = %{version}
Provides: perl(Lingua::StopWords::DA) = %{version}
Provides: perl(Lingua::StopWords::DE) = %{version}
Provides: perl(Lingua::StopWords::EN) = %{version}
Provides: perl(Lingua::StopWords::ES) = %{version}
Provides: perl(Lingua::StopWords::FI) = %{version}
Provides: perl(Lingua::StopWords::FR) = %{version}
Provides: perl(Lingua::StopWords::HU) = %{version}
Provides: perl(Lingua::StopWords::ID) = %{version}
Provides: perl(Lingua::StopWords::IT) = %{version}
Provides: perl(Lingua::StopWords::NL) = %{version}
Provides: perl(Lingua::StopWords::NO) = %{version}
Provides: perl(Lingua::StopWords::PT) = %{version}
Provides: perl(Lingua::StopWords::RO) = %{version}
Provides: perl(Lingua::StopWords::RU) = %{version}
Provides: perl(Lingua::StopWords::SV) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
In keyword search, it is common practice to suppress a collection of
"stopwords": words such as "the", "and", "maybe", etc. which exist in in a
large number of documents and do not tell you anything important about any
document which contains them. This module provides such "stoplists" in
several languages.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%license LICENSE
%changelog