Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package perl-Net-CIDR for openSUSE:Factory checked in at 2021-04-12 12:36:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Net-CIDR (Old) and /work/SRC/openSUSE:Factory/.perl-Net-CIDR.new.2401 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Net-CIDR" Mon Apr 12 12:36:47 2021 rev:2 rq:884104 version:0.21 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Net-CIDR/perl-Net-CIDR.changes 2020-01-21 20:59:04.488812860 +0100 +++ /work/SRC/openSUSE:Factory/.perl-Net-CIDR.new.2401/perl-Net-CIDR.changes 2021-04-12 12:39:39.981529822 +0200 @@ -1,0 +2,12 @@ +Wed Mar 31 03:08:33 UTC 2021 - Tina M??ller <timueller+p...@suse.de> + +- updated to 0.21 + see /usr/share/doc/packages/perl-Net-CIDR/ChangeLog + + 0.21 + + 2021-03-30 Sam Varshavchik <mr...@courier-mta.com> + + * Update perldoc to emphasize proper usage of ciddrvalidate(). + +------------------------------------------------------------------- Old: ---- Net-CIDR-0.20.tar.gz New: ---- Net-CIDR-0.21.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Net-CIDR.spec ++++++ --- /var/tmp/diff_new_pack.FBgaqd/_old 2021-04-12 12:39:40.473530395 +0200 +++ /var/tmp/diff_new_pack.FBgaqd/_new 2021-04-12 12:39:40.477530400 +0200 @@ -1,7 +1,7 @@ # # spec file for package perl-Net-CIDR # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,16 @@ # +%define cpan_name Net-CIDR Name: perl-Net-CIDR -Version: 0.20 +Version: 0.21 Release: 0 -%define cpan_name Net-CIDR Summary: Manipulate IPv4/IPv6 netblocks in CIDR notation License: Artistic-1.0 OR GPL-1.0-or-later -Group: Development/Libraries/Perl -Url: https://metacpan.org/release/%{cpan_name} +URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/M/MR/MRSAM/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros %{perl_requires} @@ -37,12 +35,17 @@ netblocks expressed in CIDR notation. The Net::CIDR functions handle both IPv4 and IPv6 addresses. +The cidrvalidate() function, described below, checks that its argument is a +single, valid IP address or a CIDR. The remaining functions expect that +their parameters consist of validated IPs or CIDRs. See cidrvalidate() and +BUGS, below, for more information. + %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor -make %{?_smp_mflags} +%make_build %check make test @@ -53,7 +56,6 @@ %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc ChangeLog README %license COPYING ++++++ Net-CIDR-0.20.tar.gz -> Net-CIDR-0.21.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-CIDR-0.20/ChangeLog new/Net-CIDR-0.21/ChangeLog --- old/Net-CIDR-0.20/ChangeLog 2019-04-17 03:42:39.000000000 +0200 +++ new/Net-CIDR-0.21/ChangeLog 2021-03-31 01:57:28.000000000 +0200 @@ -1,3 +1,9 @@ +0.21 + +2021-03-30 Sam Varshavchik <mr...@courier-mta.com> + + * Update perldoc to emphasize proper usage of ciddrvalidate(). + 0.20 2019-04-16 Sam Varshavchik <mr...@courier-mta.com> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-CIDR-0.20/META.json new/Net-CIDR-0.21/META.json --- old/Net-CIDR-0.20/META.json 2019-04-17 03:43:56.000000000 +0200 +++ new/Net-CIDR-0.21/META.json 2021-03-31 02:20:08.000000000 +0200 @@ -4,7 +4,7 @@ "Sam Varshavchik <s...@email-scan.com>" ], "dynamic_config" : 1, - "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010", + "generated_by" : "ExtUtils::MakeMaker version 7.46, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], @@ -37,6 +37,6 @@ } }, "release_status" : "stable", - "version" : "0.20", - "x_serialization_backend" : "JSON::PP version 2.97001" + "version" : "0.21", + "x_serialization_backend" : "JSON::PP version 4.05" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-CIDR-0.20/META.yml new/Net-CIDR-0.21/META.yml --- old/Net-CIDR-0.20/META.yml 2019-04-17 03:43:56.000000000 +0200 +++ new/Net-CIDR-0.21/META.yml 2021-03-31 02:20:08.000000000 +0200 @@ -7,7 +7,7 @@ configure_requires: ExtUtils::MakeMaker: '0' dynamic_config: 1 -generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 2.150010' +generated_by: 'ExtUtils::MakeMaker version 7.46, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -19,5 +19,5 @@ - inc requires: Carp: '0' -version: '0.20' +version: '0.21' x_serialization_backend: 'CPAN::Meta::YAML version 0.018' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-CIDR-0.20/Net-CIDR.spec new/Net-CIDR-0.21/Net-CIDR.spec --- old/Net-CIDR-0.20/Net-CIDR.spec 2019-04-17 03:35:39.000000000 +0200 +++ new/Net-CIDR-0.21/Net-CIDR.spec 2021-03-31 02:20:04.000000000 +0200 @@ -1,7 +1,7 @@ Summary: Net::CIDR Perl module Name: perl-Net-CIDR -Version: 0.20 +Version: 0.21 Release: 1.%{perl_version}%{?dist} Source0: Net-CIDR-%{version}.tar.gz License: Perl @@ -23,13 +23,13 @@ %prep %setup -q -n Net-CIDR-%{version} -%{__perl} Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} +%{__perl} Makefile.PL INSTALLDIRS=vendor %build -%{__make} +%{make_build} %install rm -rf $RPM_BUILD_ROOT -%{__make} pure_install +%{__make} pure_install DESTDIR=$RPM_BUILD_ROOT INSTALLDIRS=vendor find $RPM_BUILD_ROOT \( -name .packlist -o -name perllocal.pod \) -exec rm -f {} \; %{_fixperms} %{buildroot}/* @@ -38,7 +38,7 @@ %files %defattr(-,root,root) -%{perl_privlib}/Net +%{perl_privlib}/vendor_perl/Net %{_mandir}/man3/* %changelog diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-CIDR-0.20/Net-CIDR.spec.PL new/Net-CIDR-0.21/Net-CIDR.spec.PL --- old/Net-CIDR-0.20/Net-CIDR.spec.PL 2019-04-17 03:35:36.000000000 +0200 +++ new/Net-CIDR-0.21/Net-CIDR.spec.PL 2021-03-31 02:19:24.000000000 +0200 @@ -35,13 +35,13 @@ %prep %setup -q -n Net-CIDR-%{version} -%{__perl} Makefile.PL PREFIX=$RPM_BUILD_ROOT%{_prefix} +%{__perl} Makefile.PL INSTALLDIRS=vendor %build -%{__make} +%{make_build} %install rm -rf $RPM_BUILD_ROOT -%{__make} pure_install +%{__make} pure_install DESTDIR=$RPM_BUILD_ROOT INSTALLDIRS=vendor find $RPM_BUILD_ROOT \( -name .packlist -o -name perllocal.pod \) -exec rm -f {} \; %{_fixperms} %{buildroot}/* @@ -50,7 +50,7 @@ %files %defattr(-,root,root) -%{perl_privlib}/Net +%{perl_privlib}/vendor_perl/Net %{_mandir}/man3/* %changelog diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-CIDR-0.20/lib/Net/CIDR.pm new/Net-CIDR-0.21/lib/Net/CIDR.pm --- old/Net-CIDR-0.20/lib/Net/CIDR.pm 2019-04-17 03:28:12.000000000 +0200 +++ new/Net-CIDR-0.21/lib/Net/CIDR.pm 2021-03-31 01:56:55.000000000 +0200 @@ -1,6 +1,6 @@ # Net::CIDR # -# Copyright 2001-2019 Sam Varshavchik. +# Copyright 2001-2021 Sam Varshavchik. # # with contributions from David Cantrell. # @@ -50,7 +50,7 @@ ); -$VERSION = "0.20"; +$VERSION = "0.21"; 1; @@ -67,6 +67,13 @@ use Net::CIDR ':all'; + my $var; + + if ($var = Net::CIDR::cidrvalidate($var)) + { + // ... do something + } + print join("\n", Net::CIDR::range2cidr("192.168.0.0-192.168.255.255", "10.0.0.0-10.3.255.255")) @@ -171,6 +178,12 @@ netblocks expressed in CIDR notation. The Net::CIDR functions handle both IPv4 and IPv6 addresses. +The cidrvalidate() function, described below, checks that its argument +is a single, valid IP address or a CIDR. The remaining functions +expect that +their parameters consist of validated IPs or CIDRs. See cidrvalidate() +and BUGS, below, for more information. + =head2 @cidr_list=Net::CIDR::range2cidr(@range_list); Each element in the @range_list is a string "start-finish", where