From 9a159da74af3cb8a3f6b56e963a252d4133f1181 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 17:44:08 +0000 Subject: [PATCH] import UBI perl-Algorithm-Diff-1.2010-14.el10 --- .gitignore | 2 +- .perl-Algorithm-Diff.metadata | 1 - ...ch => Algorithm-Diff-1.1903-provides.patch | 0 ...ithm-Diff.spec => perl-Algorithm-Diff.spec | 142 +++++++++++++++--- sources | 1 + 5 files changed, 124 insertions(+), 22 deletions(-) delete mode 100644 .perl-Algorithm-Diff.metadata rename SOURCES/Algorithm-Diff-1.1903-provides.patch => Algorithm-Diff-1.1903-provides.patch (100%) rename SPECS/perl-Algorithm-Diff.spec => perl-Algorithm-Diff.spec (54%) create mode 100644 sources diff --git a/.gitignore b/.gitignore index 73ec7e3..e8e6e24 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/Algorithm-Diff-1.1903.tar.gz +Algorithm-Diff-1.201.tar.gz diff --git a/.perl-Algorithm-Diff.metadata b/.perl-Algorithm-Diff.metadata deleted file mode 100644 index 1d03f88..0000000 --- a/.perl-Algorithm-Diff.metadata +++ /dev/null @@ -1 +0,0 @@ -16b50ac7d83c6cb92d1996785e3496ba0a2cce95 SOURCES/Algorithm-Diff-1.1903.tar.gz diff --git a/SOURCES/Algorithm-Diff-1.1903-provides.patch b/Algorithm-Diff-1.1903-provides.patch similarity index 100% rename from SOURCES/Algorithm-Diff-1.1903-provides.patch rename to Algorithm-Diff-1.1903-provides.patch diff --git a/SPECS/perl-Algorithm-Diff.spec b/perl-Algorithm-Diff.spec similarity index 54% rename from SPECS/perl-Algorithm-Diff.spec rename to perl-Algorithm-Diff.spec index 6c7d379..e6fec7d 100644 --- a/SPECS/perl-Algorithm-Diff.spec +++ b/perl-Algorithm-Diff.spec @@ -1,17 +1,24 @@ +%global upstream_version 1.201 +%global extra_version 0 + Name: perl-Algorithm-Diff -Version: 1.1903 -Release: 10%{?dist} -Summary: Compute `intelligent' differences between two files/lists -License: GPL+ or Artistic -Group: Development/Libraries -URL: http://search.cpan.org/dist/Algorithm-Diff/ -Source0: http://www.cpan.org/authors/id/T/TY/TYEMQ/Algorithm-Diff-%{version}.tar.gz +Version: %{upstream_version}%{?extra_version} +Release: 14%{?dist} +Summary: Compute 'intelligent' differences between two files/lists +License: GPL-1.0-or-later OR Artistic-1.0-Perl +URL: https://metacpan.org/release/Algorithm-Diff +Source0: https://cpan.metacpan.org/modules/by-module/Algorithm/Algorithm-Diff-%{upstream_version}.tar.gz Patch0: Algorithm-Diff-1.1903-provides.patch BuildArch: noarch # Build: -BuildRequires: perl-interpreter +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(Config) BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(warnings) # Run-time: BuildRequires: perl(Carp) BuildRequires: perl(Exporter) @@ -23,7 +30,6 @@ BuildRequires: perl(Data::Dumper) BuildRequires: perl(lib) BuildRequires: perl(Test) # Explicit requirements: -Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) Requires: perl(Carp) %description @@ -32,37 +38,133 @@ or any other two lists of things. It uses an intelligent algorithm similar to (or identical to) the one used by the Unix "diff" program. It is guaranteed to find the *smallest possible* set of differences. +%package tests +Summary: Tests for %{name} +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-%{version} +%setup -q -n Algorithm-Diff-%{upstream_version} # Generate provide for perl(Algorithm::DiffOld) -%patch0 +%patch -P0 + +# Help generators to recognize Perl scripts +for F in t/*.t; do + perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F" + chmod +x "$F" +done %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install -rm -rf %{buildroot} make pure_install DESTDIR=%{buildroot} -find %{buildroot} -type f -name .packlist -exec rm -f {} \; -%{_fixperms} %{buildroot} - -# Remove example scripts we're shipping as documentation -rm -f %{buildroot}%{perl_vendorlib}/Algorithm/*.pl +find %{buildroot} -type f -name .packlist -delete +%{_fixperms} -c %{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 make test %files -%doc Changes README *.pl +%doc Changes README bin/*.pl %{perl_vendorlib}/Algorithm/ %{_mandir}/man3/Algorithm::Diff.3* %{_mandir}/man3/Algorithm::DiffOld.3* +%files tests +%{_libexecdir}/%{name} + %changelog -* Fri Mar 29 2019 Jitka Plesnikova - 1.1903-10 -- Rebuild with enable hardening (bug #1636329) +* Tue Oct 29 2024 Troy Dawson - 1.2010-14 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Tue Jun 25 2024 Jitka Plesnikova - 1.2010-13 +- Package tests + +* Mon Jun 24 2024 Troy Dawson - 1.2010-12 +- Bump release for June 2024 mass rebuild + +* Thu Jan 25 2024 Fedora Release Engineering - 1.2010-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 1.2010-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Jul 20 2023 Fedora Release Engineering - 1.2010-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 1.2010-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.2010-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon May 30 2022 Jitka Plesnikova - 1.2010-6 +- Perl 5.36 rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 1.2010-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Jul 22 2021 Fedora Release Engineering - 1.2010-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Fri May 21 2021 Jitka Plesnikova - 1.2010-3 +- Perl 5.34 rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 1.2010-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Dec 14 2020 Paul Howarth - 1.2010-1 +- Update to 1.201 + - Speed up LCS when $keyGen is undef (CPAN RT#101105) + +* Mon Sep 28 2020 Paul Howarth - 1.2000-1 +- Update to 1.200 + - New release with no new features, just preparing for a series of bugfix + releases +- Specify all build dependencies +- Drop redundant buildroot cleaning in %%install section +- Simplify find command using -delete +- Fix permissions verbosely + +* Tue Jul 28 2020 Fedora Release Engineering - 1.1903-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Jun 22 2020 Jitka Plesnikova - 1.1903-16 +- Perl 5.32 rebuild + +* Wed Jan 29 2020 Fedora Release Engineering - 1.1903-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 1.1903-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu May 30 2019 Jitka Plesnikova - 1.1903-13 +- Perl 5.30 rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 1.1903-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.1903-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jun 27 2018 Jitka Plesnikova - 1.1903-10 +- Perl 5.28 rebuild * Thu Feb 08 2018 Fedora Release Engineering - 1.1903-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources new file mode 100644 index 0000000..3a16939 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (Algorithm-Diff-1.201.tar.gz) = b22b55f4e45748da0e8aca556dc2155ef2dbcfe42ac5cbe4aa59e4cc13c95a141e6324a9ab0acd7fbc3d97e761e0778176df0f7e726af837a7b7d075106ad8d0