Accepting request 183232 from devel:languages:perl

- updated to 0.108
 repackage, new bug tracker

OBS-URL: https://build.opensuse.org/request/show/183232
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Data-OptList?expand=0&rev=14
This commit is contained in:
Stephan Kulow 2013-07-18 06:00:27 +00:00 committed by Git OBS Bridge
commit cd3f8f61aa
4 changed files with 31 additions and 33 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:28f691f680663d2773f8ee84d5f0766ef222cb2669bccc0a55c9c819e05e5a64
size 13735

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b4c7542803a644aff7c52abc50cdae1806cbc24fb7a8f98c38a518adaddaf28e
size 16201

View File

@ -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

View File

@ -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