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