Name: perl-Algorithm-Diff-XS Version: 0.04 Release: 32%{?dist} Summary: Algorithm::Diff with XS core loop License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Algorithm-Diff-XS Source0: https://cpan.metacpan.org/authors/id/A/AU/AUDREYT/Algorithm-Diff-XS-%{version}.tar.gz # Build BuildRequires: coreutils BuildRequires: gcc BuildRequires: make BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl-interpreter BuildRequires: perl(inc::Module::Install) BuildRequires: perl(lib) BuildRequires: perl(Module::Install::Can) BuildRequires: perl(Module::Install::Metadata) BuildRequires: perl(Module::Install::WriteAll) BuildRequires: perl(strict) # Runtime BuildRequires: perl(:VERSION) >= 5.6 BuildRequires: perl(Algorithm::Diff) >= 1.19 BuildRequires: perl(vars) BuildRequires: perl(warnings) BuildRequires: perl(XSLoader) # Tests only BuildRequires: perl(Data::Dumper) BuildRequires: perl(Test) Requires: perl(Algorithm::Diff) >= 1.19 Requires: perl(XSLoader) %global __requires_exclude ^perl\\(Algorithm::Diff\\)$ %description Drop-in replacement to Algorithm::Diff, but "compact_diff" and "LCSidx" will run much faster for large data sets. %package tests Summary: Tests for %{name} BuildArch: noarch Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description tests Tests from %{name}. Execute them with "%{_libexecdir}/%{name}/test". %prep %setup -q -n Algorithm-Diff-XS-%{version} # Unbundle inc::Module::Install rm -rf ./inc perl -i -ne 'print $_ unless m{\Ainc/}' MANIFEST %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}" %{make_build} %install %{make_install} %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" 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}') make test %files %doc Changes README %dir %{perl_vendorarch}/auto/Algorithm %dir %{perl_vendorarch}/auto/Algorithm/Diff %{perl_vendorarch}/auto/Algorithm/Diff/XS %dir %{perl_vendorarch}/Algorithm %dir %{perl_vendorarch}/Algorithm/Diff %{perl_vendorarch}/Algorithm/Diff/XS.pm %{_mandir}/man3/Algorithm::Diff::XS.* %files tests %{_libexecdir}/%{name} %changelog * Fri Jan 17 2025 Fedora Release Engineering - 0.04-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 0.04-31 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jun 10 2024 Jitka Plesnikova - 0.04-30 - Perl 5.40 rebuild * Thu Jan 25 2024 Fedora Release Engineering - 0.04-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Petr Pisar - 0.04-28 - Modernize a spec file - Package the tests * Sun Jan 21 2024 Fedora Release Engineering - 0.04-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.04-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jul 11 2023 Jitka Plesnikova - 0.04-25 - Perl 5.38 rebuild * Thu Jan 19 2023 Fedora Release Engineering - 0.04-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 0.04-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon May 30 2022 Jitka Plesnikova - 0.04-22 - Perl 5.36 rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.04-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.04-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri May 21 2021 Jitka Plesnikova - 0.04-19 - Perl 5.34 rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.04-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.04-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jun 23 2020 Jitka Plesnikova - 0.04-16 - Perl 5.32 rebuild * Wed Jan 29 2020 Fedora Release Engineering - 0.04-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jul 26 2019 Fedora Release Engineering - 0.04-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri May 31 2019 Jitka Plesnikova - 0.04-13 - Perl 5.30 rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.04-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.04-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jul 10 2018 Jitka Plesnikova - 0.04-10 - Add build-require gcc * Thu Jun 28 2018 Jitka Plesnikova - 0.04-9 - Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0.04-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Aug 03 2017 Fedora Release Engineering - 0.04-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.04-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sun Jun 04 2017 Jitka Plesnikova - 0.04-5 - Perl 5.26 rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.04-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Sun May 15 2016 Jitka Plesnikova - 0.04-3 - Perl 5.24 rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.04-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Sep 24 2015 Petr Ĺ abata 0.04-1 - Initial packaging