4c3813
Name:		perl-Module-Metadata
4c3813
Version:	1.000037
4c3813
Release:	1%{?dist}
4c3813
Summary:	Gather package and POD information from perl module files
4c3813
License:	GPL+ or Artistic
4c3813
URL:		https://metacpan.org/release/Module-Metadata
4c3813
Source0:	https://cpan.metacpan.org/modules/by-module/Module/Module-Metadata-%{version}.tar.gz
4c3813
BuildArch:	noarch
4c3813
# Build
4c3813
BuildRequires:	coreutils
4c3813
BuildRequires:	findutils
4c3813
BuildRequires:	make
4c3813
BuildRequires:	perl-generators
4c3813
BuildRequires:	perl-interpreter
4c3813
BuildRequires:	perl(ExtUtils::MakeMaker)
4c3813
# Module
4c3813
BuildRequires:	perl(Carp)
4c3813
BuildRequires:	perl(Encode)
4c3813
BuildRequires:	perl(Fcntl)
4c3813
BuildRequires:	perl(File::Find)
4c3813
BuildRequires:	perl(File::Spec)
4c3813
BuildRequires:	perl(strict)
4c3813
BuildRequires:	perl(version) >= 0.87
4c3813
BuildRequires:	perl(warnings)
4c3813
# Regular test suite
4c3813
BuildRequires:	perl(Config)
4c3813
BuildRequires:	perl(Cwd)
4c3813
BuildRequires:	perl(Data::Dumper)
4c3813
BuildRequires:	perl(Exporter)
4c3813
BuildRequires:	perl(File::Basename)
4c3813
BuildRequires:	perl(File::Path)
4c3813
BuildRequires:	perl(File::Spec)
4c3813
BuildRequires:	perl(File::Temp)
4c3813
BuildRequires:	perl(IO::File)
4c3813
BuildRequires:	perl(lib)
4c3813
BuildRequires:	perl(Test::More) >= 0.88
4c3813
BuildRequires:	perl(vars)
4c3813
# Optional test requirements
4c3813
BuildRequires:	perl(CPAN::Meta) >= 2.120900
4c3813
# Runtime
4c3813
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
4c3813
Requires:	perl(Encode)
4c3813
Requires:	perl(Fcntl)
4c3813
4c3813
%description
4c3813
This module provides a standard way to gather metadata about a .pm file
4c3813
without executing unsafe code.
4c3813
4c3813
%prep
4c3813
%setup -q -n Module-Metadata-%{version}
4c3813
4c3813
%build
4c3813
perl Makefile.PL INSTALLDIRS=vendor
4c3813
make %{?_smp_mflags}
4c3813
4c3813
%install
4c3813
make pure_install DESTDIR=%{buildroot}
4c3813
find %{buildroot} -type f -name .packlist -delete
4c3813
%{_fixperms} -c %{buildroot}
4c3813
4c3813
%check
4c3813
make test
4c3813
4c3813
%files
4c3813
%license LICENCE
4c3813
%doc Changes CONTRIBUTING README
4c3813
%{perl_vendorlib}/Module/
4c3813
%{_mandir}/man3/Module::Metadata.3*
4c3813
4c3813
%changelog
4c3813
* Mon Sep  9 2019 Paul Howarth <paul@city-fan.org> - 1.000037-1
4c3813
- Update to 1.000037
4c3813
  - Add decode_pod option for automatic =encoding handling
4c3813
4c3813
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.000036-439
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4c3813
4c3813
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.000036-438
4c3813
- Increase release to favour standalone package
4c3813
4c3813
* Fri Apr 19 2019 Paul Howarth <paul@city-fan.org> - 1.000036-1
4c3813
- Update to 1.000036
4c3813
  - Properly clean up temp dirs after testing
4c3813
4c3813
* Thu Apr 18 2019 Paul Howarth <paul@city-fan.org> - 1.000035-1
4c3813
- Update to 1.000035
4c3813
  - Fix how relative paths are absolutized, so they work properly on MSWin32
4c3813
    (GH#24)
4c3813
  - Quieten noisy tests (GH#31)
4c3813
4c3813
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.000033-418
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4c3813
4c3813
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.000033-417
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4c3813
4c3813
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.000033-416
4c3813
- Increase release to favour standalone package
4c3813
4c3813
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.000033-395
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4c3813
4c3813
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.000033-394
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4c3813
4c3813
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.000033-393
4c3813
- Perl 5.26 rebuild
4c3813
4c3813
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.000033-2
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4c3813
4c3813
* Mon Jul 25 2016 Paul Howarth <paul@city-fan.org> - 1.000033-1
4c3813
- Update to 1.000033
4c3813
  - Use a more strict matching heuristic when attempting to infer the "primary"
4c3813
    module name in a parsed .pm file
4c3813
  - Only report "main" as the module name if code was seen outside another
4c3813
    namespace, fixing bad results for pod files (CPAN RT#107525)
4c3813
  - Fix file operation in tests for VMS
4c3813
- BR: perl-generators
4c3813
- Simplify find command using -delete
4c3813
4c3813
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.000031-365
4c3813
- Increase release to favour standalone package
4c3813
4c3813
* Wed May 11 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.000031-1
4c3813
- 1.000031 bump; Used trial version to compete with Perl 5.24
4c3813
  - Refactor and expand test cases
4c3813
  - Fix a $VERSION extraction issue on perl 5.6.2 (CPAN RT#105978, PR#17)
4c3813
  - Fix the detection of package Foo when $Foo::VERSION is set (CPAN RT#85961)
4c3813
  - Fix missing "use" statement in refactored test helper (only affected older
4c3813
    perls, due to other module interactions)
4c3813
  - Temporary directories cleaned up during tests
4c3813
  - More accurately mark tests as TODO, so as to have a quieter and less
4c3813
    confusing test run without passing TODO tests
4c3813
  - Be less noisy on failure when building as part of perl core (see
4c3813
    Perl RT#126685)
4c3813
4c3813
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.000027-4
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4c3813
4c3813
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.000027-3
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4c3813
4c3813
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.000027-2
4c3813
- Perl 5.22 rebuild
4c3813
4c3813
* Sat Apr 11 2015 Paul Howarth <paul@city-fan.org> - 1.000027-1
4c3813
- Update to 1.000027
4c3813
  - Work around issues with an unconfigured Log::Contextual
4c3813
  - Allow tests to pass in a perl with no taint support
4c3813
4c3813
* Fri Jan 30 2015 Paul Howarth <paul@city-fan.org> - 1.000026-1
4c3813
- Update to 1.000026
4c3813
  - Patched tests to be less noisy in blead builds (CPAN RT#101491)
4c3813
4c3813
* Tue Jan  6 2015 Paul Howarth <paul@city-fan.org> - 1.000025-1
4c3813
- Update to 1.000025
4c3813
  - Evaluate version assignment in a clean environment, to fix assignment in a
4c3813
    block (CPAN RT#101095)
4c3813
- Use %%license
4c3813
4c3813
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.000024-2
4c3813
- Perl 5.20 rebuild
4c3813
4c3813
* Tue Jun 10 2014 Paul Howarth <paul@city-fan.org> - 1.000024-1
4c3813
- Update to 1.000024
4c3813
  - Support installations on older perls with an ExtUtils::MakeMaker earlier
4c3813
    than 6.63_03
4c3813
- Don't bother trying to run the release tests
4c3813
- Package new documentation files from upstream: CONTRIBUTING LICENSE README.md
4c3813
4c3813
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.000022-2
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4c3813
4c3813
* Wed Apr 30 2014 Paul Howarth <paul@city-fan.org> - 1.000022-1
4c3813
- Update to 1.000022
4c3813
  - New is_indexable() object method (CPAN RT#84357)
4c3813
  - Eliminated dependency on IO::File (and by virtue, XS)
4c3813
  - Removed cruft in test infrastructure left behind from separation from
4c3813
    Module::Build
4c3813
  - Repository moved to https://github.com/Perl-Toolchain-Gang/Module-Metadata
4c3813
  - .pm file is now wholly ascii, for nicer fatpacking (CPAN RT#95086)
4c3813
  - Some code micro-optimizations
4c3813
    (https://github.com/Perl-Toolchain-Gang/Module-Metadata/pull/4)
4c3813
  - Fixed all out of date prereq declarations
4c3813
  - Work around change in comparison behaviour in Test::More 0.95_01 by being
4c3813
    more explicit with our tests - now explicitly checking the string form of
4c3813
    the extracted version, rather than the entire version object
4c3813
  - Ensure the extracted version is returned as a version object in all cases
4c3813
    (CPAN RT#87782)
4c3813
- Drop redundant Group: tag
4c3813
4c3813
* Sun Oct  6 2013 Paul Howarth <paul@city-fan.org> - 1.000019-1
4c3813
- Update to 1.000019
4c3813
  - Warnings now disabled inside during the evaluation of generated version sub
4c3813
    (CPAN RT#89282)
4c3813
- BR: perl(Config), perl(File::Basename) and perl(IO::File) for the test suite
4c3813
4c3813
* Wed Sep 11 2013 Paul Howarth <paul@city-fan.org> - 1.000018-1
4c3813
- Update to 1.000018
4c3813
  - Re-release of de-tainting fix without unstated non-core test dependencies
4c3813
- Drop BR: perl(Test::Fatal)
4c3813
4c3813
* Wed Sep 11 2013 Paul Howarth <paul@city-fan.org> - 1.000017-1
4c3813
- Update to 1.000017
4c3813
  - De-taint version, if needed (CPAN RT#88576)
4c3813
- BR: perl(Test::Fatal)
4c3813
4c3813
* Thu Aug 22 2013 Paul Howarth <paul@city-fan.org> - 1.000016-1
4c3813
- Update to 1.000016
4c3813
  - Re-release to fix prereqs and other metadata
4c3813
- This release by ETHER -> update source URL
4c3813
- Specify all dependencies
4c3813
4c3813
* Wed Aug 21 2013 Paul Howarth <paul@city-fan.org> - 1.000015-1
4c3813
- Update to 1.000015
4c3813
  - Change wording about safety/security to satisfy CVE-2013-1437
4c3813
4c3813
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.000014-4
4c3813
- Perl 5.18 re-rebuild of bootstrapped packages
4c3813
4c3813
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.000014-3
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4c3813
4c3813
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1.000014-2
4c3813
- Perl 5.18 rebuild
4c3813
4c3813
* Thu May  9 2013 Paul Howarth <paul@city-fan.org> - 1.000014-1
4c3813
- Update to 1.000014
4c3813
  - Fix reliance on recent Test::Builder
4c3813
  - Make tests perl 5.6 compatible
4c3813
- This release by BOBTFISH -> update source URL
4c3813
4c3813
* Sun May  5 2013 Paul Howarth <paul@city-fan.org> - 1.000012-1
4c3813
- Update to 1.000012
4c3813
  - Improved package detection heuristics
4c3813
  - Fix ->contains_pod (CPAN RT#84932)
4c3813
  - Fix detection of pod after __END__ (CPAN RT#79656)
4c3813
- This release by ETHER -> update source URL
4c3813
- Package new upstream README file
4c3813
4c3813
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.000011-2
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4c3813
4c3813
* Tue Aug 21 2012 Paul Howarth <paul@city-fan.org> - 1.000011-1
4c3813
- Update to 1.000011
4c3813
  - Fix various warning messages
4c3813
- This release by APEIRON -> update source URL
4c3813
4c3813
* Mon Jul 30 2012 Paul Howarth <paul@city-fan.org> - 1.000010-1
4c3813
- Update to 1.000010
4c3813
  - Performance improvement: the creation of a Module::Metadata object
4c3813
    for a typical module file has been sped up by about 40%%
4c3813
  - Fix t/metadata.t failure under Cygwin
4c3813
  - Portability fix-ups for new_from_module() and test failures on VMS
4c3813
- This release by VPIT -> update source URL
4c3813
- Drop buildreqs for Perl core modules that aren't dual-lived
4c3813
- Drop %%defattr, redundant since rpm 4.4
4c3813
- Don't need to remove empty directories from the buildroot
4c3813
4c3813
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.000009-5
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4c3813
4c3813
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.000009-4
4c3813
- Perl 5.16 re-rebuild of bootstrapped packages
4c3813
4c3813
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 1.000009-3
4c3813
- Perl 5.16 rebuild
4c3813
4c3813
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 1.000009-2
4c3813
- Skip optional POD tests on bootstrap
4c3813
4c3813
* Thu Feb  9 2012 Paul Howarth <paul@city-fan.org> - 1.000009-1
4c3813
- Update to 1.000009
4c3813
  - Adds 'provides' method to generate a CPAN META provides data structure
4c3813
    correctly; use of package_versions_from_directory is discouraged
4c3813
  - Fatal errors now use 'croak' instead of 'die'; Carp added as
4c3813
    prerequisite
4c3813
- Improve %%description
4c3813
- Include all buildreqs explicitly required and classify them by Build,
4c3813
  Module, Regular test suite, and Release tests
4c3813
- Run main test suite and release tests separately
4c3813
- Drop explicit versioned runtime dependency on perl(version) as no supported
4c3813
  release now requires it
4c3813
4c3813
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 1.000007-2
4c3813
- Fedora 17 mass rebuild
4c3813
4c3813
* Wed Sep  7 2011 Paul Howarth <paul@city-fan.org> - 1.000007-1
4c3813
- Update to 1.000007
4c3813
  - Apply VMS fixes backported from blead
4c3813
4c3813
* Sun Sep  4 2011 Paul Howarth <paul@city-fan.org> - 1.000006-1
4c3813
- Update to 1.000006
4c3813
  - Support PACKAGE BLOCK syntax
4c3813
4c3813
* Wed Aug  3 2011 Paul Howarth <paul@city-fan.org> - 1.000005-1
4c3813
- Update to 1.000005
4c3813
  - Localize $package::VERSION during version discovery
4c3813
  - Fix references to Module::Build::ModuleInfo (CPAN RT#66133)
4c3813
  - Added 'new_from_handle()' method (CPAN RT#68875)
4c3813
  - Improved documentation (SYNOPSIS, broke out class/object method, and
4c3813
    other minor edits)
4c3813
- Install to vendor directories rather than perl directories
4c3813
4c3813
* Mon Jun 20 2011 Paul Howarth <paul@city-fan.org> - 1.000004-5
4c3813
- Bump and rebuild
4c3813
4c3813
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.000004-4
4c3813
- Perl mass rebuild
4c3813
4c3813
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.000004-3
4c3813
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4c3813
4c3813
* Thu Feb  3 2011 Paul Howarth <paul@city-fan.org> - 1.000004-2
4c3813
- Tweaks from package review (#672779)
4c3813
  - Explicitly duplicate %%summary in %%description as upstream provides
4c3813
    nothing particularly useful
4c3813
  - Drop redundant BuildRoot tag
4c3813
  - Add BuildRequires for possibly dual-lived perl modules:
4c3813
    Cwd Data::Dumper Exporter File::Path File::Spec File::Temp IO::File
4c3813
- Explicitly require perl(version) >= 0.87 for builds on OS releases older
4c3813
  than Fedora 15 where the versioned dependency isn't picked up automatically
4c3813
4c3813
* Thu Feb  3 2011 Paul Howarth <paul@city-fan.org> - 1.000004-1
4c3813
- Update to 1.000004
4c3813
  - Fix broken metadata.t when @INC has relative paths
4c3813
4c3813
* Wed Jan 26 2011 Paul Howarth <paul@city-fan.org> - 1.000003-2
4c3813
- Sanitize for Fedora submission
4c3813
- Drop support for releases prior to F-15 due to needing perl(version) >= 0.87
4c3813
4c3813
* Tue Jan 25 2011 Paul Howarth <paul@city-fan.org> - 1.000003-1
4c3813
- Initial RPM version