Blame SPECS/perl-Data-OptList.spec

08ceaf
Name:           perl-Data-OptList
08ceaf
Summary:        Parse and validate simple name/value option pairs
08ceaf
Version:        0.107
08ceaf
Release:        9%{?dist}
08ceaf
License:        GPL+ or Artistic
08ceaf
Group:          Development/Libraries
08ceaf
URL:            http://search.cpan.org/dist/Data-OptList/
08ceaf
Source0:        http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz 
08ceaf
BuildArch:      noarch
08ceaf
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
08ceaf
BuildRequires:  perl(List::Util)
08ceaf
BuildRequires:  perl(Params::Util)
08ceaf
BuildRequires:  perl(Sub::Install) >= 0.921
08ceaf
BuildRequires:  perl(Test::More)
08ceaf
BuildRequires:  perl(Test::Pod)
08ceaf
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
08ceaf
08ceaf
# Obsolete/provide old -tests subpackage (can be removed in F19 development cycle)
08ceaf
Obsoletes:      %{name}-tests < %{version}-%{release}
08ceaf
Provides:       %{name}-tests = %{version}-%{release}
08ceaf
08ceaf
%description
08ceaf
Hashes are great for storing named data, but if you want more than one entry
08ceaf
for a name, you have to use a list of pairs. Even then, this is really boring
08ceaf
to write:
08ceaf
08ceaf
$values = [
08ceaf
    foo => undef,
08ceaf
    bar => undef,
08ceaf
    baz => undef,
08ceaf
    xyz => { ... },
08ceaf
];
08ceaf
08ceaf
With Data::OptList, you can do this instead:
08ceaf
08ceaf
$values = Data::OptList::mkopt([
08ceaf
    qw(foo bar baz),
08ceaf
    xyz => { ... },
08ceaf
]);
08ceaf
08ceaf
This works by assuming that any defined scalar is a name and any reference
08ceaf
following a name is its value.
08ceaf
08ceaf
%prep
08ceaf
%setup -q -n Data-OptList-%{version}
08ceaf
08ceaf
perl -pi -e 's|^#!perl|#!/usr/bin/perl|' t/*
08ceaf
08ceaf
%build
08ceaf
perl Makefile.PL INSTALLDIRS=vendor
08ceaf
make %{?_smp_mflags}
08ceaf
08ceaf
%install
08ceaf
make pure_install DESTDIR=%{buildroot}
08ceaf
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
08ceaf
find %{buildroot} -depth -type d -exec rmdir {} \; 2>/dev/null
08ceaf
%{_fixperms} %{buildroot}
08ceaf
08ceaf
%check
08ceaf
make test RELEASE_TESTING=1
08ceaf
08ceaf
%files
08ceaf
%doc Changes LICENSE README t/
08ceaf
%{perl_vendorlib}/Data/
08ceaf
%{_mandir}/man3/Data::OptList.3pm*
08ceaf
08ceaf
%changelog
08ceaf
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.107-9
08ceaf
- Mass rebuild 2013-12-27
08ceaf
08ceaf
* Tue Nov 13 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.107-8
08ceaf
- Fix wrong script interpreter
08ceaf
08ceaf
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.107-7
08ceaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
08ceaf
08ceaf
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.107-6
08ceaf
- Perl 5.16 rebuild
08ceaf
08ceaf
* Sat Jan 21 2012 Paul Howarth <paul@city-fan.org> - 0.107-5
08ceaf
- obsolete/provide old -tests subpackage to support upgrades
08ceaf
08ceaf
* Fri Jan 20 2012 Paul Howarth <paul@city-fan.org> - 0.107-4
08ceaf
- drop -tests subpackage (general lack of interest in this), but include
08ceaf
  them as documentation for the main package
08ceaf
- drop redundant %%{?perl_default_filter}
08ceaf
- don't use macros for commands
08ceaf
- can't find any dependency cycle so drop %%{?perl_bootstrap} usage
08ceaf
- drop ExtUtils::MakeMaker version requirement to 6.30, actual working minimum
08ceaf
08ceaf
* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.107-3
08ceaf
- package LICENSE file
08ceaf
- run test suite even when bootstrapping, as it should still pass
08ceaf
- run release tests too
08ceaf
- enhance %%description so it makes sense
08ceaf
- BR: perl(Test::More)
08ceaf
08ceaf
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.107-2
08ceaf
- Perl mass rebuild
08ceaf
- add perl_bootstrap macro
08ceaf
08ceaf
* Wed May 11 2011 Iain Arnell <iarnell@gmail.com> 0.107-1
08ceaf
- update to latest upstream version
08ceaf
- clean up spec for modern rpmbuild
08ceaf
08ceaf
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.106-4
08ceaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
08ceaf
08ceaf
* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.106-3
08ceaf
- rebuild to fix problems with vendorarch/lib (#661697)
08ceaf
08ceaf
* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.106-2
08ceaf
- Mass rebuild with perl-5.12.0
08ceaf
08ceaf
* Mon Mar 08 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.106-1
08ceaf
- update by Fedora::App::MaintainerTools 0.004
08ceaf
- PERL_INSTALL_ROOT => DESTDIR
08ceaf
- updating to latest GA CPAN version (0.106)
08ceaf
- added a new br on perl(ExtUtils::MakeMaker) (version 6.42)
08ceaf
- added a new br on perl(List::Util) (version 0)
08ceaf
- altered br on perl(Sub::Install) (0.92 => 0.921)
08ceaf
- added a new req on perl(List::Util) (version 0)
08ceaf
- added a new req on perl(Params::Util) (version 0.14)
08ceaf
- added a new req on perl(Sub::Install) (version 0.921)
08ceaf
08ceaf
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.104-4
08ceaf
- rebuild against perl 5.10.1
08ceaf
08ceaf
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.104-3
08ceaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
08ceaf
08ceaf
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.104-2
08ceaf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
08ceaf
08ceaf
* Wed Feb 11 2009 Chris Weyl <cweyl@alumni.drew.edu> 0.104-1
08ceaf
- update to 0.104
08ceaf
08ceaf
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.103-2
08ceaf
- Rebuild for perl 5.10 (again)
08ceaf
08ceaf
* Thu Jan 24 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.103-1
08ceaf
- rebuild for new perl
08ceaf
- bump to 0.103
08ceaf
- fix license tag
08ceaf
08ceaf
* Thu Sep 07 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.101-2
08ceaf
- bump
08ceaf
08ceaf
* Sat Sep 02 2006 Chris Weyl <cweyl@alumni.drew.edu> 0.101-1
08ceaf
- Specfile autogenerated by cpanspec 1.69.1.