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