Blame SPECS/perl-CPAN-Meta-YAML.spec

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