2006-09-07 16:28:20 +00:00
|
|
|
Name: perl-Data-OptList
|
|
|
|
Summary: Parse and validate simple name/value option pairs
|
2011-05-11 16:02:12 +00:00
|
|
|
Version: 0.107
|
2012-01-11 12:15:14 +00:00
|
|
|
Release: 3%{?dist}
|
2008-01-25 00:34:21 +00:00
|
|
|
License: GPL+ or Artistic
|
2006-09-07 16:28:20 +00:00
|
|
|
Group: Development/Libraries
|
2010-03-08 08:24:17 +00:00
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz
|
2006-09-07 16:28:20 +00:00
|
|
|
URL: http://search.cpan.org/dist/Data-OptList/
|
2010-03-08 08:24:17 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
2006-09-07 16:28:20 +00:00
|
|
|
BuildArch: noarch
|
2010-03-08 08:24:17 +00:00
|
|
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
|
|
BuildRequires: perl(List::Util)
|
2011-05-11 16:02:12 +00:00
|
|
|
BuildRequires: perl(Params::Util)
|
2010-03-08 08:24:17 +00:00
|
|
|
BuildRequires: perl(Sub::Install) >= 0.921
|
2012-01-11 12:15:14 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
2011-06-28 17:45:15 +00:00
|
|
|
%if !%{defined perl_bootstrap}
|
2010-03-08 08:24:17 +00:00
|
|
|
BuildRequires: perl(Test::Pod)
|
2011-06-28 17:45:15 +00:00
|
|
|
%endif
|
2010-03-08 08:24:17 +00:00
|
|
|
|
|
|
|
%{?perl_default_filter}
|
|
|
|
%{?perl_default_subpackage_tests}
|
2006-09-07 16:28:20 +00:00
|
|
|
|
|
|
|
%description
|
2012-01-11 12:15:14 +00:00
|
|
|
Hashes are great for storing named data, but if you want more than one entry
|
|
|
|
for a name, you have to use a list of pairs. Even then, this is really boring
|
|
|
|
to write:
|
|
|
|
|
|
|
|
$values = [
|
|
|
|
foo => undef,
|
|
|
|
bar => undef,
|
|
|
|
baz => undef,
|
|
|
|
xyz => { ... },
|
|
|
|
];
|
|
|
|
|
|
|
|
With Data::OptList, you can do this instead:
|
|
|
|
|
|
|
|
$values = Data::OptList::mkopt([
|
|
|
|
qw(foo bar baz),
|
|
|
|
xyz => { ... },
|
|
|
|
]);
|
|
|
|
|
|
|
|
This works by assuming that any defined scalar is a name and any reference
|
|
|
|
following a name is its value.
|
2006-09-07 16:28:20 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n Data-OptList-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2010-03-08 08:24:17 +00:00
|
|
|
make pure_install DESTDIR=%{buildroot}
|
2006-09-07 16:28:20 +00:00
|
|
|
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
2012-01-11 12:15:14 +00:00
|
|
|
%{_fixperms} %{buildroot}
|
2006-09-07 16:28:20 +00:00
|
|
|
|
|
|
|
%check
|
2012-01-11 12:15:14 +00:00
|
|
|
make test RELEASE_TESTING=1
|
2006-09-07 16:28:20 +00:00
|
|
|
|
|
|
|
%files
|
2012-01-11 12:15:14 +00:00
|
|
|
%doc Changes LICENSE README
|
|
|
|
%{perl_vendorlib}/Data/
|
|
|
|
%{_mandir}/man3/Data::OptList.3pm*
|
2006-09-07 16:28:20 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-01-11 12:15:14 +00:00
|
|
|
* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.107-3
|
|
|
|
- package LICENSE file
|
|
|
|
- run test suite even when bootstrapping, as it should still pass
|
|
|
|
- run release tests too
|
|
|
|
- enhance %%description so it makes sense
|
|
|
|
- BR: perl(Test::More)
|
|
|
|
|
2011-06-28 17:45:15 +00:00
|
|
|
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.107-2
|
|
|
|
- Perl mass rebuild
|
|
|
|
- add perl_bootstrap macro
|
|
|
|
|
2011-05-11 16:02:12 +00:00
|
|
|
* Wed May 11 2011 Iain Arnell <iarnell@gmail.com> 0.107-1
|
|
|
|
- update to latest upstream version
|
|
|
|
- clean up spec for modern rpmbuild
|
|
|
|
|
2011-02-08 20:39:59 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.106-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-12-16 02:28:41 +00:00
|
|
|
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.106-3
|
|
|
|
- 661697 rebuild for fixing problems with vendorach/lib
|
|
|
|
|
2010-04-30 13:36:36 +00:00
|
|
|
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.106-2
|
|
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
|
2010-03-08 08:24:17 +00:00
|
|
|
* Mon Mar 08 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.106-1
|
|
|
|
- update by Fedora::App::MaintainerTools 0.004
|
|
|
|
- PERL_INSTALL_ROOT => DESTDIR
|
|
|
|
- updating to latest GA CPAN version (0.106)
|
|
|
|
- added a new br on perl(ExtUtils::MakeMaker) (version 6.42)
|
|
|
|
- added a new br on perl(List::Util) (version 0)
|
|
|
|
- altered br on perl(Sub::Install) (0.92 => 0.921)
|
|
|
|
- added a new req on perl(List::Util) (version 0)
|
|
|
|
- added a new req on perl(Params::Util) (version 0.14)
|
|
|
|
- added a new req on perl(Sub::Install) (version 0.921)
|
|
|
|
|
2009-12-07 14:21:28 +00:00
|
|
|
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.104-4
|
|
|
|
- rebuild against perl 5.10.1
|
|
|
|
|
2009-07-26 05:29:42 +00:00
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.104-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 14:30:44 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.104-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-11 16:07:12 +00:00
|
|
|
* Wed Feb 11 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.104-1
|
|
|
|
- update to 0.104
|
|
|
|
|
2008-02-28 13:12:45 +00:00
|
|
|
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.103-2
|
|
|
|
- Rebuild for perl 5.10 (again)
|
|
|
|
|
2008-01-25 00:34:21 +00:00
|
|
|
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.103-1
|
|
|
|
- rebuild for new perl
|
|
|
|
- bump to 0.103
|
|
|
|
- fix license tag
|
|
|
|
|
2006-09-07 16:28:46 +00:00
|
|
|
* Thu Sep 07 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.101-2
|
|
|
|
- bump
|
|
|
|
|
2006-09-07 16:28:20 +00:00
|
|
|
* Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.101-1
|
|
|
|
- Specfile autogenerated by cpanspec 1.69.1.
|