Hello community, here is the log from the commit of package perl-Config-General for openSUSE:Factory checked in at Mon Jul 19 20:38:03 CEST 2010. -------- --- perl-Config-General/perl-Config-General.changes 2010-04-16 14:03:29.000000000 +0200 +++ /mounts/work_src_done/STABLE/perl-Config-General/perl-Config-General.changes 2010-07-16 15:06:42.000000000 +0200 @@ -1,0 +2,10 @@ +Fri Jul 16 13:04:11 UTC 2010 - chris@computersalat.de + +- update to 2.4.9 + - fixed rt.cpan.org#56532, '#' missed during fix for + 56370 in 2.45. + - added test case for this too +- recreated by cpanspec 1.78 +- noarch pkg + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- Config-General-2.48.tar.bz2 New: ---- Config-General-2.49.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Config-General.spec ++++++ --- /var/tmp/diff_new_pack.3UUoZX/_old 2010-07-19 20:37:45.000000000 +0200 +++ /var/tmp/diff_new_pack.3UUoZX/_new 2010-07-19 20:37:45.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package perl-Config-General (Version 2.48) +# spec file for package perl-Config-General (Version 2.49) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -19,43 +19,49 @@ Name: perl-Config-General -%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' ) +%define cpan_name Config-General Summary: Generic Config Module -Version: 2.48 +Version: 2.49 Release: 1 -License: Artistic License .. ; GPLv2+ +License: GPL+ or Artistic Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Config-General -Source0: %{cpan_name}-%{version}.tar.bz2 +Url: http://search.cpan.org/dist/Config-General/ +#Source: http://www.cpan.org/modules/by-module/Config/Config-General-%{version}.tar.gz +Source: %{cpan_name}-%{version}.tar.bz2 BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl %if 0%{?suse_version} < 1120 BuildRequires: perl-macros %endif +BuildRequires: perl(File::Glob) +BuildRequires: perl(FileHandle) +BuildRequires: perl(File::Spec::Functions) +BuildRequires: perl(IO::File) Requires: perl = %{perl_version} +Requires: perl(File::Glob) +Requires: perl(FileHandle) +Requires: perl(File::Spec::Functions) +Requires: perl(IO::File) %description -This module opens a config file and parses it's contents -for you. After parsing the module returns a hash structure -which contains the representation of the config file. - -The format of config files supported by Config::General is -inspired by the well known apache config format, in fact, -this module is 100% read-compatible to apache configs, but -you can also just use simple name/value pairs in your config -files. - -In addition to the capabilities of a apache config file -it supports some enhancements such as here-documents, C- -style comments or multiline options. It is also possible to -save the config back to disk, which makes the module a -perfect backend for configuration interfaces. - -It is possible to use variables in config files and there -exists also support for object oriented access to the -configuration. +This module opens a config file and parses its contents for you. The new +method requires one parameter which needs to be a filename. The method +getall returns a hash which contains all options and its associated values +of your config file. + +The format of config files supported by Config::General is inspired by the +well known apache config format, in fact, this module is 100% +read-compatible to apache configs, but you can also just use simple +name/value pairs in your config files. + +In addition to the capabilities of a apache config file it supports some +enhancements such as here-documents, C-style comments or multiline options. +It is also possible to save the config back to disk, which makes the module +a perfect backend for configuration interfaces. +It is possible to use variables in config files and there exists also +support for object oriented access to the configuration. Authors: -------- @@ -65,8 +71,9 @@ %setup -q -n %{cpan_name}-%{version} %build -perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" -%{__make} %{?jobs:-j%jobs} +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" + +%{__make} %{?_smp_mflags} %check %{__make} test @@ -84,7 +91,7 @@ %{__rm} -rf $RPM_BUILD_ROOT %files -f %{name}.files -%defattr(-, root, root) +%defattr(-,root,root,-) %doc Changelog README TODO example.cfg %changelog ++++++ Config-General-2.48.tar.bz2 -> Config-General-2.49.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-General-2.48/Changelog new/Config-General-2.49/Changelog --- old/Config-General-2.48/Changelog 2010-04-09 15:40:45.000000000 +0200 +++ new/Config-General-2.49/Changelog 2010-06-08 08:55:01.000000000 +0200 @@ -1,3 +1,10 @@ + 2.49 + - fixed rt.cpan.org#56532, '#' missed during fix for + 56370 in 2.45. + + - added test case for this too + + 2.48 - arg, uploaded the wrong file to pause, so another version bump up. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-General-2.48/General.pm new/Config-General-2.49/General.pm --- old/Config-General-2.48/General.pm 2010-04-09 15:40:45.000000000 +0200 +++ new/Config-General-2.49/General.pm 2010-06-08 08:53:25.000000000 +0200 @@ -32,7 +32,7 @@ use Carp; use Exporter; -$Config::General::VERSION = 2.48; +$Config::General::VERSION = 2.49; use vars qw(@ISA @EXPORT_OK); use base qw(Exporter); @@ -1084,7 +1084,7 @@ } # are there any escaped characters left? put them out as is - $value =~ s/\\([\$\\\"])/$1/g; + $value =~ s/\\([\$\\\"#])/$1/g; return $value; } @@ -2532,7 +2532,7 @@ =head1 VERSION -2.48 +2.49 =cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-General-2.48/t/cfg.51 new/Config-General-2.49/t/cfg.51 --- old/Config-General-2.48/t/cfg.51 2010-04-09 10:49:50.000000000 +0200 +++ new/Config-General-2.49/t/cfg.51 2010-06-08 08:39:00.000000000 +0200 @@ -2,3 +2,4 @@ backslash = contains \\ backslash prize = 18 $ hostparam = "\"'wsh.dir'\"" +bgcolor = \#fff diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Config-General-2.48/t/run.t new/Config-General-2.49/t/run.t --- old/Config-General-2.48/t/run.t 2010-04-09 10:54:36.000000000 +0200 +++ new/Config-General-2.49/t/run.t 2010-06-08 08:53:05.000000000 +0200 @@ -8,7 +8,7 @@ use Data::Dumper; -use Test::More tests => 63; +use Test::More tests => 64; #use Test::More qw(no_plan); # ahem, we deliver the test code with a local copy of @@ -696,6 +696,7 @@ is($hash51{backslash}, 'contains \ backslash', "keep escaped backslash character"); is($hash51{prize}, '18 $', "keep un-escaped dollar character"); is($hash51{hostparam}, q("'wsh.dir'"), "keep escaped quote character"); +is($hash51{bgcolor}, '#fff', "keep escaped number sign"); # now save it to a file and re-read it in and see if everything remains escaped $cfg51->save_file("t/cfg.51.out"); ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org