Hello community,
here is the log from the commit of package perl-Text-Capitalize for openSUSE:Factory checked in at 2019-09-30 16:01:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Text-Capitalize (Old)
and /work/SRC/openSUSE:Factory/.perl-Text-Capitalize.new.2352 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Text-Capitalize"
Mon Sep 30 16:01:19 2019 rev:2 rq:733994 version:1.5
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Text-Capitalize/perl-Text-Capitalize.changes 2015-10-24 10:25:56.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.perl-Text-Capitalize.new.2352/perl-Text-Capitalize.changes 2019-09-30 16:01:41.164851423 +0200
@@ -1,0 +2,14 @@
+Sat Sep 28 13:48:17 UTC 2019 -
+
+- updated to 1.5
+ see /usr/share/doc/packages/perl-Text-Capitalize/Changes
+
+
+ 1.4 Changed uc calls to ucfirst (hypothetically better
+ for title-casing with unicode strings)
+
+
+ 1.5 Removed PerlIO::locale dependency from tests,
+ got rid of the Andy Lester tests of pod and such.
+
+-------------------------------------------------------------------
Old:
----
Text-Capitalize-1.3.tar.gz
New:
----
Text-Capitalize-1.5.tar.gz
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-Text-Capitalize.spec ++++++
--- /var/tmp/diff_new_pack.25KD3Y/_old 2019-09-30 16:01:41.804849720 +0200
+++ /var/tmp/diff_new_pack.25KD3Y/_new 2019-09-30 16:01:41.808849710 +0200
@@ -1,7 +1,7 @@
#
# spec file for package perl-Text-Capitalize
#
-# 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,25 +12,25 @@
# 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-Text-Capitalize
-Version: 1.3
+Version: 1.5
Release: 0
%define cpan_name Text-Capitalize
-Summary: capitalize strings ("to WORK AS titles" becomes "To Work as Titles")
-License: Artistic-1.0 or GPL-1.0+
+Summary: Capitalize strings ("to WORK AS titles" becomes "To Work as Titles")
+License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
-Url: http://search.cpan.org/dist/Text-Capitalize/
-Source: http://www.cpan.org/authors/id/D/DO/DOOM/%{cpan_name}-%{version}.tar.gz
+Url: https://metacpan.org/release/%{cpan_name}
+Source0: https://cpan.metacpan.org/authors/id/D/DO/DOOM/%{cpan_name}-%{version}.tar.gz
+Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Module::Build) >= 0.35
-BuildRequires: perl(PerlIO::locale)
+BuildRequires: perl(Module::Build) >= 0.420000
%{perl_requires}
%description
@@ -71,10 +71,9 @@
%prep
%setup -q -n %{cpan_name}-%{version}
-find . -type f -print0 | xargs -0 chmod 644
%build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
++++++ Text-Capitalize-1.3.tar.gz -> Text-Capitalize-1.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Capitalize-1.3/Build.PL new/Text-Capitalize-1.5/Build.PL
--- old/Text-Capitalize-1.3/Build.PL 2010-01-26 14:46:21.000000000 +0100
+++ new/Text-Capitalize-1.5/Build.PL 2019-09-27 04:20:30.000000000 +0200
@@ -13,7 +13,6 @@
'lib' => 0,
'Env' => 1.00,
'Data::Dumper' => 0,
- 'PerlIO::locale' => 0,
},
build => {
'strict' => 0,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Capitalize-1.3/Changes new/Text-Capitalize-1.5/Changes
--- old/Text-Capitalize-1.3/Changes 2010-01-26 14:46:21.000000000 +0100
+++ new/Text-Capitalize-1.5/Changes 2019-09-27 04:20:30.000000000 +0200
@@ -50,3 +50,10 @@
1.2 Improved portability to perl 5.6.
1.3 Minor cleanup of *.t files
+
+1.4 Changed uc calls to ucfirst (hypothetically better
+ for title-casing with unicode strings)
+
+
+1.5 Removed PerlIO::locale dependency from tests,
+ got rid of the Andy Lester tests of pod and such.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Capitalize-1.3/MANIFEST new/Text-Capitalize-1.5/MANIFEST
--- old/Text-Capitalize-1.3/MANIFEST 2010-01-26 14:46:21.000000000 +0100
+++ new/Text-Capitalize-1.5/MANIFEST 2019-09-27 04:20:30.000000000 +0200
@@ -14,8 +14,8 @@
t/009-scramble_case.t
t/lib/Test/Locale/Utils.pm
t/lib/Test/Locale/t/000-all_true-Test-Locale-Utils-private.t
-t/pod-coverage.t
-t/pod.t
-t/boilerplate.t
Makefile.PL
META.yml
+
+
+META.json
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Capitalize-1.3/META.json new/Text-Capitalize-1.5/META.json
--- old/Text-Capitalize-1.3/META.json 1970-01-01 01:00:00.000000000 +0100
+++ new/Text-Capitalize-1.5/META.json 2019-09-27 04:20:30.000000000 +0200
@@ -0,0 +1,46 @@
+{
+ "abstract" : "capitalize strings (\"to WORK AS titles\" becomes \"To Work as Titles\")",
+ "author" : [
+ "Joseph Brenner "
+ ],
+ "dynamic_config" : 1,
+ "generated_by" : "Module::Build version 0.4229",
+ "license" : [
+ "perl_5"
+ ],
+ "meta-spec" : {
+ "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+ "version" : 2
+ },
+ "name" : "Text-Capitalize",
+ "prereqs" : {
+ "build" : {
+ "requires" : {
+ "Data::Dumper" : "0",
+ "Env" : "1",
+ "FindBin" : "1.04",
+ "Test::More" : "0",
+ "lib" : "0"
+ }
+ },
+ "configure" : {
+ "requires" : {
+ "Module::Build" : "0.42"
+ }
+ }
+ },
+ "provides" : {
+ "Text::Capitalize" : {
+ "file" : "lib/Text/Capitalize.pm",
+ "version" : "1.5"
+ }
+ },
+ "release_status" : "stable",
+ "resources" : {
+ "license" : [
+ "http://dev.perl.org/licenses/"
+ ]
+ },
+ "version" : "1.5",
+ "x_serialization_backend" : "JSON::PP version 2.97001"
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Capitalize-1.3/META.yml new/Text-Capitalize-1.5/META.yml
--- old/Text-Capitalize-1.3/META.yml 2010-01-26 14:46:21.000000000 +0100
+++ new/Text-Capitalize-1.5/META.yml 2019-09-27 04:20:30.000000000 +0200
@@ -1,26 +1,27 @@
---
-name: Text-Capitalize
-version: 1.3
+abstract: 'capitalize strings ("to WORK AS titles" becomes "To Work as Titles")'
author:
- 'Joseph Brenner '
-abstract: capitalize strings ("to WORK AS titles" becomes "To Work as Titles")
-license: perl
-resources:
- license: http://dev.perl.org/licenses/
build_requires:
- Data::Dumper: 0
- Env: 1
- FindBin: 1.04
- PerlIO::locale: 0
- Test::More: 0
- lib: 0
+ Data::Dumper: '0'
+ Env: '1'
+ FindBin: '1.04'
+ Test::More: '0'
+ lib: '0'
configure_requires:
- Module::Build: 0.35
+ Module::Build: '0.42'
+dynamic_config: 1
+generated_by: 'Module::Build version 0.4229, CPAN::Meta::Converter version 2.150010'
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: '1.4'
+name: Text-Capitalize
provides:
Text::Capitalize:
file: lib/Text/Capitalize.pm
- version: 1.3
-generated_by: Module::Build version 0.35
-meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.4.html
- version: 1.4
+ version: '1.5'
+resources:
+ license: http://dev.perl.org/licenses/
+version: '1.5'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Capitalize-1.3/Makefile.PL new/Text-Capitalize-1.5/Makefile.PL
--- old/Text-Capitalize-1.3/Makefile.PL 2010-01-26 14:46:21.000000000 +0100
+++ new/Text-Capitalize-1.5/Makefile.PL 2019-09-27 04:20:30.000000000 +0200
@@ -1,19 +1,18 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.35
+# Note: this file was auto-generated by Module::Build::Compat version 0.4229
use ExtUtils::MakeMaker;
WriteMakefile
(
- 'NAME' => 'Text::Capitalize',
- 'VERSION_FROM' => 'lib/Text/Capitalize.pm',
- 'PREREQ_PM' => {
- 'Data::Dumper' => 0,
- 'Env' => '1',
- 'FindBin' => '1.04',
- 'PerlIO::locale' => 0,
- 'Test::More' => 0,
- 'lib' => 0
- },
- 'INSTALLDIRS' => 'site',
- 'EXE_FILES' => [],
- 'PL_FILES' => {}
- )
+ 'NAME' => 'Text::Capitalize',
+ 'VERSION_FROM' => 'lib/Text/Capitalize.pm',
+ 'PREREQ_PM' => {
+ 'Data::Dumper' => 0,
+ 'Env' => 1,
+ 'FindBin' => '1.04',
+ 'Test::More' => 0,
+ 'lib' => 0
+ },
+ 'INSTALLDIRS' => 'site',
+ 'EXE_FILES' => [],
+ 'PL_FILES' => {}
+)
;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Capitalize-1.3/lib/Text/Capitalize.pm new/Text-Capitalize-1.5/lib/Text/Capitalize.pm
--- old/Text-Capitalize-1.3/lib/Text/Capitalize.pm 2010-01-26 14:46:21.000000000 +0100
+++ new/Text-Capitalize-1.5/lib/Text/Capitalize.pm 2019-09-27 04:20:30.000000000 +0200
@@ -105,7 +105,7 @@
zippify_case
capitalize_title_original
);
-$VERSION = '1.3';
+$VERSION = '1.5';
# Define the pattern to match "exceptions": the minor words
# that don't usually get capitalized in titles (used by capitalize_title)
@@ -263,8 +263,8 @@
# Fugliness to get some French names to work, e.g. "d'Alembert", "l'Hospital"
if ( $word =~ m{^[dl]'}) {
- $word =~ s{ ^(d') (\w) }{ lc($1) . uc($2) }iex;
- $word =~ s{ ^(l') (\w) }{ lc($1) . uc($2) }iex;
+ $word =~ s{ ^(d') (\w) }{ lc($1) . ucfirst($2) }iex;
+ $word =~ s{ ^(l') (\w) }{ lc($1) . ucfirst($2) }iex;
# But upcase first char if first or last word
if ( ($i == $first) or ($i == $last) ) {
@@ -375,7 +375,7 @@
$uppity = int( rand( 1 + $downers/$uppers) );
if ($uppity) {
- $c = uc($c);
+ $c = ucfirst($c);
$uppers++;
} else {
$c = lc($c);
@@ -437,7 +437,7 @@
$uppity = int( rand( 1 + $downers/$uppers ) );
if ($uppity) {
- $word = uc($word);
+ $word = ucfirst($word);
$uppers++;
} else {
$word = lc($word);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Capitalize-1.3/t/002-captitle-default.t new/Text-Capitalize-1.5/t/002-captitle-default.t
--- old/Text-Capitalize-1.3/t/002-captitle-default.t 2010-01-26 14:46:21.000000000 +0100
+++ new/Text-Capitalize-1.5/t/002-captitle-default.t 2019-09-27 04:20:30.000000000 +0200
@@ -14,7 +14,6 @@
use Text::Capitalize 0.4 qw( capitalize_title );
use Test::Locale::Utils qw( :all );
use Test::More;
-use PerlIO::locale;
my $basic_test_cases = define_basic_test_cases();
my $i18n_test_cases = define_basic_test_cases_i18n();
@@ -25,9 +24,9 @@
plan tests => $total;
my $builder = Test::More->builder;
-binmode $builder->output, ":locale";
-binmode $builder->failure_output, ":locale";
-binmode $builder->todo_output, ":locale";
+binmode $builder->output, ":encoding(utf-8)";
+binmode $builder->failure_output, ":encoding(utf-8)";
+binmode $builder->todo_output, ":encoding(utf-8)";
my $i18n_system = is_locale_international();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Capitalize-1.3/t/boilerplate.t new/Text-Capitalize-1.5/t/boilerplate.t
--- old/Text-Capitalize-1.3/t/boilerplate.t 2010-01-26 14:46:21.000000000 +0100
+++ new/Text-Capitalize-1.5/t/boilerplate.t 1970-01-01 01:00:00.000000000 +0100
@@ -1,55 +0,0 @@
-#!perl -T
-
-use strict;
-use warnings;
-use Test::More tests => 3;
-
-sub not_in_file_ok {
- my ($filename, %regex) = @_;
- open( my $fh, '<', $filename )
- or die "couldn't open $filename for reading: $!";
-
- my %violated;
-
- while (my $line = <$fh>) {
- while (my ($desc, $regex) = each %regex) {
- if ($line =~ $regex) {
- push @{$violated{$desc}||=[]}, $.;
- }
- }
- }
-
- if (%violated) {
- fail("$filename contains boilerplate text");
- diag "$_ appears on lines @{$violated{$_}}" for keys %violated;
- } else {
- pass("$filename contains no boilerplate text");
- }
-}
-
-sub module_boilerplate_ok {
- my ($module) = @_;
- not_in_file_ok($module =>
- 'the great new $MODULENAME' => qr/ - The great new /,
- 'boilerplate description' => qr/Quick summary of what the module/,
- 'stub function definition' => qr/function[12]/,
- );
-}
-
-TODO: {
- local $TODO = "Need to replace the boilerplate text";
-
- not_in_file_ok(README =>
- "The README is used..." => qr/The README is used/,
- "'version information here'" => qr/to provide version information/,
- );
-
- not_in_file_ok(Changes =>
- "placeholder date/time" => qr(Date/time)
- );
-
- module_boilerplate_ok('lib/Text/Capitalize.pm');
-
-
-}
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Capitalize-1.3/t/lib/Test/Locale/Utils.pm new/Text-Capitalize-1.5/t/lib/Test/Locale/Utils.pm
--- old/Text-Capitalize-1.3/t/lib/Test/Locale/Utils.pm 2010-01-26 14:46:21.000000000 +0100
+++ new/Text-Capitalize-1.5/t/lib/Test/Locale/Utils.pm 2019-09-27 04:20:30.000000000 +0200
@@ -151,7 +151,7 @@
sub is_uc_and_lc_internationalized {
my $exchars = define_sample_i18n_chars();
# use locale;
- use utf8;
+# use utf8;
my @checks;
foreach my $pair ( @{ $exchars } ) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Capitalize-1.3/t/pod-coverage.t new/Text-Capitalize-1.5/t/pod-coverage.t
--- old/Text-Capitalize-1.3/t/pod-coverage.t 2010-01-26 14:46:21.000000000 +0100
+++ new/Text-Capitalize-1.5/t/pod-coverage.t 1970-01-01 01:00:00.000000000 +0100
@@ -1,18 +0,0 @@
-use strict;
-use warnings;
-use Test::More;
-
-# Ensure a recent version of Test::Pod::Coverage
-my $min_tpc = 1.08;
-eval "use Test::Pod::Coverage $min_tpc";
-plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage"
- if $@;
-
-# Test::Pod::Coverage doesn't require a minimum Pod::Coverage version,
-# but older versions don't recognize some common documentation styles
-my $min_pc = 0.18;
-eval "use Pod::Coverage $min_pc";
-plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage"
- if $@;
-
-all_pod_coverage_ok();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Text-Capitalize-1.3/t/pod.t new/Text-Capitalize-1.5/t/pod.t
--- old/Text-Capitalize-1.3/t/pod.t 2010-01-26 14:46:21.000000000 +0100
+++ new/Text-Capitalize-1.5/t/pod.t 1970-01-01 01:00:00.000000000 +0100
@@ -1,12 +0,0 @@
-#!perl -T
-
-use strict;
-use warnings;
-use Test::More;
-
-# Ensure a recent version of Test::Pod
-my $min_tp = 1.22;
-eval "use Test::Pod $min_tp";
-plan skip_all => "Test::Pod $min_tp required for testing POD" if $@;
-
-all_pod_files_ok();
++++++ 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
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module