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