Hello community, here is the log from the commit of package perl-Digest-CRC for openSUSE:Factory checked in at 2015-04-18 10:41:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Digest-CRC (Old) and /work/SRC/openSUSE:Factory/.perl-Digest-CRC.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Digest-CRC" Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Digest-CRC/perl-Digest-CRC.changes 2015-02-10 20:23:07.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Digest-CRC.new/perl-Digest-CRC.changes 2015-04-18 10:41:13.000000000 +0200 @@ -1,0 +2,10 @@ +Fri Apr 17 18:14:06 UTC 2015 - [email protected] + +- updated to 0.21 + see /usr/share/doc/packages/perl-Digest-CRC/Changes + + + 0.21 Sat Feb 21 13:18:25 2015 + - new() throwing an error if an unsupported type is specified + +------------------------------------------------------------------- Old: ---- Digest-CRC-0.20.tar.gz New: ---- Digest-CRC-0.21.tar.gz cpanspec.yml ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Digest-CRC.spec ++++++ --- /var/tmp/diff_new_pack.pqgaB9/_old 2015-04-18 10:41:14.000000000 +0200 +++ /var/tmp/diff_new_pack.pqgaB9/_new 2015-04-18 10:41:14.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Digest-CRC # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 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 @@ -17,42 +17,43 @@ Name: perl-Digest-CRC -Version: 0.20 +Version: 0.21 Release: 0 -Url: http://search.cpan.org/dist/Digest-CRC/ -Summary: Generic CRC functions for Perl +#Upstream: CRC algorithm code taken from "A PAINLESS GUIDE TO CRC ERROR DETECTION ALGORITHMS". the public domain. +%define cpan_name Digest-CRC +Summary: Generic CRC functions License: SUSE-Public-Domain Group: Development/Libraries/Perl -Source: http://search.cpan.org/CPAN/authors/id/O/OL/OLIMAUL/Digest-CRC-%{version}.tar.gz +Url: http://search.cpan.org/dist/Digest-CRC/ +Source0: http://www.cpan.org/authors/id/O/OL/OLIMAUL/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros +%{perl_requires} %description -The Digest::CRC module calculates CRC sums of all sorts. It contains -wrapper functions with the correct parameters for CRC-CCITT, CRC-16, -CRC-32 and CRC-64. +The *Digest::CRC* module calculates CRC sums of all sorts. It contains +wrapper functions with the correct parameters for CRC-CCITT, CRC-16, CRC-32 +and CRC-64, as well as the CRC used in OpenPGP's ASCII-armored checksum. %prep -%setup -q -n Digest-CRC-%{version} +%setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -make -make test +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%{__make} %{?_smp_mflags} + +%check +%{__make} test %install -make DESTDIR=$RPM_BUILD_ROOT install_vendor +%perl_make_install %perl_process_packlist +%perl_gen_filelist -%clean -rm -rf $RPM_BUILD_ROOT - -%files -%defattr(-,root,root) -%doc %{_mandir}/man3/* -%{perl_vendorarch}/Digest -%{perl_vendorarch}/auto/Digest +%files -f %{name}.files +%defattr(-,root,root,755) +%doc Changes README %changelog ++++++ Digest-CRC-0.20.tar.gz -> Digest-CRC-0.21.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Digest-CRC-0.20/Changes new/Digest-CRC-0.21/Changes --- old/Digest-CRC-0.20/Changes 2015-02-08 17:58:39.000000000 +0100 +++ new/Digest-CRC-0.21/Changes 2015-02-21 13:19:13.000000000 +0100 @@ -65,3 +65,6 @@ 0.20 Sun Feb 8 16:45:13 2015 - removed debug code + +0.21 Sat Feb 21 13:18:25 2015 + - new() throwing an error if an unsupported type is specified diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Digest-CRC-0.20/META.yml new/Digest-CRC-0.21/META.yml --- old/Digest-CRC-0.20/META.yml 2015-02-08 17:58:49.000000000 +0100 +++ new/Digest-CRC-0.21/META.yml 2015-02-21 13:19:23.000000000 +0100 @@ -1,7 +1,7 @@ # http://module-build.sourceforge.net/META-spec.html #XXXXXXX This is a prototype!!! It will change in the future!!! XXXXX# name: Digest-CRC -version: 0.20 +version: 0.21 version_from: lib/Digest/CRC.pm installdirs: site requires: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Digest-CRC-0.20/README new/Digest-CRC-0.21/README --- old/Digest-CRC-0.20/README 2015-02-08 12:20:49.000000000 +0100 +++ new/Digest-CRC-0.21/README 2015-02-21 13:20:33.000000000 +0100 @@ -1,4 +1,4 @@ -Digest::CRC version 0.19 +Digest::CRC version 0.21 ======================== NAME diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Digest-CRC-0.20/lib/Digest/CRC.pm new/Digest-CRC-0.21/lib/Digest/CRC.pm --- old/Digest-CRC-0.20/lib/Digest/CRC.pm 2015-02-08 17:58:58.000000000 +0100 +++ new/Digest-CRC-0.21/lib/Digest/CRC.pm 2015-02-21 13:33:47.000000000 +0100 @@ -18,7 +18,7 @@ crc64_hex crc64_base64 ); -$VERSION = '0.20'; +$VERSION = '0.21'; $XS_VERSION = $VERSION; #$VERSION = eval $VERSION; @@ -134,6 +134,7 @@ sub new { my $that=shift; my %params=@_; + die if defined($params{type}) && !exists($_typedef{$params{type}}) && $params{type} ne 'crc64'; my $class = ref($that) || $that; my $self = {map { ($_ => $params{$_}) } qw(type width init xorout refout poly refin cont)}; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Digest-CRC-0.20/t/crc.t new/Digest-CRC-0.21/t/crc.t --- old/Digest-CRC-0.20/t/crc.t 2015-02-08 12:29:33.000000000 +0100 +++ new/Digest-CRC-0.21/t/crc.t 2015-02-21 13:34:40.000000000 +0100 @@ -53,11 +53,11 @@ # addfile -open(F,"<README")||die "Cannot open Changes"; +open(F,"<README")||die "Cannot open README"; $ctx->addfile(F); close(F); my $y = $ctx->digest; -ok($y == 450277065, 'OO crc32 with addfile '.$y); +ok($y == 1662879226, 'OO crc32 with addfile '.$y); # start at offset >0 with previous checksum result $ctx = Digest::CRC->new(type=>"crc32",cont=>1,init=>460478609); ++++++ cpanspec.yml ++++++ --- #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: SUSE-Public-Domain #skip_noarch: 1 #custom_build: - #./Build build flags=%{?_smp_mflags} --myflag
