|
|
|
@ -1,34 +1,51 @@
|
|
|
|
|
Name: perl-Lingua-Stem
|
|
|
|
|
Version: 0.84
|
|
|
|
|
Release: 15%{?dist}
|
|
|
|
|
Release: 16%{?dist}
|
|
|
|
|
Summary: Stemming of words
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/Lingua-Stem/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/S/SN/SNOWHARE/Lingua-Stem-%{version}.tar.gz
|
|
|
|
|
# Define POD encoding, CPAN RT#87242
|
|
|
|
|
Patch0: Lingua-Stem-0.84-Define-POD-encoding.patch
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# Build
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
|
# Runtime
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Exporter)
|
|
|
|
|
BuildRequires: perl(Lingua::GL::Stemmer)
|
|
|
|
|
BuildRequires: perl(Lingua::PT::Stemmer)
|
|
|
|
|
BuildRequires: perl(Lingua::Stem::Fr) >= 0.02
|
|
|
|
|
BuildRequires: perl(Lingua::Stem::It)
|
|
|
|
|
BuildRequires: perl(Lingua::Stem::Ru)
|
|
|
|
|
# XXX: BuildRequires: perl(Lingua::Stem::Ru)
|
|
|
|
|
BuildRequires: perl(Lingua::Stem::Snowball::Da) >= 1.01
|
|
|
|
|
BuildRequires: perl(Lingua::Stem::Snowball::No) >= 1.00
|
|
|
|
|
BuildRequires: perl(Lingua::Stem::Snowball::Se) >= 1.01
|
|
|
|
|
BuildRequires: perl(Module::Build)
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(Text::German)
|
|
|
|
|
BuildRequires: perl(vars)
|
|
|
|
|
# Tests only
|
|
|
|
|
BuildRequires: perl(blib)
|
|
|
|
|
BuildRequires: perl(lib)
|
|
|
|
|
# Optional tests only
|
|
|
|
|
BuildRequires: perl(Pod::Coverage)
|
|
|
|
|
BuildRequires: perl(Test::Distribution)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(Test::Pod)
|
|
|
|
|
BuildRequires: perl(Test::Pod::Coverage)
|
|
|
|
|
BuildRequires: perl(Text::German)
|
|
|
|
|
Requires: perl(Lingua::Stem::Fr)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
|
|
|
|
|
Requires: perl(Lingua::Stem::Snowball::Da) >= 1.01
|
|
|
|
|
Requires: perl(Lingua::Stem::Snowball::No) >= 1.00
|
|
|
|
|
Requires: perl(Lingua::Stem::Snowball::Se) >= 1.01
|
|
|
|
|
Requires: perl(Lingua::Stem::Fr) >= 0.02
|
|
|
|
|
Requires: perl(Lingua::Stem::It)
|
|
|
|
|
Requires: perl(Lingua::Stem::Ru)
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Lingua::Stem::Snowball::Da\\)$
|
|
|
|
|
%global __requires_exclude %__requires_exclude|^perl\\(Lingua::Stem::Snowball::No\\)$
|
|
|
|
|
%global __requires_exclude %__requires_exclude|^perl\\(Lingua::Stem::Snowball::Se\\)$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This routine applies stemming algorithms to its parameters, returning the
|
|
|
|
@ -39,25 +56,27 @@ stemmed words as appropriate to the selected locale.
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Build.PL installdirs=vendor
|
|
|
|
|
perl Build.PL installdirs=vendor
|
|
|
|
|
./Build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
|
|
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
TEST_POD_COVERAGE=1 ./Build test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
%doc Artistic_License.txt Changes GPL_License.txt LICENSE README
|
|
|
|
|
# The LICENSE file doesn't contain license texts
|
|
|
|
|
%license Artistic_License.txt GPL_License.txt
|
|
|
|
|
%doc Changes LICENSE README
|
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Feb 18 2016 Petr Šabata <contyk@redhat.com> - 0.84-16
|
|
|
|
|
- Package cleanup
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.84-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|