Blame SPECS/perl-Data-OptList.spec

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