From a943a814672da281d014225fe8d5685a29407652b152a6498af0e35c828ee7c1 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 16 Jul 2013 12:17:23 +0000 Subject: [PATCH] - updated to 0.108 repackage, new bug tracker OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Data-OptList?expand=0&rev=24 --- Data-OptList-0.107.tar.gz | 3 --- Data-OptList-0.108.tar.gz | 3 +++ perl-Data-OptList.changes | 6 +++++ perl-Data-OptList.spec | 52 +++++++++++++++++---------------------- 4 files changed, 31 insertions(+), 33 deletions(-) delete mode 100644 Data-OptList-0.107.tar.gz create mode 100644 Data-OptList-0.108.tar.gz diff --git a/Data-OptList-0.107.tar.gz b/Data-OptList-0.107.tar.gz deleted file mode 100644 index a228152..0000000 --- a/Data-OptList-0.107.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:28f691f680663d2773f8ee84d5f0766ef222cb2669bccc0a55c9c819e05e5a64 -size 13735 diff --git a/Data-OptList-0.108.tar.gz b/Data-OptList-0.108.tar.gz new file mode 100644 index 0000000..8f8fbf7 --- /dev/null +++ b/Data-OptList-0.108.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4c7542803a644aff7c52abc50cdae1806cbc24fb7a8f98c38a518adaddaf28e +size 16201 diff --git a/perl-Data-OptList.changes b/perl-Data-OptList.changes index 95f36b8..343c187 100644 --- a/perl-Data-OptList.changes +++ b/perl-Data-OptList.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jul 16 12:10:27 UTC 2013 - coolo@suse.com + +- updated to 0.108 + repackage, new bug tracker + ------------------------------------------------------------------- Fri Mar 16 09:25:31 UTC 2012 - lars@linux-schulserver.de diff --git a/perl-Data-OptList.spec b/perl-Data-OptList.spec index d86822b..4485d6c 100644 --- a/perl-Data-OptList.spec +++ b/perl-Data-OptList.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Data-OptList # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products 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,29 +17,25 @@ Name: perl-Data-OptList -%define cpan_name Data-OptList -Summary: Parse and validate simple name/value option pairs -License: Artistic-1.0 -Group: Development/Libraries/Perl -Version: 0.107 +Version: 0.108 Release: 0 -Url: http://search.cpan.org/dist/Data-OptList -Source: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz +%define cpan_name Data-OptList +Summary: parse and validate simple name/value option pairs +License: Artistic-1.0 or GPL-1.0+ +Group: Development/Libraries/Perl +Url: http://search.cpan.org/dist/Data-OptList/ +Source: http://www.cpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros -BuildRequires: perl(List::Util) >= 0.00 -BuildRequires: perl(Test::More) >= 0.88 -# other not perl || perl-base -BuildRequires: perl(Params::Util) >= 0.14 +BuildRequires: perl(Params::Util) BuildRequires: perl(Sub::Install) >= 0.921 -# -Requires: perl(List::Util) >= 0.00 -# other not perl || perl-base -Requires: perl(Params::Util) >= 0.14 +BuildRequires: perl(Test::More) >= 0.96 +#BuildRequires: perl(Data::OptList) +Requires: perl(Params::Util) Requires: perl(Sub::Install) >= 0.921 +%{perl_requires} %description Hashes are great for storing named data, but if you want more than one @@ -61,7 +57,9 @@ Just look at all those undefs! Don't worry, we can get rid of those: ]; Aaaauuugh! We've saved a little typing, but now it requires thought to -read, and thinking is even worse than typing. +read, and thinking is even worse than typing... and it's got a bug! It +looked right, didn't it? Well, the 'xyz => { ... }' gets consumed by the +map, and we don't get the data we wanted. With Data::OptList, you can do this instead: @@ -70,11 +68,12 @@ With Data::OptList, you can do this instead: xyz => { ... }, ]); -This works by assuming that any defined scalar is a name and any -reference following a name is its value. +This works by assuming that any defined scalar is a name and any reference +following a name is its value. %prep %setup -q -n %{cpan_name}-%{version} +# MANUAL %if 0%{?suse_version} < 1120 for i in `find t -type f` ; do sed -i -e "s@^\s*use\s\s*Test::More@use lib '%{perl_vendorlib}';\nuse Test::More@" $i @@ -82,7 +81,7 @@ done %endif %build -%{__perl} Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" +%{__perl} Makefile.PL INSTALLDIRS=vendor %{__make} %{?_smp_mflags} %check @@ -90,18 +89,11 @@ done %install %perl_make_install -# do not perl_process_packlist (noarch) -# remove .packlist file -%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch -# remove perllocal.pod file -%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib +%perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf $RPM_BUILD_ROOT - %files -f %{name}.files -%defattr(-,root,root) +%defattr(-,root,root,755) %doc Changes LICENSE README %changelog