|
|
119e13 |
Name: perl-Data-OptList
|
|
|
119e13 |
Summary: Parse and validate simple name/value option pairs
|
|
|
119e13 |
Version: 0.107
|
|
|
0140dc |
Release: 9%{?dist}
|
|
|
119e13 |
License: GPL+ or Artistic
|
|
|
119e13 |
Group: Development/Libraries
|
|
|
119e13 |
URL: http://search.cpan.org/dist/Data-OptList/
|
|
|
119e13 |
Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz
|
|
|
119e13 |
BuildArch: noarch
|
|
|
119e13 |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
|
|
119e13 |
BuildRequires: perl(List::Util)
|
|
|
119e13 |
BuildRequires: perl(Params::Util)
|
|
|
119e13 |
BuildRequires: perl(Sub::Install) >= 0.921
|
|
|
119e13 |
BuildRequires: perl(Test::More)
|
|
|
119e13 |
BuildRequires: perl(Test::Pod)
|
|
|
119e13 |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
119e13 |
|
|
|
119e13 |
# Obsolete/provide old -tests subpackage (can be removed in F19 development cycle)
|
|
|
119e13 |
Obsoletes: %{name}-tests < %{version}-%{release}
|
|
|
119e13 |
Provides: %{name}-tests = %{version}-%{release}
|
|
|
119e13 |
|
|
|
119e13 |
%description
|
|
|
119e13 |
Hashes are great for storing named data, but if you want more than one entry
|
|
|
119e13 |
for a name, you have to use a list of pairs. Even then, this is really boring
|
|
|
119e13 |
to write:
|
|
|
119e13 |
|
|
|
119e13 |
$values = [
|
|
|
119e13 |
foo => undef,
|
|
|
119e13 |
bar => undef,
|
|
|
119e13 |
baz => undef,
|
|
|
119e13 |
xyz => { ... },
|
|
|
119e13 |
];
|
|
|
119e13 |
|
|
|
119e13 |
With Data::OptList, you can do this instead:
|
|
|
119e13 |
|
|
|
119e13 |
$values = Data::OptList::mkopt([
|
|
|
119e13 |
qw(foo bar baz),
|
|
|
119e13 |
xyz => { ... },
|
|
|
119e13 |
]);
|
|
|
119e13 |
|
|
|
119e13 |
This works by assuming that any defined scalar is a name and any reference
|
|
|
119e13 |
following a name is its value.
|
|
|
119e13 |
|
|
|
119e13 |
%prep
|
|
|
119e13 |
%setup -q -n Data-OptList-%{version}
|
|
|
119e13 |
|
|
|
119e13 |
perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*
|
|
|
119e13 |
|
|
|
119e13 |
%build
|
|
|
119e13 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
119e13 |
make %{?_smp_mflags}
|
|
|
119e13 |
|
|
|
119e13 |
%install
|
|
|
119e13 |
make pure_install DESTDIR=%{buildroot}
|
|
|
119e13 |
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
119e13 |
find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
|
|
|
119e13 |
%{_fixperms} %{buildroot}
|
|
|
119e13 |
|
|
|
119e13 |
%check
|
|
|
119e13 |
make test RELEASE_TESTING=1
|
|
|
119e13 |
|
|
|
119e13 |
%files
|
|
|
119e13 |
%doc Changes LICENSE README t/
|
|
|
119e13 |
%{perl_vendorlib}/Data/
|
|
|
119e13 |
%{_mandir}/man3/Data::OptList.3pm*
|
|
|
119e13 |
|
|
|
119e13 |
%changelog
|
|
|
0140dc |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.107-9
|
|
|
0140dc |
- Mass rebuild 2013-12-27
|
|
|
0140dc |
|
|
|
119e13 |
* Tue Nov 13 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.107-8
|
|
|
119e13 |
- Fix wrong script interpreter
|
|
|
119e13 |
|
|
|
119e13 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.107-7
|
|
|
119e13 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
119e13 |
|
|
|
119e13 |
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.107-6
|
|
|
119e13 |
- Perl 5.16 rebuild
|
|
|
119e13 |
|
|
|
119e13 |
* Sat Jan 21 2012 Paul Howarth <paul@city-fan.org> - 0.107-5
|
|
|
119e13 |
- obsolete/provide old -tests subpackage to support upgrades
|
|
|
119e13 |
|
|
|
119e13 |
* Fri Jan 20 2012 Paul Howarth <paul@city-fan.org> - 0.107-4
|
|
|
119e13 |
- drop -tests subpackage (general lack of interest in this), but include
|
|
|
119e13 |
them as documentation for the main package
|
|
|
119e13 |
- drop redundant %%{?perl_default_filter}
|
|
|
119e13 |
- don't use macros for commands
|
|
|
119e13 |
- can't find any dependency cycle so drop %%{?perl_bootstrap} usage
|
|
|
119e13 |
- drop ExtUtils::MakeMaker version requirement to 6.30, actual working minimum
|
|
|
119e13 |
|
|
|
119e13 |
* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.107-3
|
|
|
119e13 |
- package LICENSE file
|
|
|
119e13 |
- run test suite even when bootstrapping, as it should still pass
|
|
|
119e13 |
- run release tests too
|
|
|
119e13 |
- enhance %%description so it makes sense
|
|
|
119e13 |
- BR: perl(Test::More)
|
|
|
119e13 |
|
|
|
119e13 |
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.107-2
|
|
|
119e13 |
- Perl mass rebuild
|
|
|
119e13 |
- add perl_bootstrap macro
|
|
|
119e13 |
|
|
|
119e13 |
* Wed May 11 2011 Iain Arnell <iarnell@gmail.com> 0.107-1
|
|
|
119e13 |
- update to latest upstream version
|
|
|
119e13 |
- clean up spec for modern rpmbuild
|
|
|
119e13 |
|
|
|
119e13 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.106-4
|
|
|
119e13 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
119e13 |
|
|
|
119e13 |
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.106-3
|
|
|
119e13 |
- rebuild to fix problems with vendorarch/lib (#661697)
|
|
|
119e13 |
|
|
|
119e13 |
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.106-2
|
|
|
119e13 |
- Mass rebuild with perl-5.12.0
|
|
|
119e13 |
|
|
|
119e13 |
* Mon Mar 08 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.106-1
|
|
|
119e13 |
- update by Fedora::App::MaintainerTools 0.004
|
|
|
119e13 |
- PERL_INSTALL_ROOT => DESTDIR
|
|
|
119e13 |
- updating to latest GA CPAN version (0.106)
|
|
|
119e13 |
- added a new br on perl(ExtUtils::MakeMaker) (version 6.42)
|
|
|
119e13 |
- added a new br on perl(List::Util) (version 0)
|
|
|
119e13 |
- altered br on perl(Sub::Install) (0.92 => 0.921)
|
|
|
119e13 |
- added a new req on perl(List::Util) (version 0)
|
|
|
119e13 |
- added a new req on perl(Params::Util) (version 0.14)
|
|
|
119e13 |
- added a new req on perl(Sub::Install) (version 0.921)
|
|
|
119e13 |
|
|
|
119e13 |
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.104-4
|
|
|
119e13 |
- rebuild against perl 5.10.1
|
|
|
119e13 |
|
|
|
119e13 |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.104-3
|
|
|
119e13 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
119e13 |
|
|
|
119e13 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.104-2
|
|
|
119e13 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
119e13 |
|
|
|
119e13 |
* Wed Feb 11 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.104-1
|
|
|
119e13 |
- update to 0.104
|
|
|
119e13 |
|
|
|
119e13 |
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.103-2
|
|
|
119e13 |
- Rebuild for perl 5.10 (again)
|
|
|
119e13 |
|
|
|
119e13 |
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.103-1
|
|
|
119e13 |
- rebuild for new perl
|
|
|
119e13 |
- bump to 0.103
|
|
|
119e13 |
- fix license tag
|
|
|
119e13 |
|
|
|
119e13 |
* Thu Sep 07 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.101-2
|
|
|
119e13 |
- bump
|
|
|
119e13 |
|
|
|
119e13 |
* Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.101-1
|
|
|
119e13 |
- Specfile autogenerated by cpanspec 1.69.1.
|