Hello community,
here is the log from the commit of package perl-Types-Serialiser for
openSUSE:Factory checked in at 2020-12-02 13:57:55
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Types-Serialiser (Old)
and /work/SRC/openSUSE:Factory/.perl-Types-Serialiser.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Types-Serialiser"
Wed Dec 2 13:57:55 2020 rev:4 rq:852355 version:1.01
Changes:
--------
---
/work/SRC/openSUSE:Factory/perl-Types-Serialiser/perl-Types-Serialiser.changes
2014-06-01 19:40:16.000000000 +0200
+++
/work/SRC/openSUSE:Factory/.perl-Types-Serialiser.new.5913/perl-Types-Serialiser.changes
2020-12-02 13:57:57.061784045 +0100
@@ -1,0 +2,16 @@
+Tue Dec 1 09:35:57 UTC 2020 - Tina Müller <[email protected]>
+
+- Add license to cpanspec.yml (no license in Makefile.PL, META.(yml|json),
+ pod and no LICENSE file)
+
+-------------------------------------------------------------------
+Tue Dec 1 03:14:20 UTC 2020 - Tina Müller <[email protected]>
+
+- updated to 1.01
+ see /usr/share/doc/packages/perl-Types-Serialiser/Changes
+
+ 1.01 Tue Dec 1 02:46:33 CET 2020
+ - implement Types::Serialiser::as_bool.
+ - slight doc tweaks.
+
+-------------------------------------------------------------------
Old:
----
Types-Serialiser-1.0.tar.gz
New:
----
Types-Serialiser-1.01.tar.gz
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Types-Serialiser.spec ++++++
--- /var/tmp/diff_new_pack.Y8vijq/_old 2020-12-02 13:57:57.625784640 +0100
+++ /var/tmp/diff_new_pack.Y8vijq/_new 2020-12-02 13:57:57.629784645 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-Types-Serialiser
#
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,25 +12,26 @@
# 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-Types-Serialiser
-Version: 1.0
+Version: 1.01
Release: 0
+#Upstream: CHECK(Artistic-1.0 or GPL-1.0-or-later)
%define cpan_name Types-Serialiser
Summary: Simple data types for common serialisation formats
-License: Artistic-1.0 or GPL-2.0+
+License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
-Url: http://search.cpan.org/dist/Types-Serialiser/
-Source:
http://www.cpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{version}.tar.gz
+URL: https://metacpan.org/release/%{cpan_name}
+Source0:
https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{cpan_name}-%{version}.tar.gz
+Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(common::sense)
-#BuildRequires: perl(Types::Serialiser)
Requires: perl(common::sense)
%{perl_requires}
@@ -44,11 +45,11 @@
%setup -q -n %{cpan_name}-%{version}
%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
@@ -57,6 +58,7 @@
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc Changes COPYING README
+%doc Changes README
+%license COPYING
%changelog
++++++ Types-Serialiser-1.0.tar.gz -> Types-Serialiser-1.01.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Types-Serialiser-1.0/Changes
new/Types-Serialiser-1.01/Changes
--- old/Types-Serialiser-1.0/Changes 2013-11-30 19:33:28.000000000 +0100
+++ new/Types-Serialiser-1.01/Changes 2020-12-01 02:46:49.000000000 +0100
@@ -1,5 +1,9 @@
Revision history for Perl extension Types::Serialiser
+1.01 Tue Dec 1 02:46:33 CET 2020
+ - implement Types::Serialiser::as_bool.
+ - slight doc tweaks.
+
1.0 Sat Nov 30 19:33:19 CET 2013
- clarify that the seocnd arg of FEEZE/THAW is the data
model/data format name, not the serialsier.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Types-Serialiser-1.0/META.json
new/Types-Serialiser-1.01/META.json
--- old/Types-Serialiser-1.0/META.json 2013-11-30 19:33:35.000000000 +0100
+++ new/Types-Serialiser-1.01/META.json 2020-12-01 02:47:04.000000000 +0100
@@ -4,7 +4,7 @@
"unknown"
],
"dynamic_config" : 1,
- "generated_by" : "ExtUtils::MakeMaker version 6.8, CPAN::Meta::Converter
version 2.120921",
+ "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter
version 2.150001",
"license" : [
"unknown"
],
@@ -37,5 +37,5 @@
}
},
"release_status" : "stable",
- "version" : "1.0"
+ "version" : "1.01"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Types-Serialiser-1.0/META.yml
new/Types-Serialiser-1.01/META.yml
--- old/Types-Serialiser-1.0/META.yml 2013-11-30 19:33:35.000000000 +0100
+++ new/Types-Serialiser-1.01/META.yml 2020-12-01 02:47:04.000000000 +0100
@@ -3,20 +3,20 @@
author:
- unknown
build_requires:
- ExtUtils::MakeMaker: 0
+ ExtUtils::MakeMaker: '0'
configure_requires:
- ExtUtils::MakeMaker: 0
+ ExtUtils::MakeMaker: '0'
dynamic_config: 1
-generated_by: 'ExtUtils::MakeMaker version 6.8, CPAN::Meta::Converter version
2.120921'
+generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version
2.150001'
license: unknown
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ version: '1.4'
name: Types-Serialiser
no_index:
directory:
- t
- inc
requires:
- common::sense: 0
-version: 1.0
+ common::sense: '0'
+version: '1.01'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Types-Serialiser-1.0/README
new/Types-Serialiser-1.01/README
--- old/Types-Serialiser-1.0/README 2013-11-30 19:33:35.000000000 +0100
+++ new/Types-Serialiser-1.01/README 2020-12-01 02:47:04.000000000 +0100
@@ -15,6 +15,10 @@
normal Perl scalars. This is necessary because these have different
representations in the serialisation formats.
+ In the following, functions with zero or one arguments have a prototype
+ of "()" and "($)", respectively, so act as constants and unary
+ operators.
+
BOOLEANS (Types::Serialiser::Boolean class)
This type has only two instances, true and false. A natural
representation for these in Perl is 1 and 0, but serialisation formats
@@ -38,6 +42,12 @@
The constant is represented as a reference to a scalar containing 0
- implementations are allowed to directly test for this.
+ Types::Serialiser::as_bool $value
+ Converts a Perl scalar into a boolean, which is useful syntactic
+ sugar. Strictly equivalent to:
+
+ $value ? $Types::Serialiser::true : $Types::Serialiser::false
+
$is_bool = Types::Serialiser::is_bool $value
Returns true iff the $value is either $Types::Serialiser::true or
$Types::Serialiser::false.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Types-Serialiser-1.0/Serialiser.pm
new/Types-Serialiser-1.01/Serialiser.pm
--- old/Types-Serialiser-1.0/Serialiser.pm 2013-11-30 19:33:18.000000000
+0100
+++ new/Types-Serialiser-1.01/Serialiser.pm 2020-12-01 02:46:53.000000000
+0100
@@ -19,7 +19,7 @@
use common::sense; # required to suppress annoying warnings
-our $VERSION = '1.0';
+our $VERSION = '1.01';
=head1 SIMPLE SCALAR CONSTANTS
@@ -28,6 +28,9 @@
scalars. This is necessary because these have different representations in
the serialisation formats.
+In the following, functions with zero or one arguments have a prototype of
+C<()> and C<($)>, respectively, so act as constants and unary operators.
+
=head2 BOOLEANS (Types::Serialiser::Boolean class)
This type has only two instances, true and false. A natural representation
@@ -54,6 +57,13 @@
The constant is represented as a reference to a scalar containing C<0> -
implementations are allowed to directly test for this.
+=item Types::Serialiser::as_bool $value
+
+Converts a Perl scalar into a boolean, which is useful syntactic
+sugar. Strictly equivalent to:
+
+ $value ? $Types::Serialiser::true : $Types::Serialiser::false
+
=item $is_bool = Types::Serialiser::is_bool $value
Returns true iff the C<$value> is either C<$Types::Serialiser::true> or
@@ -129,6 +139,8 @@
sub false () { $false }
sub error () { $error }
+sub as_bool($) { $_[0] ? $true : $false }
+
sub is_bool ($) { UNIVERSAL::isa $_[0],
Types::Serialiser::Boolean:: }
sub is_true ($) { $_[0] && UNIVERSAL::isa $_[0],
Types::Serialiser::Boolean:: }
sub is_false ($) { !$_[0] && UNIVERSAL::isa $_[0],
Types::Serialiser::Boolean:: }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Types-Serialiser-1.0/t/51_types.t
new/Types-Serialiser-1.01/t/51_types.t
--- old/Types-Serialiser-1.0/t/51_types.t 2013-10-28 16:26:42.000000000
+0100
+++ new/Types-Serialiser-1.01/t/51_types.t 2020-12-01 02:46:21.000000000
+0100
@@ -1,4 +1,4 @@
-BEGIN { $| = 1; print "1..20\n"; }
+BEGIN { $| = 1; print "1..24\n"; }
use Types::Serialiser;
@@ -29,3 +29,7 @@
$dec = Types::Serialiser::error;
print Types::Serialiser::is_error $dec ? "" : "not ", "ok 20\n";
+print Types::Serialiser::is_true Types::Serialiser::as_bool 0 ? "not " : "",
"ok 21\n";
+print Types::Serialiser::is_false Types::Serialiser::as_bool 1 ? "not " : "",
"ok 22\n";
+print Types::Serialiser::is_true Types::Serialiser::as_bool 0 ? "not " : "",
"ok 23\n";
+print Types::Serialiser::is_false Types::Serialiser::as_bool 1 ? "not " : "",
"ok 24\n";
++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#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_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
# https://metacpan.org/source/MLEHMANN/Types-Serialiser-1.01/COPYING
license: Artistic-1.0 OR GPL-1.0-or-later
#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
_______________________________________________
openSUSE Commits mailing list -- [email protected]
To unsubscribe, email [email protected]
List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette
List Archives:
https://lists.opensuse.org/archives/list/[email protected]