Blame SPECS/perl-Data-OptList.spec

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