Accepting request 1237596 from devel:languages:perl:autoupdate

- Remove cf34e0b93fe89fb24f91cfaf998b5b563f269eb2.patch (fixed upstream)
- updated to 0.100.0 (0.10)
   see /usr/share/doc/packages/perl-String-Diff/Changes
  0.10      2024-11-30
          - yet another distro fixup, same changelog as in v0.08, i.e.:
          - fixed two tests that had been broken with YAML >= 1.21 (GH#7) (Kenichi Ishigaki)
          - Add Test::Base to cpanfile (GH#5) (Jose Luis Martinez)
          - Add develop dependencies to cpanfile (Jose Luis Martinez)
          - Fix failing POD test (Petr Šabata)
          - Kudos to Jose Luis Martinez for collecting all the issues
            from different sources into one concise branch ready for a
            new CPAN release
  0.09      2024-11-30
          - distro cleanup (replaced author toolchain), same changelog as in v0.08
  0.08  2024-11-25 15:16:09 CET
          - fixed two tests that had been broken with YAML >= 1.21 (GH#7) (Kenichi Ishigaki)
          - Add Test::Base to cpanfile (GH#5) (Jose Luis Martinez)
          - Add develop dependencies to cpanfile (Jose Luis Martinez)
          - Fix failing POD test (Petr Šabata)
          - Kudos to Jose Luis Martinez for collecting all the issues
            from different sources into one concise branch ready for a
            new CPAN release

OBS-URL: https://build.opensuse.org/request/show/1237596
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-String-Diff?expand=0&rev=26
This commit is contained in:
2025-01-17 00:04:27 +00:00
committed by Git OBS Bridge
parent 285586275f
commit b1623dd1df
6 changed files with 51 additions and 57 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-String-Diff
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,26 +18,23 @@
%define cpan_name String-Diff
Name: perl-String-Diff
Version: 0.70.0
Version: 0.100.0
Release: 0
# 0.07 -> normalize -> 0.70.0
%define cpan_version 0.07
# 0.10 -> normalize -> 0.100.0
%define cpan_version 0.10
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Simple diff to String
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/Y/YA/YAPPO/%{cpan_name}-%{cpan_version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/S/SC/SCHWIGON/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
# PATCH-FIX-UPSTREAM https://github.com/yappo/p5-String-Diff/commit/cf34e0b93fe89fb24f91cfaf998b5b563f269eb2.patch
Patch0: cf34e0b93fe89fb24f91cfaf998b5b563f269eb2.patch
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Algorithm::Diff)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Build::Tiny) >= 0.034
BuildRequires: perl(Test::More) >= 0.88
BuildRequires: perl(Test::Base)
BuildRequires: perl(YAML)
Requires: perl(Algorithm::Diff)
Requires: perl(YAML)
Provides: perl(String::Diff) = %{version}
%undefine __perllib_provides
%{perl_requires}
@@ -92,23 +89,24 @@ You can escape callback set to diff function and diff_merge function.
is($diff_new, 'this is &lt;b&gt;<ins>&lt;BIG&gt;R&lt;/BIG&gt;uby</ins>&lt;/b&gt;');
%prep
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%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}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
./Build test
make test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%doc Changes README
%doc Changes README README.md
%license LICENSE
%changelog