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