Blame SPECS/perl-YAML-LibYAML.spec

b2944c
# Run optional test
b2944c
%if ! 0%{?rhel}
b2944c
%bcond_without perl_YAML_LibYAML_enables_optional_test
b2944c
%else
b2944c
%bcond_with perl_YAML_LibYAML_enables_optional_test
b2944c
%endif
b2944c
b2944c
Name:           perl-YAML-LibYAML
b2944c
Epoch:          1
b2944c
Version:        0.70
b2944c
Release:        1%{?dist}
b2944c
Summary:        Perl YAML Serialization using XS and libyaml
b2944c
License:        GPL+ or Artistic
b2944c
URL:            https://metacpan.org/release/YAML-LibYAML
b2944c
Source0:        https://cpan.metacpan.org/authors/id/T/TI/TINITA/YAML-LibYAML-%{version}.tar.gz
b2944c
b2944c
# Build
b2944c
BuildRequires:  coreutils
b2944c
BuildRequires:  findutils
b2944c
BuildRequires:  gcc
b2944c
BuildRequires:  make
b2944c
BuildRequires:  perl-devel
b2944c
BuildRequires:  perl-generators
b2944c
BuildRequires:  perl-interpreter
b2944c
BuildRequires:  perl(Config)
b2944c
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
b2944c
b2944c
# Module
b2944c
BuildRequires:  perl(B::Deparse)
b2944c
BuildRequires:  perl(base)
b2944c
BuildRequires:  perl(constant)
b2944c
BuildRequires:  perl(Exporter)
b2944c
BuildRequires:  perl(Scalar::Util)
b2944c
BuildRequires:  perl(strict)
b2944c
BuildRequires:  perl(warnings)
b2944c
BuildRequires:  perl(XSLoader)
b2944c
b2944c
# Tests
b2944c
BuildRequires:  perl(B)
b2944c
BuildRequires:  perl(blib)
b2944c
BuildRequires:  perl(Carp)
b2944c
BuildRequires:  perl(Data::Dumper)
b2944c
BuildRequires:  perl(Devel::Peek)
b2944c
BuildRequires:  perl(Encode)
b2944c
BuildRequires:  perl(File::Find)
b2944c
BuildRequires:  perl(File::Path)
b2944c
BuildRequires:  perl(Filter::Util::Call)
b2944c
BuildRequires:  perl(FindBin)
b2944c
BuildRequires:  perl(IO::File)
b2944c
BuildRequires:  perl(IO::Pipe)
b2944c
BuildRequires:  perl(lib)
b2944c
BuildRequires:  perl(Test::Builder)
b2944c
BuildRequires:  perl(Test::More) >= 0.88
b2944c
BuildRequires:  perl(Tie::Array)
b2944c
BuildRequires:  perl(Tie::Hash)
b2944c
BuildRequires:  perl(utf8)
b2944c
b2944c
%if %{with perl_YAML_LibYAML_enables_optional_test}
b2944c
# Optional Tests
b2944c
BuildRequires:  perl(Path::Class)
b2944c
%endif
b2944c
b2944c
# Dependencies
b2944c
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
b2944c
Requires:       perl(B::Deparse)
b2944c
b2944c
# libyaml is tweaked and bundled
b2944c
# https://github.com/ingydotnet/yaml-libyaml-pm/issues/49
b2944c
# version number determined by comparing commits in upstream repo:
b2944c
# https://bitbucket.org/xi/libyaml/commits/branch/default
b2944c
Provides:       bundled(libyaml) = 0.1.7
b2944c
b2944c
# Avoid provides for perl shared objects
b2944c
%{?perl_default_filter}
b2944c
b2944c
%description
b2944c
Kirill Siminov's "libyaml" is arguably the best YAML implementation. The C
b2944c
library is written precisely to the YAML 1.1 specification. It was originally
b2944c
bound to Python and was later bound to Ruby.
b2944c
b2944c
%prep
b2944c
%setup -q -n YAML-LibYAML-%{version}
b2944c
b2944c
%build
b2944c
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1
b2944c
make %{?_smp_mflags}
b2944c
b2944c
%install
b2944c
make pure_install DESTDIR=%{buildroot}
b2944c
find %{buildroot} -type f -name '*.bs' -empty -delete
b2944c
%{_fixperms} -c %{buildroot}
b2944c
b2944c
%check
b2944c
make test
b2944c
b2944c
%files
b2944c
%license LICENSE
b2944c
%doc Changes CONTRIBUTING README
b2944c
%{perl_vendorarch}/auto/YAML/
b2944c
%{perl_vendorarch}/YAML/
b2944c
%{_mandir}/man3/YAML::LibYAML.3*
b2944c
%{_mandir}/man3/YAML::XS.3*
b2944c
%{_mandir}/man3/YAML::XS::LibYAML.3*
b2944c
b2944c
%changelog
b2944c
* Sun Jun 10 2018 Paul Howarth <paul@city-fan.org> - 1:0.70-1
b2944c
- Update to 0.70
b2944c
  - Fix format specifier/argument mismatch (GH#79)
b2944c
  - Travis CI: Test on Perl 5.26 (GH#80)
b2944c
  - Fix a C90-compatibility issue (GH#81)
b2944c
- Switch upstream from search.cpan.org to metacpan.org
b2944c
b2944c
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.69-2
b2944c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b2944c
b2944c
* Thu Dec 28 2017 Paul Howarth <paul@city-fan.org> - 1:0.69-1
b2944c
- Update to 0.69
b2944c
  - Security fix: Add $LoadBlessed option to turn on/off loading objects
b2944c
    (GH#73, GH#74)
b2944c
b2944c
* Tue Dec 19 2017 Paul Howarth <paul@city-fan.org> - 1:0.68-1
b2944c
- Update to 0.68
b2944c
  - Fix regex roundtrip (GH#69, GH#70)
b2944c
  - Fix loading of many regexes (GH#64, GH#71)
b2944c
b2944c
* Thu Nov 16 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.67-1
b2944c
- Update to 0.67
b2944c
  - Support standard tags !!str, !!map and !!seq instead of dying (GH#67)
b2944c
  - Support JSON::PP::Boolean and boolean.pm via $YAML::XS::Boolean (GH#66)
b2944c
b2944c
* Fri Aug 18 2017 Paul Howarth <paul@city-fan.org> - 1:0.66-1
b2944c
- Update to 0.66
b2944c
  - Dump() was modifying original data, adding a PV to numbers (GH#32, GH#55)
b2944c
b2944c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.65-4
b2944c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
b2944c
b2944c
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.65-3
b2944c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b2944c
b2944c
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1:0.65-2
b2944c
- Perl 5.26 rebuild
b2944c
b2944c
* Fri May 19 2017 Paul Howarth <paul@city-fan.org> - 1:0.65-1
b2944c
- Update to 0.65
b2944c
  - Prevent warning about unused variables (GH#59)
b2944c
  - Clarify documentation about exported functions
b2944c
b2944c
* Sun Apr  9 2017 Paul Howarth <paul@city-fan.org> - 1:0.64-1
b2944c
- Update to 0.64
b2944c
  - use lib FindBin::Bin in tests, preparing for perl 5.26 where '.' gets
b2944c
    removed from @INC (GH#54)
b2944c
  - Use the latest libyaml sources
b2944c
  - Lazy load B::Deparse for faster startup time (GH#52, GH#53)
b2944c
- Drop redundant Group: tag
b2944c
- Add provide for bundled(libyaml)
b2944c
b2944c
* Tue Mar  7 2017 Paul Howarth <paul@city-fan.org> - 1:0.63-2
b2944c
- Revert to 0.63; the 0.71 release was unauthorized
b2944c
b2944c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.71-2
b2944c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b2944c
b2944c
* Thu Sep  8 2016 Paul Howarth <paul@city-fan.org> - 0.71-1
b2944c
- Update to 0.71
b2944c
  - Merge with libyaml 0.1.7 upstream
b2944c
  - cperl fixes for fake_signatures
b2944c
  - libyaml fix C++-compat errors
b2944c
  - Improve Makefile for Win32
b2944c
  - Improve ppport_sort.h
b2944c
  - Implement new NonStrict mode (for perl5 compat)
b2944c
  - libyaml reformat, minor optimizations, fix warnings
b2944c
  - Update documentation
b2944c
  - Use error codes, return undef on error
b2944c
  - Abstract the loader functionality to load_impl(), dump_impl() not yet
b2944c
  - Rearrange static funcs (not decl in header)
b2944c
  - DumpFile,LoadFile is now XS only, and do accept mg pv, io objects and
b2944c
    fileglobs; support filename in error messages
b2944c
  - Support $YAML::XS::NonStrict loader
b2944c
  - Add dumper options Indent, BestWidth, Canonical, Unicode, Encoding,
b2944c
    LineBreak, OpenEnded (kept defaults)
b2944c
  - Add loader option NonStrict, Encoding (kept defaults)
b2944c
  - Fix default emitter_set_width (2 ⇒ 80)
b2944c
  - Fix the tests for the new default IndentlessMap=0 and check also
b2944c
    IndentlessMap=1
b2944c
  - Enable 2 more test/glob.t tests
b2944c
  - Fix dump_yaml in test/TestYAMLTests.pm
b2944c
  - Avoid duplicate checks against NULL
b2944c
- This release by RURBAN → update source URL
b2944c
b2944c
* Fri Jul  8 2016 Paul Howarth <paul@city-fan.org> - 0.63-1
b2944c
- Update to 0.63
b2944c
  - Fix memory leaks (GH#48)
b2944c
- BR: perl-generators
b2944c
- Simplify find command using -empty
b2944c
b2944c
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.62-2
b2944c
- Perl 5.24 rebuild
b2944c
b2944c
* Mon Feb 22 2016 Paul Howarth <paul@city-fan.org> - 0.62-1
b2944c
- Update to 0.62
b2944c
  - Fix for detecting filehandles (GH#42)
b2944c
- This release by TINITA → update source URL
b2944c
b2944c
* Sun Feb 21 2016 Paul Howarth <paul@city-fan.org> - 0.61-1
b2944c
- Update to 0.61
b2944c
  - Allow reading from and writing to IO::Handle (and derived) objects (GH#37)
b2944c
b2944c
* Wed Feb 10 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.60-1
b2944c
- 0.60 bump
b2944c
b2944c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.59-4
b2944c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b2944c
b2944c
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.59-3
b2944c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b2944c
b2944c
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.59-2
b2944c
- Perl 5.22 rebuild
b2944c
b2944c
* Tue Jan 27 2015 Paul Howarth <paul@city-fan.org> - 0.59-1
b2944c
- Update to 0.59
b2944c
  - Better scalar dump heuristics (PR/23)
b2944c
  - More closely match YAML.pm
b2944c
b2944c
* Wed Jan 21 2015 Paul Howarth <paul@city-fan.org> - 0.58-1
b2944c
- Update to 0.58
b2944c
  - Add a VERSION statement to YAML::LibYAML (GH#8)
b2944c
- This release by INGY → update source URL
b2944c
b2944c
* Fri Jan 16 2015 Paul Howarth <paul@city-fan.org> - 0.57-1
b2944c
- Update to 0.57
b2944c
  - Update copyright year
b2944c
  - Use Swim cpan-tail block functions in doc
b2944c
  - Format string fixes (PR#21, CPAN RT#46507, CVE-2012-1152)
b2944c
- This release by NAWGLAN → update source URL
b2944c
- Drop patch for format string fixes, upstreamed at long last
b2944c
b2944c
* Wed Dec 24 2014 Paul Howarth <paul@city-fan.org> - 0.55-1
b2944c
- Update to 0.55
b2944c
  - Get YAML::XS using latest libyaml
b2944c
b2944c
* Sun Nov 30 2014 Paul Howarth <paul@city-fan.org> - 0.54-1
b2944c
- Update to 0.54
b2944c
  - Fix for an edge case in scanner that results in an assert() failing
b2944c
    (https://bitbucket.org/xi/libyaml/issue/10/wrapped-strings-cause-assert-failure)
b2944c
    (CVE-2014-9130)
b2944c
- Drop upstreamed patches for CVE-2013-6393 and CVE-2014-2525
b2944c
b2944c
* Tue Nov 18 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.52-3
b2944c
- Update BRs (bz#1165198)
b2944c
b2944c
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.52-2
b2944c
- Perl 5.20 rebuild
b2944c
b2944c
* Sun Aug 24 2014 Paul Howarth <paul@city-fan.org> - 0.52-1
b2944c
- Update to 0.52
b2944c
  - Fix e1 test failure on 5.21.4
b2944c
b2944c
* Mon Aug 18 2014 Paul Howarth <paul@city-fan.org> - 0.51-1
b2944c
- Update to 0.51 (various minor tidy-ups, no functional changes)
b2944c
b2944c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.47-2
b2944c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
b2944c
b2944c
* Sat Aug  9 2014 Paul Howarth <paul@city-fan.org> - 0.47-1
b2944c
- Update to 0.47:
b2944c
  - Fix swim errors
b2944c
- Include upstream license file
b2944c
b2944c
* Wed Aug 06 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.46-1
b2944c
- 0.46 bump
b2944c
b2944c
* Tue Aug 05 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.45-1
b2944c
- 0.45 bump
b2944c
b2944c
* Mon Jul 14 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.44-1
b2944c
- 0.44 bump
b2944c
b2944c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-5
b2944c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b2944c
b2944c
* Thu Mar 27 2014 Paul Howarth <paul@city-fan.org> - 0.41-4
b2944c
- Fix LibYAML input sanitization errors (CVE-2014-2525)
b2944c
- Fix heap-based buffer overflow when parsing YAML tags (CVE-2013-6393)
b2944c
b2944c
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.41-3
b2944c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b2944c
b2944c
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.41-2
b2944c
- Perl 5.18 rebuild
b2944c
b2944c
* Wed Mar 13 2013 Paul Howarth <paul@city-fan.org> - 0.41-1
b2944c
- Update to 0.41:
b2944c
  - Removed C++ // style comments, for better portability
b2944c
b2944c
* Tue Feb 12 2013 Paul Howarth <paul@city-fan.org> - 0.39-1
b2944c
- Update to 0.39:
b2944c
  - Using the latest libyaml codebase
b2944c
    (https://github.com/yaml/libyaml/tree/perl-yaml-xs)
b2944c
  - Changes have been made to start moving libyaml to 1.2
b2944c
b2944c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.38-4
b2944c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b2944c
b2944c
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.38-3
b2944c
- Perl 5.16 rebuild
b2944c
- Build-require Data::Dumper
b2944c
b2944c
* Thu Mar 29 2012 Paul Howarth <paul@city-fan.org> - 0.38-2
b2944c
- Fix various format string vulnerabilities (CVE-2012-1152, CPAN RT#46507)
b2944c
- De-duplicate buildreqs, with Module>Install>Tests priority
b2944c
- Install to vendor directories
b2944c
- Don't need to remove empty directories from buildroot
b2944c
- Don't use macros for commands
b2944c
- Make %%files list more explicit
b2944c
- Tidy %%description
b2944c
b2944c
* Fri Jan 13 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.38-1
b2944c
- Bump to 0.38
b2944c
b2944c
* Fri Sep 30 2011 Petr Sabata <contyk@redhat.com> - 0.37-1
b2944c
- 0.37 bump
b2944c
- Remove defattr
b2944c
- Correct BR
b2944c
b2944c
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.35-2
b2944c
- Perl mass rebuild
b2944c
b2944c
* Mon Apr 04 2011 Petr Sabata <psabata@redhat.com> - 0.35-1
b2944c
- 0.35 bump
b2944c
- Removing obsolete buildroot stuff
b2944c
b2944c
* Wed Mar 16 2011 Paul Howarth <paul@city-fan.org> - 0.34-4
b2944c
- Improve overly-generic package summary
b2944c
- README is already UTF-8 encoded in version 0.34 so don't try converting it
b2944c
b2944c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.34-3
b2944c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
b2944c
b2944c
* Wed Sep 29 2010 jkeating - 0.34-2
b2944c
- Rebuilt for gcc bug 634757
b2944c
b2944c
* Fri Sep 24 2010 Marcela Mašláňová <mmaslano@redhat.com> - 0.34-1
b2944c
- update
b2944c
b2944c
* Thu Jun  3 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.33-1
b2944c
- update
b2944c
b2944c
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.32-6
b2944c
- Mass rebuild with perl-5.12.0
b2944c
b2944c
* Sat Mar 27 2010 Chris Weyl <cweyl@alumni.drew.edu> - 0.32-5
b2944c
- perl_default_filter, PERL_INSTALL_ROOT => DESTDIR
b2944c
b2944c
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.32-4
b2944c
- rebuild against perl 5.10.1
b2944c
b2944c
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.32-3
b2944c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b2944c
b2944c
* Wed Apr 29 2009 Marcela Mašláňová <mmaslano@redhat.com> 0.32-2
b2944c
- add BR
b2944c
b2944c
* Wed Apr 29 2009 Marcela Mašláňová <mmaslano@redhat.com> 0.32-1
b2944c
- Specfile autogenerated by cpanspec 1.78.