diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..50d27d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Data-OptList-0.107.tar.gz diff --git a/.perl-Data-OptList.metadata b/.perl-Data-OptList.metadata new file mode 100644 index 0000000..daac0cc --- /dev/null +++ b/.perl-Data-OptList.metadata @@ -0,0 +1 @@ +b802570a41b9393120e6a2d93971c3e3a6293ee5 SOURCES/Data-OptList-0.107.tar.gz diff --git a/SPECS/perl-Data-OptList.spec b/SPECS/perl-Data-OptList.spec new file mode 100644 index 0000000..e33e7cb --- /dev/null +++ b/SPECS/perl-Data-OptList.spec @@ -0,0 +1,150 @@ +Name: perl-Data-OptList +Summary: Parse and validate simple name/value option pairs +Version: 0.107 +Release: 9%{?dist} +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Data-OptList/ +Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 +BuildRequires: perl(List::Util) +BuildRequires: perl(Params::Util) +BuildRequires: perl(Sub::Install) >= 0.921 +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) + +# Obsolete/provide old -tests subpackage (can be removed in F19 development cycle) +Obsoletes: %{name}-tests < %{version}-%{release} +Provides: %{name}-tests = %{version}-%{release} + +%description +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. + +%prep +%setup -q -n Data-OptList-%{version} + +perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/* + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null +%{_fixperms} %{buildroot} + +%check +make test RELEASE_TESTING=1 + +%files +%doc Changes LICENSE README t/ +%{perl_vendorlib}/Data/ +%{_mandir}/man3/Data::OptList.3pm* + +%changelog +* Fri Dec 27 2013 Daniel Mach - 0.107-9 +- Mass rebuild 2013-12-27 + +* Tue Nov 13 2012 Jitka Plesnikova - 0.107-8 +- Fix wrong script interpreter + +* Fri Jul 20 2012 Fedora Release Engineering - 0.107-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jun 11 2012 Petr Pisar - 0.107-6 +- Perl 5.16 rebuild + +* Sat Jan 21 2012 Paul Howarth - 0.107-5 +- obsolete/provide old -tests subpackage to support upgrades + +* Fri Jan 20 2012 Paul Howarth - 0.107-4 +- drop -tests subpackage (general lack of interest in this), but include + them as documentation for the main package +- drop redundant %%{?perl_default_filter} +- don't use macros for commands +- can't find any dependency cycle so drop %%{?perl_bootstrap} usage +- drop ExtUtils::MakeMaker version requirement to 6.30, actual working minimum + +* Wed Jan 11 2012 Paul Howarth - 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) + +* Tue Jun 28 2011 Marcela Mašláňová - 0.107-2 +- Perl mass rebuild +- add perl_bootstrap macro + +* Wed May 11 2011 Iain Arnell 0.107-1 +- update to latest upstream version +- clean up spec for modern rpmbuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.106-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Thu Dec 16 2010 Marcela Maslanova - 0.106-3 +- rebuild to fix problems with vendorarch/lib (#661697) + +* Fri Apr 30 2010 Marcela Maslanova - 0.106-2 +- Mass rebuild with perl-5.12.0 + +* Mon Mar 08 2010 Chris Weyl 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) + +* Mon Dec 7 2009 Stepan Kasal - 0.104-4 +- rebuild against perl 5.10.1 + +* Sat Jul 25 2009 Fedora Release Engineering - 0.104-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 0.104-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 11 2009 Chris Weyl 0.104-1 +- update to 0.104 + +* Wed Feb 27 2008 Tom "spot" Callaway - 0.103-2 +- Rebuild for perl 5.10 (again) + +* Thu Jan 24 2008 Tom "spot" Callaway 0.103-1 +- rebuild for new perl +- bump to 0.103 +- fix license tag + +* Thu Sep 07 2006 Chris Weyl 0.101-2 +- bump + +* Sat Sep 02 2006 Chris Weyl 0.101-1 +- Specfile autogenerated by cpanspec 1.69.1.