fce449
# Test using JSON::MaybeXS instead of JSON::PP
fce449
%if 0%{?rhel}
fce449
%{bcond_with perl_YAML_Tiny_enables_JSON_MaybeX_test}
fce449
%else
fce449
%{bcond_without perl_YAML_Tiny_enables_JSON_MaybeX_test}
fce449
%endif
fce449
fce449
Name:           perl-YAML-Tiny
fce449
Version:        1.73
fce449
Release:        2%{?dist}
fce449
Summary:        Read/Write YAML files with as little code as possible
fce449
License:        GPL+ or Artistic
fce449
Group:          Development/Libraries
fce449
URL:            http://search.cpan.org/dist/YAML-Tiny/
fce449
Source0:        http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/YAML-Tiny-%{version}.tar.gz
fce449
BuildArch:      noarch
fce449
# Module Build
fce449
BuildRequires:  coreutils
fce449
BuildRequires:  findutils
fce449
BuildRequires:  make
fce449
BuildRequires:  perl-generators
fce449
BuildRequires:  perl-interpreter
fce449
BuildRequires:  perl(ExtUtils::MakeMaker)
fce449
# Module Runtime
fce449
BuildRequires:  perl(B)
fce449
BuildRequires:  perl(Carp)
fce449
BuildRequires:  perl(Exporter)
fce449
BuildRequires:  perl(Fcntl)
fce449
BuildRequires:  perl(Scalar::Util)
fce449
BuildRequires:  perl(strict)
fce449
# Test Suite
fce449
BuildRequires:  perl(blib)
fce449
BuildRequires:  perl(CPAN::Meta) >= 2.120900
fce449
BuildRequires:  perl(File::Basename)
fce449
BuildRequires:  perl(File::Find)
fce449
BuildRequires:  perl(File::Spec) >= 0.80
fce449
BuildRequires:  perl(File::Spec::Functions)
fce449
BuildRequires:  perl(File::Temp) >= 0.19
fce449
BuildRequires:  perl(Getopt::Long)
fce449
BuildRequires:  perl(IO::Dir)
fce449
%if %{with perl_YAML_Tiny_enables_JSON_MaybeX_test}
fce449
BuildRequires:  perl(JSON::MaybeXS) >= 1.001000
fce449
%endif
fce449
BuildRequires:  perl(JSON::PP)
fce449
BuildRequires:  perl(lib)
fce449
BuildRequires:  perl(List::Util)
fce449
BuildRequires:  perl(Test::More) >= 0.88
fce449
BuildRequires:  perl(utf8)
fce449
BuildRequires:  perl(vars)
fce449
BuildRequires:  perl(warnings)
fce449
BuildRequires:  perl(YAML)
fce449
BuildRequires:  perl(YAML::Syck)
fce449
BuildRequires:  perl(YAML::XS)
fce449
# Runtime
fce449
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
fce449
Requires:       perl(Carp)
fce449
Requires:       perl(Exporter)
fce449
Requires:       perl(Fcntl)
fce449
Requires:       perl(Scalar::Util)
fce449
fce449
%description
fce449
YAML::Tiny is a Perl class for reading and writing YAML-style files,
fce449
written with as little code as possible, reducing load time and
fce449
memory overhead.
fce449
fce449
%prep
fce449
%setup -q -n YAML-Tiny-%{version}
fce449
fce449
%build
fce449
perl Makefile.PL INSTALLDIRS=vendor
fce449
make %{?_smp_mflags}
fce449
fce449
%install
fce449
make pure_install DESTDIR=%{buildroot}
fce449
find %{buildroot} -type f -name .packlist -delete
fce449
%{_fixperms} -c %{buildroot}
fce449
fce449
%check
fce449
make test
fce449
fce449
%files
fce449
%license LICENSE
fce449
%doc Changes CONTRIBUTING README
fce449
%{perl_vendorlib}/YAML/
fce449
%{_mandir}/man3/YAML::Tiny.3*
fce449
fce449
%changelog
fce449
* Wed Jul 11 2018 Petr Pisar <ppisar@redhat.com> - 1.73-2
fce449
- Disable JSON_MaybeX_test on RHEL
fce449
fce449
* Thu Feb 22 2018 Paul Howarth <paul@city-fan.org> - 1.73-1
fce449
- Update to 1.73
fce449
  - Perform correct stripping of leading white space in literal/folded text
fce449
    blocks (GH#44, CPAN RT#56045)
fce449
  - Fix compatibility with Test::Builder 0.94 in test shim
fce449
fce449
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.70-5
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fce449
fce449
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.70-4
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fce449
fce449
* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.70-3
fce449
- Perl 5.26 rebuild
fce449
fce449
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.70-2
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fce449
fce449
* Sun Jan 22 2017 Paul Howarth <paul@city-fan.org> - 1.70-1
fce449
- Update to 1.70
fce449
  - Some errors writing to a file were incorrectly reported
fce449
- Simplify find command using -delete
fce449
fce449
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.69-3
fce449
- Perl 5.24 rebuild
fce449
fce449
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.69-2
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fce449
fce449
* Sun Jul 26 2015 Paul Howarth <paul@city-fan.org> - 1.69-1
fce449
- Update to 1.69
fce449
  - Tests no longer print to stderr unnecessarily; this makes core perl builds
fce449
    (where this distribution is included as CPAN-Meta-YAML) a little quieter
fce449
  - The Test::More dependency has been reduced to 0.88 by emulating 'subtest'
fce449
    for those tests that need it
fce449
fce449
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.67-3
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fce449
fce449
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.67-2
fce449
- Perl 5.22 rebuild
fce449
fce449
* Tue May 12 2015 Paul Howarth <paul@city-fan.org> - 1.67-1
fce449
- Update to 1.67
fce449
  - Instead of erroring on duplicate keys found in a hash (introduced in
fce449
    version 1.63), now we only warn; this fixes an issue in Strawberry Perl
fce449
    (via CPAN::Meta::YAML) when parsing a configuration file
fce449
  - Updated File::Temp test prereq to 0.19 for 'newdir'
fce449
fce449
* Tue Mar 17 2015 Paul Howarth <paul@city-fan.org> - 1.66-1
fce449
- Update to 1.66
fce449
  - Removed bundled Test::TempDir::Tiny to rely on File::Temp for temporary
fce449
    directories during testing
fce449
- Revert to ExtUtils::MakeMaker flow
fce449
fce449
* Sat Mar 14 2015 Paul Howarth <paul@city-fan.org> - 1.65-1
fce449
- Update to 1.65
fce449
  - Artifacts left behind from testing are now cleaned up (GH#34)
fce449
fce449
* Wed Oct  8 2014 Paul Howarth <paul@city-fan.org> 1.64-1
fce449
- Update to 1.64
fce449
  - Remove silencing of any errors encountered while loading Scalar::Util
fce449
    (GH#33)
fce449
  - Now using JSON::MaybeXS in tests instead of JSON.pm
fce449
- Use %%license
fce449
fce449
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> 1.63-2
fce449
- Perl 5.20 rebuild
fce449
fce449
* Thu Jun 12 2014 Paul Howarth <paul@city-fan.org> 1.63-1
fce449
- Update to 1.63
fce449
  - Incorrect error messages fixed, when $@ is clobbered when Carp wasn't
fce449
    loaded (GH#30, GH#31)
fce449
  - Now checking for, and erroring on, duplicate keys found in a hash (GH#32)
fce449
fce449
* Sat Jun  7 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> 1.62-2
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fce449
fce449
* Sun Mar 16 2014 Paul Howarth <paul@city-fan.org> 1.62-1
fce449
- Update to 1.62
fce449
  - Fix handling of trailing colon in key name (CPAN RT#92916)
fce449
fce449
* Tue Feb 25 2014 Paul Howarth <paul@city-fan.org> 1.61-1
fce449
- Update to 1.61
fce449
  - Fixed a test for VMS (CPAN RT#93297)
fce449
fce449
* Fri Feb 14 2014 Paul Howarth <paul@city-fan.org> 1.60-1
fce449
- Update to 1.60
fce449
  - Numeric values are now quoted whenever they've been used as a string,
fce449
    which fixes inconsistent behaviour seen with numeric values, due to
fce449
    differences between the XS and pure-perl variants of Data::Dumper
fce449
    (GitHub Issue #24)
fce449
  - Numeric hash keys are now always quoted
fce449
fce449
* Wed Feb  5 2014 Paul Howarth <paul@city-fan.org> 1.58-1
fce449
- Update to 1.58
fce449
  - 1.57 omitted a change entry for the following change:
fce449
  Incompatible change:
fce449
  - Previously, YAML::Tiny was sloppy about file encodings; it is now strict
fce449
  - The 'read' method and 'LoadFile' function expect UTF-8 encoded files
fce449
  - The 'write' method and 'DumpFile' function produce UTF-8 encoded files
fce449
  - The 'read_string' and 'write_string' methods and the 'Load' and 'Dump'
fce449
    functions expect or generate (decoded) character data
fce449
fce449
* Fri Jan 31 2014 Paul Howarth <paul@city-fan.org> 1.57-1
fce449
- Update to 1.57
fce449
  Incompatible change:
fce449
  - Previously, some errors would throw exceptions and some would return the
fce449
    error condition in $YAML::Tiny::errstr, but now all errors throw
fce449
    exceptions; use of $errstr and the errstr method are deprecated
fce449
  Fixed:
fce449
  - Fixed write method to encode YAML file with UTF-8
fce449
  - Improved SYNOPSIS and documentation of new
fce449
  Testing:
fce449
  - Tests have been cleaned up and reorganized
fce449
  - Test coverage has been significantly improved
fce449
- Package docs CONTRIBUTING and README.md
fce449
- Update dependencies as needed
fce449
fce449
* Wed Sep 25 2013 Paul Howarth <paul@city-fan.org> 1.56-1
fce449
- Update to 1.56
fce449
  - read_string documentation error fixed (CPAN RT#74409)
fce449
  - Re-release with fixed compile test
fce449
- Go back to Module::Build::Tiny flow
fce449
fce449
* Thu Sep 19 2013 Paul Howarth <paul@city-fan.org> 1.55-1
fce449
- Update to 1.55
fce449
  - Revert to ExtUtils::MakeMaker flow
fce449
- Update buildreqs as needed
fce449
fce449
* Thu Aug 22 2013 Paul Howarth <paul@city-fan.org> 1.54-1
fce449
- Update to 1.54
fce449
  - Convert to Dist::Zilla
fce449
  - Updated format to conform to CPAN::Changes::Spec
fce449
- Upstream shipping README again
fce449
- Switch to Module::Build::Tiny flow
fce449
- Classify buildreqs by usage
fce449
fce449
* Wed Aug 21 2013 Paul Howarth <paul@city-fan.org> 1.53-1
fce449
- Update to 1.53
fce449
  - Updated repository metadata to reflect move to github
fce449
- This release by ETHER -> update source URL
fce449
- Upstream no longer shipping README
fce449
- Don't need to remove empty directories from the buildroot
fce449
- Make %%files list more explicit
fce449
fce449
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.51-8
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fce449
fce449
* Sat Jul 20 2013 Petr Pisar <ppisar@redhat.com> - 1.51-7
fce449
- Perl 5.18 rebuild
fce449
fce449
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.51-6
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fce449
fce449
* Tue Aug 21 2012 Jitka Plesnikova <jplesnik@redhat.com> - 1.51-5
fce449
- Add perl(Carp) to requires.
fce449
fce449
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.51-4
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fce449
fce449
* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 1.51-3
fce449
- Perl 5.16 rebuild
fce449
fce449
* Mon Jun 04 2012 Petr Pisar <ppisar@redhat.com> - 1.51-2
fce449
- The POD tests do not run by default
fce449
fce449
* Wed Mar 14 2012 Petr Ĺ abata <contyk@redhat.com> - 1.51-1
fce449
- 1.51 bump
fce449
- Remove command macros
fce449
fce449
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.50-5
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fce449
fce449
* Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.50-4
fce449
- Perl mass rebuild
fce449
fce449
* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 1.50-3
fce449
- Perl mass rebuild
fce449
fce449
* Thu Jul 14 2011 Iain Arnell <iarnell@gmail.com> 1.50-2
fce449
- drop Test::MinimumVersion BR to avoid circular build deps
fce449
fce449
* Mon Jun 27 2011 Petr Sabata <contyk@redhat.com> - 1.50-1
fce449
- 1.50 bump
fce449
- Cleaning the spec file (I assume pre-EPEL6 compatibility is no longer
fce449
  essential here)
fce449
- Adding Exporter and Scalar::Util (optional but preferred) to BR/Rs
fce449
fce449
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.46-2
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fce449
fce449
* Sat Dec 18 2010 Steven Pritchard <steve@kspei.com> 1.46-1
fce449
- Update to 1.46.
fce449
fce449
* Tue Dec 07 2010 Steven Pritchard <steve@kspei.com> 1.44-1
fce449
- Update to 1.44.
fce449
fce449
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.40-3
fce449
- Mass rebuild with perl-5.12.0
fce449
fce449
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.40-2
fce449
- rebuild against perl 5.10.1
fce449
fce449
* Sun Sep 27 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.40-1
fce449
- auto-update to 1.40 (by cpan-spec-update 0.01)
fce449
fce449
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.39-2
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fce449
fce449
* Sat May 23 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.39-1
fce449
- auto-update to 1.39 (by cpan-spec-update 0.01)
fce449
- added a new br on perl(File::Spec) (version 0.80)
fce449
fce449
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.36-2
fce449
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fce449
fce449
* Sat Jan 17 2009 Steven Pritchard <steve@kspei.com> 1.36-1
fce449
- Update to 1.36.
fce449
- BR Test::More.
fce449
fce449
* Fri May 16 2008 Steven Pritchard <steve@kspei.com> 1.32-1
fce449
- Update to 1.32.
fce449
fce449
* Fri Feb  8 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.25-2
fce449
- rebuild for new perl
fce449
fce449
* Mon Jan 28 2008 Steven Pritchard <steve@kspei.com> 1.25-1
fce449
- Update to 1.25.
fce449
fce449
* Tue Dec 11 2007 Steven Pritchard <steve@kspei.com> 1.21-1
fce449
- Update to 1.21.
fce449
- Update License tag.
fce449
- BR Test::MinimumVersion.
fce449
fce449
* Thu Aug 23 2007 Steven Pritchard <steve@kspei.com> 1.14-1
fce449
- Update to 1.14.
fce449
fce449
* Fri Jul 13 2007 Steven Pritchard <steve@kspei.com> 1.13-1
fce449
- Update to 1.13.
fce449
fce449
* Fri Jun 08 2007 Steven Pritchard <steve@kspei.com> 1.12-1
fce449
- Update to 1.12.
fce449
fce449
* Mon May 28 2007 Steven Pritchard <steve@kspei.com> 1.09-1
fce449
- Update to 1.09.
fce449
fce449
* Sat May 19 2007 Steven Pritchard <steve@kspei.com> 1.08-1
fce449
- Update to 1.08.
fce449
- Update description.
fce449
fce449
* Tue Mar 13 2007 Steven Pritchard <steve@kspei.com> 1.04-1
fce449
- Specfile autogenerated by cpanspec 1.70.
fce449
- Drop redundant perl build dependency.
fce449
- BR YAML, YAML::Syck, and Test::Pod for better test coverage.