Name: perl-KinoSearch1 Version: 1.01 Release: 49%{?dist} Summary: Search engine library # ApacheLicense2.0.txt is only included because the upstream # author decided to include it and is only for informative purposes. # We believe that it doesn't apply, since author didn't use any Lucene # code (according to mail in LICENSING.mbox). # ApacheLicense2.0.txt: Apache-2.0 # buildlib/KinoSearch1/Test/TestUtils.pm: GPL-1.0-or-later OR Artistic-1.0-Perl # lib/KinoSearch1.pm GPL-1.0-or-later OR Artistic-1.0-Perl # lib/KinoSearch1/Util/ToolSet.pm: GPL-1.0-or-later OR Artistic-1.0-Perl # LICENSING.mbox: explanation of a presence of ApacheLicense2.0.txt file # README: GPL-1.0-or-later OR Artistic-1.0-Perl # src/ppport.h: GPL-1.0-or-later OR Artistic-1.0-Perl ## Never used and not in any binary package # devel/dump_index: GPL-1.0-or-later OR Artistic-1.0-Perl # t/benchmarks/extract_reuters.plx: GPL-1.0-or-later OR Artistic-1.0-Perl License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/KinoSearch1 Source0: https://cpan.metacpan.org/authors/id/C/CR/CREAMYG/KinoSearch1-%{version}.tar.gz # Make regular expressions compatible with Perl 5.24.0, proposed to an # upstream, CPAN RT#105144 Patch0: KinoSearch1-1.01-Do-not-use-C-in-regexps.patch # Fix missing function declarations, proposed to an upstream, CPAN RT#147184 Patch1: KinoSearch1-1.01-c99.patch Source1: LICENSING.mbox BuildRequires: coreutils BuildRequires: findutils BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::CBuilder) BuildRequires: perl(Fcntl) BuildRequires: perl(File::Find) BuildRequires: perl(File::Spec::Functions) BuildRequires: perl(Module::Build) >= 0.36 BuildRequires: perl(Storable) BuildRequires: perl(strict) BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(base) BuildRequires: perl(bytes) BuildRequires: perl(Carp) BuildRequires: perl(Compress::Zlib) BuildRequires: perl(constant) # Data::Dumper not used at tests BuildRequires: perl(Digest::MD5) BuildRequires: perl(Exporter) BuildRequires: perl(IO::Select) BuildRequires: perl(IO::Socket::INET) BuildRequires: perl(Lingua::Stem::Snowball) >= 0.94 BuildRequires: perl(Lingua::StopWords) >= 0.02 BuildRequires: perl(locale) BuildRequires: perl(Scalar::Util) BuildRequires: perl(Time::HiRes) BuildRequires: perl(XSLoader) # Tests only: BuildRequires: perl(Encode) BuildRequires: perl(File::Path) BuildRequires: perl(File::Spec) BuildRequires: perl(File::stat) BuildRequires: perl(lib) BuildRequires: perl(List::Util) # Plucene not used # Plucene::Analysis::WhitespaceAnalyzer not used # Plucene::Document not used # Plucene::Document::Field not used # Plucene::Index::Writer not used # POSIX not used BuildRequires: perl(Test::More) # Optional tests: BuildRequires: perl(Test::Pod) >= 1.14 Requires: perl(Data::Dumper) Requires: perl(Lingua::Stem::Snowball) >= 0.94 Requires: perl(Lingua::StopWords) >= 0.02 # Remove under-specified dependencies %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Lingua::Stem::Snowball|Lingua::StopWords)\\)$ # Remove private modules %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(KinoSearch1::Test::TestUtils\\) %global __provides_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(KinoSearch1::Test::TestUtils\\) %description KinoSearch1 is a loose port of the Java search engine library Apache Lucene, written in Perl and C. The archetypal application is website search, but it can be put to many different uses. %package tests Summary: Tests for %{name} BuildArch: noarch Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: coreutils Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %autosetup -p1 -n KinoSearch1-%{version} install -m 0644 %{SOURCE1} LICENSING.mbox # Remove unused tests for F in t/benchmarks/ t/pod-coverage.t; do rm -r "$F" perl -i -ne 'print $_ unless m{^\Q'"$F"'\E}' MANIFEST done # Align shebangs and file modes for F in t/*.t; do perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F" chmod +x "$F" done %build perl Build.PL installdirs=vendor optimize="%{optimize}" ./Build %install ./Build install destdir=%{buildroot} create_packlist=0 find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a buildlib t %{buildroot}%{_libexecdir}/%{name} rm %{buildroot}%{_libexecdir}/%{name}/t/{000-load,pod}.t cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/bash set -e # Some tests write into CWD DIR=$(mktemp -d) cp -a %{_libexecdir}/%{name}/* "$DIR" pushd "$DIR" prove -I . -j "$(getconf _NPROCESSORS_ONLN)" popd rm -r "$DIR" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') ./Build test %files %license ApacheLicense2.0.txt LICENSING.mbox %doc buildlib Changes README %{perl_vendorarch}/auto/KinoSearch1 %{perl_vendorarch}/KinoSearch1 %{perl_vendorarch}/KinoSearch1.pm %{_mandir}/man3/KinoSearch1.* %{_mandir}/man3/KinoSearch1::* %files tests %{_libexecdir}/%{name} %changelog * Sat Jan 18 2025 Fedora Release Engineering - 1.01-49 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 19 2024 Fedora Release Engineering - 1.01-48 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Tue Jun 11 2024 Jitka Plesnikova - 1.01-47 - Perl 5.40 rebuild * Thu Jan 25 2024 Fedora Release Engineering - 1.01-46 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 1.01-45 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 1.01-44 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 1.01-43 - Perl 5.38 rebuild * Fri Mar 17 2023 Petr Pisar - 1.01-42 - Convert a license tag to an SPDX format - Package the tests * Thu Mar 16 2023 Florian Weimer - 1.01-41 - Port to C99 * Fri Jan 20 2023 Fedora Release Engineering - 1.01-40 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.01-39 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 01 2022 Jitka Plesnikova - 1.01-38 - Perl 5.36 rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.01-37 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 1.01-36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 1.01-35 - Perl 5.34 rebuild * Wed Jan 27 2021 Fedora Release Engineering - 1.01-34 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 1.01-33 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 1.01-32 - Perl 5.32 rebuild * Thu Jan 30 2020 Fedora Release Engineering - 1.01-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 1.01-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 1.01-29 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1.01-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1.01-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Jitka Plesnikova - 1.01-26 - Perl 5.28 rebuild * Fri Mar 02 2018 Petr Pisar - 1.01-25 - Adapt to removing GCC from a build root (bug #1547165) * Thu Feb 08 2018 Fedora Release Engineering - 1.01-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 1.01-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 1.01-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 1.01-21 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 1.01-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu May 19 2016 Jitka Plesnikova - 1.01-19 - Perl 5.24 rebuild * Thu May 19 2016 Petr Pisar - 1.01-18 - Make regular expressions compatible with Perl 5.24.0 * Tue May 17 2016 Jitka Plesnikova - 1.01-17 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1.01-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Aug 10 2015 Petr Šabata - 1.01-15 - Correct the dependency list - Modernize the spec file * Thu Jun 18 2015 Fedora Release Engineering - 1.01-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jun 05 2015 Jitka Plesnikova - 1.01-13 - Perl 5.22 rebuild * Wed Aug 27 2014 Jitka Plesnikova - 1.01-12 - Perl 5.20 rebuild * Sun Aug 17 2014 Fedora Release Engineering - 1.01-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 1.01-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Aug 03 2013 Fedora Release Engineering - 1.01-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Jul 18 2013 Petr Pisar - 1.01-8 - Perl 5.18 rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1.01-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jul 20 2012 Fedora Release Engineering - 1.01-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jun 11 2012 Petr Pisar - 1.01-5 - Perl 5.16 rebuild * Sat Jan 14 2012 Iain Arnell 1.01-4 - BuildRequires perl(Digest::MD5) * Fri Jan 13 2012 Fedora Release Engineering - 1.01-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Jun 21 2011 Marcela Mašláňová - 1.01-2 - Perl mass rebuild * Wed Feb 09 2011 Iain Arnell 1.01-1 - update to latest upstream - BR perl(Test::More) * Tue Feb 08 2011 Fedora Release Engineering - 1.00-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Oct 05 2010 Iain Arnell 1.00-2 - BR perl(Time::HiRes) - add license clarification from perl-KinoSearch * Sun Sep 26 2010 Iain Arnell 1.00-1 - Specfile autogenerated by cpanspec 1.78.