f008e0
# Run extra test
f008e0
%if 0%{!?perl_bootstrap:1}
f008e0
%if ! (0%{?rhel})
f008e0
%bcond_without perl_CPAN_Meta_YAML_enables_extra_test
f008e0
%else
f008e0
%bcond_with perl_CPAN_Meta_YAML_enables_extra_test
f008e0
%endif
f008e0
%else
f008e0
# Don't run extra tests when bootstrapping as many of those
f008e0
# tests' dependencies build-require this package
f008e0
%global _without_perl_CPAN_Meta_YAML_enables_extra_test 1
f008e0
%global _with_perl_CPAN_Meta_YAML_enables_extra_test 0
f008e0
%endif
f008e0
f008e0
Name:		perl-CPAN-Meta-YAML
f008e0
Version:	0.018
f008e0
Release:	1001%{?dist}
f008e0
Summary:	Read and write a subset of YAML for CPAN Meta files
f008e0
License:	GPL+ or Artistic
f008e0
URL:		http://search.cpan.org/dist/CPAN-Meta-YAML/
f008e0
Source0:	http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/CPAN-Meta-YAML-%{version}.tar.gz
f008e0
BuildArch:	noarch
f008e0
# Build:
f008e0
BuildRequires:	coreutils
f008e0
BuildRequires:	findutils
f008e0
BuildRequires:	make
f008e0
BuildRequires:	perl-generators
f008e0
BuildRequires:	perl-interpreter
f008e0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.17
f008e0
# Module Runtime:
f008e0
BuildRequires:	perl(B)
f008e0
BuildRequires:	perl(Carp)
f008e0
BuildRequires:	perl(Exporter)
f008e0
BuildRequires:	perl(Fcntl)
f008e0
BuildRequires:	perl(Scalar::Util)
f008e0
BuildRequires:	perl(strict)
f008e0
BuildRequires:	perl(warnings)
f008e0
# Tests:
f008e0
BuildRequires:	perl(base)
f008e0
# CPAN::Meta requires CPAN::Meta::YAML
f008e0
%if 0%{!?perl_bootstrap:1}
f008e0
BuildRequires:	perl(CPAN::Meta) >= 2.120900
f008e0
BuildRequires:	perl(CPAN::Meta::Prereqs)
f008e0
%endif
f008e0
BuildRequires:	perl(File::Basename)
f008e0
BuildRequires:	perl(File::Find)
f008e0
BuildRequires:	perl(File::Spec)
f008e0
BuildRequires:	perl(File::Spec::Functions)
f008e0
BuildRequires:	perl(File::Temp) >= 0.19
f008e0
BuildRequires:	perl(IO::Dir)
f008e0
BuildRequires:	perl(JSON::PP)
f008e0
BuildRequires:	perl(lib)
f008e0
BuildRequires:	perl(Test::More) >= 0.96
f008e0
BuildRequires:	perl(utf8)
f008e0
BuildRequires:	perl(vars)
f008e0
%if %{with perl_CPAN_Meta_YAML_enables_extra_test}
f008e0
# Extra Tests:
f008e0
BuildRequires:	perl(blib)
f008e0
BuildRequires:	perl(Test::CPAN::Meta)
f008e0
BuildRequires:	perl(Test::Pod)
f008e0
BuildRequires:	perl(Test::Version)
f008e0
%endif
f008e0
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
f008e0
Requires:	perl(Carp)
f008e0
Requires:	perl(Fcntl)
f008e0
f008e0
%description
f008e0
This module implements a subset of the YAML specification for use in reading
f008e0
and writing CPAN metadata files like META.yml and MYMETA.yml. It should not be
f008e0
used for any other general YAML parsing or generation task.
f008e0
f008e0
%prep
f008e0
%setup -q -n CPAN-Meta-YAML-%{version}
f008e0
f008e0
%build
f008e0
perl Makefile.PL INSTALLDIRS=vendor UNINST=0
f008e0
make %{?_smp_mflags}
f008e0
f008e0
%install
f008e0
make pure_install DESTDIR=%{buildroot}
f008e0
find %{buildroot} -type f -name .packlist -delete
f008e0
%{_fixperms} -c %{buildroot}
f008e0
f008e0
%check
f008e0
make test
f008e0
%if %{with perl_CPAN_Meta_YAML_enables_extra_test}
f008e0
make test TEST_FILES="xt/*/*.t"
f008e0
%endif
f008e0
f008e0
%files
f008e0
%license LICENSE
f008e0
%doc Changes README
f008e0
%{perl_vendorlib}/CPAN/
f008e0
%{_mandir}/man3/CPAN::Meta::YAML.3*
f008e0
f008e0
%changelog
f008e0
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.018-1001
f008e0
- Rebuild with enable hardening (bug #1636329)
f008e0
f008e0
* Thu Aug 23 2018 Petr Pisar <ppisar@redhat.com> - 0.018-1000
f008e0
- Increase release not to clash with perl-bootstrap:5.24 subpackages
f008e0
  (bug #1620200)
f008e0
f008e0
* Fri Apr 27 2018 Petr Pisar <ppisar@redhat.com> - 0.018-398
f008e0
- Increase release not to clash with perl-bootstrap:5.24 subpackages
f008e0
f008e0
* Thu Mar 15 2018 Paul Howarth <paul@city-fan.org> - 0.018-397
f008e0
- Simplify find command using -delete
f008e0
- Drop legacy Group: tag
f008e0
f008e0
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.018-396
f008e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f008e0
f008e0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.018-395
f008e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f008e0
f008e0
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.018-394
f008e0
- Perl 5.26 re-rebuild of bootstrapped packages
f008e0
f008e0
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.018-393
f008e0
- Perl 5.26 rebuild
f008e0
f008e0
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.018-367
f008e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f008e0
f008e0
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.018-366
f008e0
- Perl 5.24 re-rebuild of bootstrapped packages
f008e0
f008e0
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.018-365
f008e0
- Increase release to favour standalone package
f008e0
f008e0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.018-2
f008e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f008e0
f008e0
* Mon Dec 14 2015 Paul Howarth <paul@city-fan.org> - 0.018-1
f008e0
- Update to 0.018
f008e0
  - Generated from ETHER/YAML-Tiny-1.69.tar.gz
f008e0
f008e0
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.016-4
f008e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f008e0
f008e0
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.016-3
f008e0
- Perl 5.22 re-rebuild of bootstrapped packages
f008e0
f008e0
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.016-2
f008e0
- Perl 5.22 rebuild
f008e0
f008e0
* Tue May 19 2015 Paul Howarth <paul@city-fan.org> - 0.016-1
f008e0
- Update to 0.016
f008e0
  - Generated from ETHER/YAML-Tiny-1.67.tar.gz
f008e0
f008e0
* Tue Mar 17 2015 Paul Howarth <paul@city-fan.org> - 0.014-1
f008e0
- Update to 0.014
f008e0
  - Generated from ETHER/YAML-Tiny-1.66.tar.gz
f008e0
- Use %%license
f008e0
f008e0
* Fri Jan 09 2015 Petr Pisar <ppisar@redhat.com> - 0.012-313
f008e0
- Require undetected dependencies explicitly
f008e0
f008e0
* Fri Dec 12 2014 Petr Pisar <ppisar@redhat.com> - 0.012-312
f008e0
- Remove unused build-time dependency on YAML
f008e0
f008e0
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.012-311
f008e0
- Perl 5.20 re-rebuild of bootstrapped packages
f008e0
f008e0
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.012-310
f008e0
- Increase release to favour standalone package
f008e0
f008e0
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.012-3
f008e0
- Perl 5.20 rebuild
f008e0
f008e0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.012-2
f008e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f008e0
f008e0
* Tue Feb 25 2014 Paul Howarth <paul@city-fan.org> - 0.012-1
f008e0
- Update to 0.012:
f008e0
  - Generated from ETHER/YAML-Tiny-1.61.tar.gz
f008e0
f008e0
* Fri Feb 14 2014 Paul Howarth <paul@city-fan.org> - 0.011-1
f008e0
- Update to 0.011:
f008e0
  - Generated from ETHER/YAML-Tiny-1.60.tar.gz
f008e0
- Give up trying to support EPEL (test suite now requires Test::More 0.99)
f008e0
f008e0
* Mon Sep 23 2013 Paul Howarth <paul@city-fan.org> - 0.010-1
f008e0
- Update to 0.010:
f008e0
  - Generated from ETHER/YAML-Tiny-1.55.tar.gz
f008e0
  - Makefile.PL will use UNINST=1 on old perls that might have an old version
f008e0
    incorrectly installed into the core library path
f008e0
  - Updated Makefile.PL logic to support PERL_NO_HIGHLANDER
f008e0
- Drop redundant BRs: perl(Pod::Wordlist::hanekomu), perl(Test::Requires),
f008e0
  perl(Test::Spelling) and aspell-en
f008e0
- Add new test dependencies perl(IO::Handle) and perl(IPC::Open3)
f008e0
- Build with UNINST=0 to avoid build failures as we can't remove the system
f008e0
  version of the package when building an rpm for a new version
f008e0
- Update patch for building with old Test::More, and add new patch to support
f008e0
  building with Test::More < 0.94
f008e0
- Don't run the extra tests in EPEL as we don't have Test::Version there
f008e0
f008e0
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.008-292
f008e0
- Perl 5.18 re-rebuild of bootstrapped packages
f008e0
f008e0
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.008-291
f008e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f008e0
f008e0
* Mon Jul 15 2013 Petr Pisar <ppisar@redhat.com> - 0.008-290
f008e0
- Increase release to favour standalone package
f008e0
f008e0
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 0.008-15
f008e0
- Perl 5.18 rebuild
f008e0
f008e0
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.008-14
f008e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f008e0
f008e0
* Tue Nov 13 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.008-13
f008e0
- Update dependencies
f008e0
f008e0
* Thu Oct 11 2012 Paul Howarth <paul@city-fan.org> - 0.008-12
f008e0
- Never BR: perl(Test::Version) for EL builds as perl(version) is too old
f008e0
  prior to EL-7 and this package is included in RHEL ≥ 7 but Test::Version
f008e0
  is only in EPEL
f008e0
f008e0
* Thu Oct 11 2012 Petr Pisar <ppisar@redhat.com> - 0.008-11
f008e0
- Restrict Test::Version optional test on RHEL to version 6 only
f008e0
f008e0
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.008-10
f008e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f008e0
f008e0
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 0.008-9
f008e0
- Perl 5.16 re-rebuild of bootstrapped packages
f008e0
f008e0
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 0.008-8
f008e0
- Perl 5.16 rebuild
f008e0
f008e0
* Thu Jun  7 2012 Paul Howarth <paul@city-fan.org> - 0.008-7
f008e0
- Run the extra tests in a separate test run, and only when not bootstrapping
f008e0
- Don't BR: perl(Test::Spelling) with RHEL ≥ 7 as we don't have the other
f008e0
  dependencies needed do the spell check test
f008e0
f008e0
* Thu Jun  7 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.008-6
f008e0
- Conditionalize dependency on aspell
f008e0
f008e0
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 0.008-5
f008e0
- Perl 5.16 rebuild
f008e0
f008e0
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 0.008-4
f008e0
- Disable author tests on bootstrap
f008e0
f008e0
* Mon Apr 23 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.008-3
f008e0
- Data::Dumper is not really needed, dependencies must be fixed in YAML
f008e0
f008e0
* Mon Apr 23 2012 Marcela Mašláňová <mmaslano@redhat.com> - 0.008-2
f008e0
- Don't BR: Pod::Wordlist::hanekomu for RHEL-7+ builds; RHEL package cannot
f008e0
  have buildreq from EPEL
f008e0
- Add missing Data::Dumper dependency
f008e0
f008e0
* Thu Mar 15 2012 Paul Howarth <paul@city-fan.org> - 0.008-1
f008e0
- Update to 0.008:
f008e0
  - Generated from ADAMK/YAML-Tiny-1.51.tar.gz
f008e0
  - Updated from YAML-Tiny to fix compatibility with older Scalar::Util
f008e0
- Drop upstreamed patch for old Scalar::Util versions
f008e0
- Don't need to remove empty directories from the buildroot
f008e0
f008e0
* Wed Feb  8 2012 Paul Howarth <paul@city-fan.org> - 0.007-1
f008e0
- Update to 0.007:
f008e0
  - Documentation fix to replace missing abstract
f008e0
f008e0
* Tue Feb  7 2012 Paul Howarth <paul@city-fan.org> - 0.006-1
f008e0
- Update to 0.006:
f008e0
  - Set back configure_requires prerequisite for ExtUtils::MakeMaker
f008e0
    from 6.30 to 6.17
f008e0
- BR: perl(Test::Requires)
f008e0
- BR: perl(Test::Spelling), perl(Pod::Wordlist::hanekomu) and aspell-en to
f008e0
  enable the spell checker test
f008e0
- Drop patch for building with old ExtUtils::MakeMaker versions, no longer
f008e0
  needed
f008e0
- Drop support for soon-to-be-EOL RHEL-4:
f008e0
  - Drop %%defattr, redundant since rpm 4.4
f008e0
- Update patch for building with Test::More < 0.88
f008e0
f008e0
* Tue Jan 10 2012 Paul Howarth <paul@city-fan.org> - 0.005-2
f008e0
- Fedora 17 mass rebuild
f008e0
f008e0
* Tue Dec 13 2011 Paul Howarth <paul@city-fan.org> - 0.005-1
f008e0
- Update to 0.005:
f008e0
  - Fix documentation to clarify that users are responsible for UTF-8
f008e0
    encoding/decoding
f008e0
f008e0
* Wed Sep  7 2011 Paul Howarth <paul@city-fan.org> - 0.004-1
f008e0
- Update to 0.004:
f008e0
  - Generated from ADAMK/YAML-Tiny-1.50.tar.gz
f008e0
- BR: perl(Test::Version) for additional test coverage
f008e0
- Update patch for building with ExtUtils::MakeMaker < 6.30
f008e0
- Add patch to support building with Test::More < 0.88
f008e0
- Add patch to fix operation with Scalar::Util < 1.18
f008e0
f008e0
* Tue Aug 16 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.003-7
f008e0
- Install to vendor perl directories to avoid potential debuginfo conflicts
f008e0
  with the main perl package if this module ever becomes arch-specific
f008e0
f008e0
* Wed Jun 29 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.003-6
f008e0
- Perl mass rebuild
f008e0
f008e0
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.003-4
f008e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f008e0
f008e0
* Thu Jan 27 2011 Paul Howarth <paul@city-fan.org> - 0.003-3
f008e0
- Trim %%description (#672807)
f008e0
f008e0
* Wed Jan 26 2011 Paul Howarth <paul@city-fan.org> - 0.003-2
f008e0
- Sanitize for Fedora submission
f008e0
f008e0
* Tue Jan 25 2011 Paul Howarth <paul@city-fan.org> - 0.003-1
f008e0
- Initial RPM version