|
|
238f9b |
%if ! (0%{?rhel})
|
|
|
238f9b |
# Run extra test
|
|
|
238f9b |
%bcond_without perl_Data_OptList_enables_extra_test
|
|
|
238f9b |
# Run optional test
|
|
|
238f9b |
%bcond_without perl_Data_OptList_enables_optional_test
|
|
|
238f9b |
%else
|
|
|
238f9b |
%bcond_with perl_Data_OptList_enables_extra_test
|
|
|
238f9b |
%bcond_with perl_Data_OptList_enables_optional_test
|
|
|
238f9b |
%endif
|
|
|
238f9b |
|
|
|
238f9b |
Name: perl-Data-OptList
|
|
|
238f9b |
Version: 0.110
|
|
|
238f9b |
Release: 6%{?dist}
|
|
|
238f9b |
Summary: Parse and validate simple name/value option pairs
|
|
|
238f9b |
License: GPL+ or Artistic
|
|
|
238f9b |
Group: Development/Libraries
|
|
|
238f9b |
URL: http://search.cpan.org/dist/Data-OptList/
|
|
|
238f9b |
Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz
|
|
|
238f9b |
BuildArch: noarch
|
|
|
238f9b |
# Module Build
|
|
|
238f9b |
BuildRequires: coreutils
|
|
|
238f9b |
BuildRequires: findutils
|
|
|
238f9b |
BuildRequires: make
|
|
|
238f9b |
BuildRequires: perl-interpreter
|
|
|
238f9b |
BuildRequires: perl-generators
|
|
|
238f9b |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
238f9b |
# Module Runtime
|
|
|
238f9b |
BuildRequires: perl(List::Util)
|
|
|
238f9b |
BuildRequires: perl(Params::Util)
|
|
|
238f9b |
BuildRequires: perl(strict)
|
|
|
238f9b |
BuildRequires: perl(Sub::Install) >= 0.921
|
|
|
238f9b |
BuildRequires: perl(warnings)
|
|
|
238f9b |
# Test Suite
|
|
|
238f9b |
BuildRequires: perl(File::Spec)
|
|
|
238f9b |
BuildRequires: perl(Test::More) >= 0.88
|
|
|
238f9b |
%if %{with perl_Data_OptList_enables_optional_test}
|
|
|
238f9b |
# Optional Tests
|
|
|
238f9b |
BuildRequires: perl(CPAN::Meta) >= 2.120900
|
|
|
238f9b |
BuildRequires: perl(CPAN::Meta::Prereqs)
|
|
|
238f9b |
%endif
|
|
|
238f9b |
%if %{with perl_Data_OptList_enables_extra_test}
|
|
|
238f9b |
# Extra Tests
|
|
|
238f9b |
BuildRequires: perl(Test::Pod) >= 1.41
|
|
|
238f9b |
%endif
|
|
|
238f9b |
# Dependencies
|
|
|
238f9b |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
238f9b |
|
|
|
238f9b |
%description
|
|
|
238f9b |
Hashes are great for storing named data, but if you want more than one entry
|
|
|
238f9b |
for a name, you have to use a list of pairs. Even then, this is really boring
|
|
|
238f9b |
to write:
|
|
|
238f9b |
|
|
|
238f9b |
$values = [
|
|
|
238f9b |
foo => undef,
|
|
|
238f9b |
bar => undef,
|
|
|
238f9b |
baz => undef,
|
|
|
238f9b |
xyz => { ... },
|
|
|
238f9b |
];
|
|
|
238f9b |
|
|
|
238f9b |
With Data::OptList, you can do this instead:
|
|
|
238f9b |
|
|
|
238f9b |
$values = Data::OptList::mkopt([
|
|
|
238f9b |
qw(foo bar baz),
|
|
|
238f9b |
xyz => { ... },
|
|
|
238f9b |
]);
|
|
|
238f9b |
|
|
|
238f9b |
This works by assuming that any defined scalar is a name and any reference
|
|
|
238f9b |
following a name is its value.
|
|
|
238f9b |
|
|
|
238f9b |
%prep
|
|
|
238f9b |
%setup -q -n Data-OptList-%{version}
|
|
|
238f9b |
|
|
|
238f9b |
# Fix shellbangs in tests
|
|
|
238f9b |
for F in t/*; do
|
|
|
238f9b |
perl -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(q{$F})"
|
|
|
238f9b |
done
|
|
|
238f9b |
|
|
|
238f9b |
%build
|
|
|
238f9b |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
238f9b |
make %{?_smp_mflags}
|
|
|
238f9b |
|
|
|
238f9b |
%install
|
|
|
238f9b |
make pure_install DESTDIR=%{buildroot}
|
|
|
238f9b |
find %{buildroot} -type f -name .packlist -delete
|
|
|
238f9b |
%{_fixperms} %{buildroot}
|
|
|
238f9b |
|
|
|
238f9b |
%check
|
|
|
238f9b |
make test
|
|
|
238f9b |
%if %{with perl_Data_OptList_enables_extra_test}
|
|
|
238f9b |
make test TEST_FILES="$(echo $(find xt/ -name '*.t'))"
|
|
|
238f9b |
%endif
|
|
|
238f9b |
|
|
|
238f9b |
%files
|
|
|
238f9b |
%license LICENSE
|
|
|
238f9b |
%doc Changes README t/
|
|
|
238f9b |
%{perl_vendorlib}/Data/
|
|
|
238f9b |
%{_mandir}/man3/Data::OptList.3*
|
|
|
238f9b |
|
|
|
238f9b |
%changelog
|
|
|
238f9b |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.110-6
|
|
|
238f9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.110-5
|
|
|
238f9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.110-4
|
|
|
238f9b |
- Perl 5.26 rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.110-3
|
|
|
238f9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.110-2
|
|
|
238f9b |
- Perl 5.24 rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Fri Mar 25 2016 Paul Howarth <paul@city-fan.org> - 0.110-1
|
|
|
238f9b |
- Update to 0.110
|
|
|
238f9b |
- Major optimization to mkopt
|
|
|
238f9b |
- Use %%license
|
|
|
238f9b |
- Simplify find expression using -delete
|
|
|
238f9b |
|
|
|
238f9b |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.109-7
|
|
|
238f9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.109-6
|
|
|
238f9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.109-5
|
|
|
238f9b |
- Perl 5.22 rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Thu Jan 15 2015 Petr Pisar <ppisar@redhat.com> - 0.109-4
|
|
|
238f9b |
- Do not hard-code interpreter name
|
|
|
238f9b |
- Specify all dependencies
|
|
|
238f9b |
|
|
|
238f9b |
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.109-3
|
|
|
238f9b |
- Perl 5.20 rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.109-2
|
|
|
238f9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Fri Dec 13 2013 Paul Howarth <paul@city-fan.org> - 0.109-1
|
|
|
238f9b |
- Update to 0.109:
|
|
|
238f9b |
- Update bugtracker and repo links
|
|
|
238f9b |
|
|
|
238f9b |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.108-3
|
|
|
238f9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 0.108-2
|
|
|
238f9b |
- Perl 5.18 rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Sat Jul 6 2013 Paul Howarth <paul@city-fan.org> - 0.108-1
|
|
|
238f9b |
- Update to 0.108:
|
|
|
238f9b |
- Repackage, new bug tracker
|
|
|
238f9b |
- Explicitly run the extra tests
|
|
|
238f9b |
- Don't need to remove empty directories from the buildroot
|
|
|
238f9b |
- Drop obsoletes/provides for old -tests sub-package
|
|
|
238f9b |
|
|
|
238f9b |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.107-9
|
|
|
238f9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Tue Nov 13 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.107-8
|
|
|
238f9b |
- Fix wrong script interpreter
|
|
|
238f9b |
|
|
|
238f9b |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.107-7
|
|
|
238f9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.107-6
|
|
|
238f9b |
- Perl 5.16 rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Sat Jan 21 2012 Paul Howarth <paul@city-fan.org> - 0.107-5
|
|
|
238f9b |
- obsolete/provide old -tests subpackage to support upgrades
|
|
|
238f9b |
|
|
|
238f9b |
* Fri Jan 20 2012 Paul Howarth <paul@city-fan.org> - 0.107-4
|
|
|
238f9b |
- drop -tests subpackage (general lack of interest in this), but include
|
|
|
238f9b |
them as documentation for the main package
|
|
|
238f9b |
- drop redundant %%{?perl_default_filter}
|
|
|
238f9b |
- don't use macros for commands
|
|
|
238f9b |
- can't find any dependency cycle so drop %%{?perl_bootstrap} usage
|
|
|
238f9b |
- drop ExtUtils::MakeMaker version requirement to 6.30, actual working minimum
|
|
|
238f9b |
|
|
|
238f9b |
* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.107-3
|
|
|
238f9b |
- package LICENSE file
|
|
|
238f9b |
- run test suite even when bootstrapping, as it should still pass
|
|
|
238f9b |
- run release tests too
|
|
|
238f9b |
- enhance %%description so it makes sense
|
|
|
238f9b |
- BR: perl(Test::More)
|
|
|
238f9b |
|
|
|
238f9b |
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.107-2
|
|
|
238f9b |
- Perl mass rebuild
|
|
|
238f9b |
- add perl_bootstrap macro
|
|
|
238f9b |
|
|
|
238f9b |
* Wed May 11 2011 Iain Arnell <iarnell@gmail.com> 0.107-1
|
|
|
238f9b |
- update to latest upstream version
|
|
|
238f9b |
- clean up spec for modern rpmbuild
|
|
|
238f9b |
|
|
|
238f9b |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.106-4
|
|
|
238f9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.106-3
|
|
|
238f9b |
- rebuild to fix problems with vendorarch/lib (#661697)
|
|
|
238f9b |
|
|
|
238f9b |
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.106-2
|
|
|
238f9b |
- Mass rebuild with perl-5.12.0
|
|
|
238f9b |
|
|
|
238f9b |
* Mon Mar 08 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.106-1
|
|
|
238f9b |
- update by Fedora::App::MaintainerTools 0.004
|
|
|
238f9b |
- PERL_INSTALL_ROOT => DESTDIR
|
|
|
238f9b |
- updating to latest GA CPAN version (0.106)
|
|
|
238f9b |
- added a new br on perl(ExtUtils::MakeMaker) (version 6.42)
|
|
|
238f9b |
- added a new br on perl(List::Util) (version 0)
|
|
|
238f9b |
- altered br on perl(Sub::Install) (0.92 => 0.921)
|
|
|
238f9b |
- added a new req on perl(List::Util) (version 0)
|
|
|
238f9b |
- added a new req on perl(Params::Util) (version 0.14)
|
|
|
238f9b |
- added a new req on perl(Sub::Install) (version 0.921)
|
|
|
238f9b |
|
|
|
238f9b |
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.104-4
|
|
|
238f9b |
- rebuild against perl 5.10.1
|
|
|
238f9b |
|
|
|
238f9b |
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.104-3
|
|
|
238f9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.104-2
|
|
|
238f9b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
238f9b |
|
|
|
238f9b |
* Wed Feb 11 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.104-1
|
|
|
238f9b |
- update to 0.104
|
|
|
238f9b |
|
|
|
238f9b |
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.103-2
|
|
|
238f9b |
- Rebuild for perl 5.10 (again)
|
|
|
238f9b |
|
|
|
238f9b |
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.103-1
|
|
|
238f9b |
- rebuild for new perl
|
|
|
238f9b |
- bump to 0.103
|
|
|
238f9b |
- fix license tag
|
|
|
238f9b |
|
|
|
238f9b |
* Thu Sep 07 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.101-2
|
|
|
238f9b |
- bump
|
|
|
238f9b |
|
|
|
238f9b |
* Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.101-1
|
|
|
238f9b |
- Specfile autogenerated by cpanspec 1.69.1.
|