505e29d
Name:		perl-Test-CPAN-Meta-YAML
391ecbf
Version:	0.25
6151036
Release:	6%{?dist}
505e29d
Summary:	Validate a META.yml file within a CPAN distribution
505e29d
Group:		Development/Libraries
505e29d
License:	Artistic 2.0
505e29d
URL:		http://search.cpan.org/dist/Test-CPAN-Meta-YAML/
505e29d
Source0:	http://search.cpan.org/CPAN/authors/id/B/BA/BARBIE/Test-CPAN-Meta-YAML-%{version}.tar.gz
391ecbf
Patch0:		Test-CPAN-Meta-YAML-0.25-utf8.patch
2d8ca49
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
505e29d
BuildArch:	noarch
5e10196
# Module Build
5e10196
BuildRequires:	perl
ffcdabb
BuildRequires:	perl-generators
505e29d
BuildRequires:	perl(ExtUtils::MakeMaker)
5e10196
# Module Runtime
5e10196
BuildRequires:	perl(strict)
505e29d
BuildRequires:	perl(Test::Builder)
505e29d
BuildRequires:	perl(Test::YAML::Valid) >= 0.03
5e10196
BuildRequires:	perl(vars)
5e10196
BuildRequires:	perl(warnings)
505e29d
BuildRequires:	perl(YAML::Syck)
5e10196
# Test Suite
5e10196
BuildRequires:	perl(IO::File)
5e10196
BuildRequires:	perl(Test::Builder::Tester)
5e10196
BuildRequires:	perl(Test::More)
5e10196
# Optional Tests
5e10196
BuildRequires:	perl(Test::CPAN::Meta::JSON)
5e10196
BuildRequires:	perl(Test::Pod) >= 1.00
5e10196
BuildRequires:	perl(Test::Pod::Coverage) >= 0.08
5e10196
# Runtime
2d8ca49
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
505e29d
# Explicitly requests the YAML::Syck backend for Test::YAML::Valid
505e29d
Requires:	perl(YAML::Syck)
505e29d
505e29d
%description
505e29d
This module was written to ensure that a META.yml file, provided with a
505e29d
standard distribution uploaded to CPAN, meets the specifications that are
505e29d
slowly being introduced to module uploads, via the use of ExtUtils::MakeMaker,
505e29d
Module::Build and Module::Install.
505e29d
505e29d
See CPAN::Meta for further details of the CPAN Meta Specification.
505e29d
505e29d
%prep
505e29d
%setup -q -n Test-CPAN-Meta-YAML-%{version}
505e29d
391ecbf
# Recode documentation as UTF-8
2d8ca49
%patch0
505e29d
505e29d
%build
505e29d
perl Makefile.PL INSTALLDIRS=vendor
505e29d
make %{?_smp_mflags}
505e29d
505e29d
%install
505e29d
rm -rf %{buildroot}
505e29d
make pure_install DESTDIR=%{buildroot}
505e29d
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
505e29d
%{_fixperms} %{buildroot}
505e29d
505e29d
%check
505e29d
make test AUTOMATED_TESTING=1
505e29d
505e29d
%clean
505e29d
rm -rf %{buildroot}
505e29d
505e29d
%files
5e10196
%if 0%{?_licensedir:1}
5e10196
%license LICENSE
5e10196
%else
5e10196
%doc LICENSE
5e10196
%endif
5e10196
%doc Changes README
505e29d
%{perl_vendorlib}/Test/
5e10196
%{_mandir}/man3/Test::CPAN::Meta::YAML.3*
5e10196
%{_mandir}/man3/Test::CPAN::Meta::YAML::Version.3*
505e29d
505e29d
%changelog
6151036
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.25-6
6151036
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
6151036
d95ac7a
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.25-5
d95ac7a
- Perl 5.24 rebuild
d95ac7a
2a34747
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.25-4
2a34747
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2a34747
2417e59
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.25-3
2417e59
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2417e59
9d7342b
* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.25-2
9d7342b
- Perl 5.22 rebuild
9d7342b
391ecbf
* Wed May  6 2015 Paul Howarth <paul@city-fan.org> - 0.25-1
391ecbf
- Update to 0.25
391ecbf
  - POD fixes
391ecbf
- Update UTF8 patch
391ecbf
2ca78f4
* Fri Jan 30 2015 Paul Howarth <paul@city-fan.org> - 0.24-1
2ca78f4
- Update to 0.24
2ca78f4
  - Documentation updates
2ca78f4
5e10196
* Thu Jan 15 2015 Paul Howarth <paul@city-fan.org> - 0.23-1
5e10196
- Update to 0.23
5e10196
  - Extended META test suite
5e10196
  - Added META.json and tests
5e10196
- Update UTF8 patch
5e10196
- Use %%license where possible
5e10196
- Classify buildreqs by usage
5e10196
5b2bc40
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-4
5b2bc40
- Perl 5.20 rebuild
5b2bc40
638a3c1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-3
638a3c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
638a3c1
efb85a4
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
efb85a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
efb85a4
5e8a0e9
* Sun Jul 21 2013 Paul Howarth <paul@city-fan.org> - 0.22-1
5e8a0e9
- Update to 0.22
5e8a0e9
  - Changes file dates changed to meet W3CDTF standard
5e8a0e9
b6697f8
* Sun Jul 21 2013 Petr Pisar <ppisar@redhat.com> - 0.21-3
b6697f8
- Perl 5.18 rebuild
b6697f8
972b428
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-2
972b428
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
972b428
f4b79ce
* Tue Aug 21 2012 Paul Howarth <paul@city-fan.org> - 0.21-1
f4b79ce
- Update to 0.21
f4b79ce
  - Added minimum perl version (5.006)
f4b79ce
  - Reworked Makefile.PL for clarity
f4b79ce
  - Implemented Perl::Critic suggestions
f4b79ce
  - Added meta_yaml_ok test and example
f4b79ce
  - Several Version.pm updates, including new() parameter name change:
f4b79ce
    'yaml' is now 'data'
f4b79ce
cc00b42
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-3
cc00b42
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
cc00b42
5dc4bbe
* Thu Jun 21 2012 Petr Pisar <ppisar@redhat.com> - 0.20-2
5dc4bbe
- Perl 5.16 rebuild
5dc4bbe
40260b3
* Fri Apr 20 2012 Paul Howarth <paul@city-fan.org> - 0.20-1
40260b3
- Update to 0.20
40260b3
  - Further spelling fix
40260b3
  - Removed DSLIP info
40260b3
da969eb
* Tue Apr 17 2012 Paul Howarth <paul@city-fan.org> - 0.19-1
da969eb
- Update to 0.19
da969eb
  - CPAN RT#76611: Spelling fix
da969eb
2d8ca49
* Sun Apr 15 2012 Paul Howarth <paul@city-fan.org> - 0.18-1
2d8ca49
- Update to 0.18
2d8ca49
  - CPAN RT#74317: Imported url validation from CPAN::Meta
2d8ca49
  - CPAN RT#66692: Updated license type
2d8ca49
  - Updates to examples
2d8ca49
- Update UTF8 patch
2d8ca49
- Don't need to remove empty directories from buildroot
2d8ca49
- Don't use macros for commands
2d8ca49
- Drop %%defattr, redundant since rpm 4.4
2d8ca49
5184923
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-4
5184923
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5184923
Petr Sabata da0db58
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 0.17-3
Petr Sabata da0db58
- Perl mass rebuild
Petr Sabata da0db58
505e29d
* Wed Mar 16 2011 Paul Howarth <paul@city-fan.org> - 0.17-2
505e29d
- Sanitize for Fedora submission
505e29d
505e29d
* Wed Mar 16 2011 Paul Howarth <paul@city-fan.org> - 0.17-1
505e29d
- Initial RPM version