commit 638e315718420a410e7b3e6a8ee96d1b6a09b43bdfc1ac54d0a90cc4e694feba Author: Tina Müller Date: Sat May 24 16:26:08 2025 +0000 Normalize CPAN version See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-Compare?expand=0&rev=21 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Data-Compare-1.29.tar.gz b/Data-Compare-1.29.tar.gz new file mode 100644 index 0000000..d040f24 --- /dev/null +++ b/Data-Compare-1.29.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53c9db3b93263c88aaa3c4072d819eaded024d7a36b38c0c37737d288d5afa8c +size 27261 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..290b4cf --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,20 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#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_install: |- +# sed on %{name}.files +license: Artistic-1.0 OR GPL-1.0-or-later +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-Data-Compare.changes b/perl-Data-Compare.changes new file mode 100644 index 0000000..9b7b164 --- /dev/null +++ b/perl-Data-Compare.changes @@ -0,0 +1,89 @@ +------------------------------------------------------------------- +Sat May 24 16:25:56 UTC 2025 - Tina Müller + +- Normalize CPAN version + See https://github.com/openSUSE/cpanspec/issues/47 for details + +------------------------------------------------------------------- +Sat Apr 22 03:06:52 UTC 2023 - Tina Müller + +- updated to 1.29 + see /usr/share/doc/packages/perl-Data-Compare/CHANGELOG + + 1.29 2023-04-21 + + - Skip taint-mode tests if perl was built without taint support + +------------------------------------------------------------------- +Wed Mar 15 03:06:49 UTC 2023 - Tina Müller + +- updated to 1.28 + see /usr/share/doc/packages/perl-Data-Compare/CHANGELOG + + 1.28 2023-03-14 + + - Bug fix: DCANTRELL: undef values in hashes were treated incorrectly, + need to check for existence, not definedness before comparing. See + https://github.com/DrHyde/perl-modules-Data-Compare/issues/21 + +------------------------------------------------------------------- +Fri Nov 15 11:45:39 UTC 2019 - + +- Add manual license Artistic-1.0 OR GPL-1.0-or-later to cpanspec.yml + https://github.com/DrHyde/perl-modules-Data-Compare/issues/15 + +------------------------------------------------------------------- +Wed Nov 6 10:02:56 UTC 2019 - + +- updated to 1.27 + see /usr/share/doc/packages/perl-Data-Compare/CHANGELOG + + 1.27 2019-11-05 DCANTRELL Fix bug when options are passed as a persistent + hash from calling code and not an anonyhash + (Sam Kington) + +------------------------------------------------------------------- +Thu Sep 19 07:52:32 UTC 2019 - + +- updated to 1.26 + see /usr/share/doc/packages/perl-Data-Compare/CHANGELOG + + 1.26 2019-09-18 DCANTRELL Minor code quality improvements from Alberto + Simõe; + Reinstate check for cwd being inaccessible + (Daniel Collins) + +------------------------------------------------------------------- +Thu Apr 16 21:11:04 UTC 2015 - coolo@suse.com + +- updated to 1.25 + see /usr/share/doc/packages/perl-Data-Compare/CHANGELOG + + 1.25 2013-04-15 DCANTRELL Add Gianni Ceccarelli's tests and patch + to Use refaddr & reftype to "do the right + thing" when comparing objects that overload + numification and stringification + +------------------------------------------------------------------- +Mon Sep 15 12:52:32 UTC 2014 - coolo@suse.com + +- updated to 1.24 + Bump the required JSON.pm version for + tests - something's a bit broken around + about v 2.53 + +------------------------------------------------------------------- +Fri Oct 4 09:14:21 UTC 2013 - coolo@suse.com + +- updated to 1.23 + Add David Muir Sharnoff's tests for + really big data structures (but not yet working); + + Check for taint-mode less insanely + +------------------------------------------------------------------- +Fri Jan 21 19:32:06 UTC 2011 - coolo@novell.com + +- initial package 1.22 + * created by cpanspec 1.78.03 + diff --git a/perl-Data-Compare.spec b/perl-Data-Compare.spec new file mode 100644 index 0000000..87663da --- /dev/null +++ b/perl-Data-Compare.spec @@ -0,0 +1,111 @@ +# +# spec file for package perl-Data-Compare +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define cpan_name Data-Compare +Name: perl-Data-Compare +Version: 1.290.0 +Release: 0 +# 1.29 -> normalize -> 1.290.0 +%define cpan_version 1.29 +#Upstream: Artistic-1.0 or GPL-1.0-or-later +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Compare perl data structures +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/D/DC/DCANTRELL/%{cpan_name}-%{cpan_version}.tar.gz +Source1: cpanspec.yml +BuildArch: noarch +BuildRequires: perl +BuildRequires: perl-macros +BuildRequires: perl(Clone) >= 0.430 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.48 +BuildRequires: perl(File::Find::Rule) >= 0.100 +BuildRequires: perl(Test::More) >= 0.88 +Requires: perl(Clone) >= 0.430 +Requires: perl(File::Find::Rule) >= 0.100 +Requires: perl(Test::More) >= 0.88 +Provides: perl(Data::Compare) = %{version} +Provides: perl(Data::Compare::Plugins::Scalar::Properties) = 1.250.0 +%undefine __perllib_provides +%{perl_requires} + +%description +Compare two perl data structures recursively. Returns 0 if the structures +differ, else returns 1. + +A few data types are treated as special cases: + +* Scalar::Properties objects + +This has been moved into a plugin, although functionality remains the same +as with the previous version. Full documentation is in +Data::Compare::Plugins::Scalar::Properties. + +* Compiled regular expressions, eg qr/foo/ + +These are stringified before comparison, so the following will match: + + $r = qr/abc/i; + $s = qr/abc/i; + Compare($r, $s); + +and the following won't, despite them matching *exactly* the same text: + + $r = qr/abc/i; + $s = qr/[aA][bB][cC]/; + Compare($r, $s); + +Sorry, that's the best we can do. + +* CODE and GLOB references + +These are assumed not to match unless the references are identical - ie, +both are references to the same thing. + +You may also customise how we compare structures by supplying options in a +hashref as a third parameter to the 'Compare()' function. This is not yet +available through the OO-ish interface. These options will be in force for +the *whole* of your comparison, so will apply to structures that are +lurking deep down in your data as well as at the top level, so beware! + +* ignore_hash_keys + +an arrayref of strings. When comparing two hashes, any keys mentioned in +this list will be ignored. + +%prep +%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_build + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%doc CHANGELOG MAINTAINERS-NOTE NOTES README +%license ARTISTIC.txt GPL2.txt + +%changelog