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