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