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