Compare commits
10 Commits
1910964c4a
...
b0bfb5fe84
Author | SHA256 | Date | |
---|---|---|---|
b0bfb5fe84 | |||
b1623dd1df | |||
285586275f | |||
ac146f4d41 | |||
1c695f48ad | |||
7804a319a6 | |||
44c5bfd838 | |||
31dd841577 | |||
e67d18ff6d | |||
dc555801d6 |
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7215b67cbc3226e2d0e18b38ec58c93be0bf6090278698bef955348826cd0af3
|
||||
size 17734
|
3
String-Diff-0.11.tar.gz
Normal file
3
String-Diff-0.11.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cb70a62639c8d5a5f5978a9c50ecc3213c0065e515b1b6a3f3706c3edb84733e
|
||||
size 24869
|
42
cpanspec.yml
Normal file
42
cpanspec.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#description: |-
|
||||
# override description from CPAN
|
||||
#summary: override summary from CPAN
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
patches:
|
||||
# cf34e0b93fe89fb24f91cfaf998b5b563f269eb2.patch: -p1 PATCH-FIX-UPSTREAM https://github.com/yappo/p5-String-Diff/commit/cf34e0b93fe89fb24f91cfaf998b5b563f269eb2.patch
|
||||
# bar.patch:
|
||||
# baz.patch: PATCH-FIX-OPENSUSE
|
||||
preamble: |-
|
||||
BuildRequires: perl(HTML::Entities)
|
||||
BuildRequires: perl(Module::Install::GithubMeta)
|
||||
BuildRequires: perl(Module::Install::ReadmeFromPod)
|
||||
BuildRequires: perl(Module::Install::ReadmeMarkdownFromPod)
|
||||
BuildRequires: perl(Module::Install::Repository)
|
||||
BuildRequires: perl(Test::Base)
|
||||
Requires: perl(Capture::Tiny)
|
||||
Requires: perl(HTML::Entities)
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_build: |-
|
||||
# rm unused.files
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
||||
#skip_doc: regexp_to_skip_for_doc.*
|
||||
#add_doc: files to add to docs
|
||||
#misc: |-
|
||||
#anything else to be added to spec file
|
||||
#follows directly after %files section, so it can contain new blocks or also
|
||||
#changes to %files section
|
@@ -1,7 +1,52 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 23 05:32:13 UTC 2025 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- updated to 0.110.0 (0.11)
|
||||
see /usr/share/doc/packages/perl-String-Diff/Changes
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 10 18:07:14 UTC 2025 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Remove cf34e0b93fe89fb24f91cfaf998b5b563f269eb2.patch (fixed upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 12 16:37:41 UTC 2024 - Tina Müller <timueller+perl@suse.de>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 8 00:02:07 UTC 2024 - Tina Müller <tina.mueller@suse.com>
|
||||
|
||||
- Use %autosetup instead of deprecated %patchN
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Oct 7 13:08:01 UTC 2018 - Dirk Stoecker <opensuse@dstoecker.de>
|
||||
|
||||
- Fix build with perl 5.28, update to 0.07
|
||||
Add cf34e0b93fe89fb24f91cfaf998b5b563f269eb2.patch for YAML >= 1.21
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 13 16:11:02 UTC 2015 - coolo@suse.com
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package perl-String-Diff
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# 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
|
||||
@@ -12,43 +12,51 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-String-Diff
|
||||
Version: 0.07
|
||||
Release: 0
|
||||
%define cpan_name String-Diff
|
||||
Name: perl-String-Diff
|
||||
Version: 0.110.0
|
||||
Release: 0
|
||||
# 0.11 -> normalize -> 0.110.0
|
||||
%define cpan_version 0.11
|
||||
License: Artistic-1.0 OR GPL-1.0-or-later
|
||||
Summary: Simple diff to String
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: https://metacpan.org/release/%{cpan_name}
|
||||
Source: https://cpan.metacpan.org/authors/id/Y/YA/YAPPO/%{cpan_name}-%{version}.tar.gz
|
||||
URL: https://metacpan.org/release/%{cpan_name}
|
||||
Source0: https://cpan.metacpan.org/authors/id/S/SC/SCHWIGON/%{cpan_name}-%{cpan_version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Algorithm::Diff)
|
||||
BuildRequires: perl(Test::Base)
|
||||
BuildRequires: perl(YAML)
|
||||
Requires: perl(Algorithm::Diff)
|
||||
Requires: perl(YAML)
|
||||
Provides: perl(String::Diff) = %{version}
|
||||
%undefine __perllib_provides
|
||||
%{perl_requires}
|
||||
# MANUAL BEGIN
|
||||
BuildRequires: perl(HTML::Entities)
|
||||
BuildRequires: perl(Module::Install::GithubMeta)
|
||||
BuildRequires: perl(Module::Install::ReadmeFromPod)
|
||||
BuildRequires: perl(Module::Install::ReadmeMarkdownFromPod)
|
||||
BuildRequires: perl(Module::Install::Repository)
|
||||
BuildRequires: perl(Test::Base)
|
||||
BuildRequires: perl(YAML)
|
||||
Requires: perl(Algorithm::Diff)
|
||||
Requires: perl(Capture::Tiny)
|
||||
Requires: perl(HTML::Entities)
|
||||
%{perl_requires}
|
||||
# MANUAL END
|
||||
|
||||
%description
|
||||
String::Diff is the difference of a consecutive string is made. After
|
||||
String::Diff is the difference of a consecutive string is made. after
|
||||
general diff is done, the difference in the line is searchable.
|
||||
|
||||
the mark of the addition and the deletion can be freely changed. The color
|
||||
the mark of the addition and the deletion can be freely changed. the color
|
||||
is colored to the terminal with ANSI, using the HTML display it.
|
||||
|
||||
After the line is divided, diff is taken when 'linebreak' option is
|
||||
after the line is divided, diff is taken when 'linebreak' option is
|
||||
specified.
|
||||
|
||||
my($old_string, $new_string) = String::Diff::diff_fully('this is Perl', 'this is Ruby', linebreak => 1);
|
||||
@@ -58,12 +66,12 @@ specified.
|
||||
|
||||
In diff and diff_merge methods the mark of the difference can be changed.
|
||||
|
||||
my $diff = String::Diff::diff('this is Perl', 'this is Ruby',{
|
||||
my $diff = String::Diff::diff('this is Perl', 'this is Ruby',
|
||||
remove_open => '<del>',
|
||||
remove_close => '</del>',
|
||||
append_open => '<ins>',
|
||||
append_close => '</ins>',
|
||||
});
|
||||
);
|
||||
|
||||
You can escape callback set to diff function and diff_merge function.
|
||||
|
||||
@@ -81,14 +89,16 @@ You can escape callback set to diff function and diff_merge function.
|
||||
is($diff_new, 'this is <b><ins><BIG>R</BIG>uby</ins></b>');
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
%autosetup -n %{cpan_name}-%{cpan_version} -p1
|
||||
|
||||
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
perl Makefile.PL INSTALLDIRS=vendor
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
make test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
@@ -96,7 +106,7 @@ You can escape callback set to diff function and diff_merge function.
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README README.mkdn
|
||||
%doc Changes README README.md
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user