Accepting request 749088 from devel:languages:perl

OBS-URL: https://build.opensuse.org/request/show/749088
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Data-Compare?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2019-11-23 22:12:45 +00:00 committed by Git OBS Bridge
commit 142acbc00c
5 changed files with 65 additions and 32 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1d4b36db545fa9fbacd8c012618f6a7846238ee12ab627a2764cfaf45ad4ea73
size 26249

3
Data-Compare-1.27.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:818a20f1f38f74e65253cf8bcf6fed7f94a5a8dd662f75330dcaf4b117cee8bd
size 27111

View File

@ -14,7 +14,7 @@
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
license: Artistic-1.0 OR GPL-1.0-or-later
#skip_noarch: 1
#custom_build: -
#./Build build flags=%{?_smp_mflags} --myflag

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Fri Nov 15 11:45:39 UTC 2019 - <timueller+perl@suse.de>
- 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 - <timueller+perl@suse.de>
- 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 - <timueller+perl@suse.de>
- 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

View File

@ -1,7 +1,7 @@
#
# spec file for package perl-Data-Compare
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,26 +12,31 @@
# 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-Data-Compare
Version: 1.25
Version: 1.27
Release: 0
#Upstream: SUSE-Public-Domain
%define cpan_name Data-Compare
Summary: Compare Perl Data Structures
License: GPL-1.0+ or Artistic-1.0
Summary: Compare perl data structures
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Data-Compare/
Source0: http://www.cpan.org/authors/id/D/DC/DCANTRELL/%{cpan_name}-%{version}.tar.gz
Url: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/D/DC/DCANTRELL/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Clone) >= 0.43
BuildRequires: perl(File::Find::Rule) >= 0.1
BuildRequires: perl(Test::More) >= 0.88
Requires: perl(Clone) >= 0.43
Requires: perl(File::Find::Rule) >= 0.1
Requires: perl(Test::More) >= 0.88
%{perl_requires}
%description
@ -42,30 +47,30 @@ 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 the
Data::Compare::Plugins::Scalar::Properties manpage.
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:
These are stringified before comparison, so the following will match:
$r = qr/abc/i;
$s = qr/abc/i;
Compare($r, $s);
$r = qr/abc/i;
$s = qr/abc/i;
Compare($r, $s);
and the following won't, despite them matching *exactly* the same text:
and the following won't, despite them matching *exactly* the same text:
$r = qr/abc/i;
$s = qr/[aA][bB][cC]/;
Compare($r, $s);
$r = qr/abc/i;
$s = qr/[aA][bB][cC]/;
Compare($r, $s);
Sorry, that's the best we can do.
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.
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
@ -75,19 +80,19 @@ 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.
an arrayref of strings. When comparing two hashes, any keys mentioned in
this list will be ignored.
%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -name "*.sh" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%check
%{__make} test
make test
%install
%perl_make_install
@ -96,6 +101,7 @@ find . -type f -print0 | xargs -0 chmod 644
%files -f %{name}.files
%defattr(-,root,root,755)
%doc ARTISTIC.txt CHANGELOG GPL2.txt MAINTAINERS-NOTE NOTES README TODO
%doc CHANGELOG GPL2.txt MAINTAINERS-NOTE NOTES README
%license ARTISTIC.txt
%changelog