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