de5f27
Name:		perl-Module-Metadata
de5f27
Version:	1.000018
02e285
Release:	2%{?dist}
de5f27
Summary:	Gather package and POD information from perl module files
de5f27
License:	GPL+ or Artistic
de5f27
Group:		Development/Libraries
de5f27
URL:		http://search.cpan.org/dist/Module-Metadata/
de5f27
Source0:	http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/Module-Metadata-%{version}.tar.gz
de5f27
BuildArch:	noarch
de5f27
# Build
de5f27
BuildRequires:	perl(ExtUtils::MakeMaker)
de5f27
# Module
de5f27
BuildRequires:	perl(Carp)
de5f27
BuildRequires:	perl(File::Find)
de5f27
BuildRequires:	perl(File::Spec)
de5f27
BuildRequires:	perl(IO::File)
de5f27
BuildRequires:	perl(strict)
de5f27
BuildRequires:	perl(vars)
de5f27
BuildRequires:	perl(version) >= 0.87
de5f27
BuildRequires:	perl(warnings)
de5f27
# Regular test suite
de5f27
BuildRequires:	perl(Cwd)
de5f27
BuildRequires:	perl(Data::Dumper)
de5f27
BuildRequires:	perl(Exporter)
de5f27
BuildRequires:	perl(File::Temp)
de5f27
BuildRequires:	perl(File::Path)
de5f27
BuildRequires:	perl(lib)
de5f27
BuildRequires:	perl(Test::More)
de5f27
# Release tests
de5f27
%if !%{defined perl_bootstrap}
de5f27
BuildRequires:	perl(Test::Pod)
de5f27
BuildRequires:	perl(Test::Pod::Coverage)
de5f27
%endif
de5f27
# Runtime
de5f27
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
de5f27
de5f27
%description
de5f27
This module provides a standard way to gather metadata about a .pm file
de5f27
through (mostly) static analysis and (some) code execution. When
de5f27
determining the version of a module, the $VERSION assignment is evaled, as
de5f27
is traditional in the CPAN toolchain.
de5f27
de5f27
%prep
de5f27
%setup -q -n Module-Metadata-%{version}
de5f27
de5f27
%build
de5f27
perl Makefile.PL INSTALLDIRS=vendor
de5f27
make %{?_smp_mflags}
de5f27
de5f27
%install
de5f27
make pure_install DESTDIR=%{buildroot}
de5f27
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
de5f27
%{_fixperms} %{buildroot}
de5f27
de5f27
%check
de5f27
make test
de5f27
%if !%{defined perl_bootstrap}
de5f27
make test TEST_FILES="xt/*.t"
de5f27
%endif
de5f27
de5f27
%files
de5f27
%doc Changes README
de5f27
%{perl_vendorlib}/Module/
de5f27
%{_mandir}/man3/Module::Metadata.3pm*
de5f27
de5f27
%changelog
02e285
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.000018-2
02e285
- Mass rebuild 2013-12-27
02e285
de5f27
* Wed Sep 11 2013 Paul Howarth <paul@city-fan.org> - 1.000018-1
de5f27
- Update to 1.000018
de5f27
  - Re-release of de-tainting fix without unstated non-core test dependencies
de5f27
- Drop BR: perl(Test::Fatal)
de5f27
de5f27
* Wed Sep 11 2013 Paul Howarth <paul@city-fan.org> - 1.000017-1
de5f27
- Update to 1.000017
de5f27
  - De-taint version, if needed (CPAN RT#88576)
de5f27
- BR: perl(Test::Fatal)
de5f27
de5f27
* Thu Aug 22 2013 Paul Howarth <paul@city-fan.org> - 1.000016-1
de5f27
- Update to 1.000016
de5f27
  - Re-release to fix prereqs and other metadata
de5f27
- This release by ETHER -> update source URL
de5f27
- Specify all dependencies
de5f27
de5f27
* Wed Aug 21 2013 Paul Howarth <paul@city-fan.org> - 1.000015-1
de5f27
- Update to 1.000015
de5f27
  - Change wording about safety/security to satisfy CVE-2013-1437
de5f27
de5f27
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 1.000014-4
de5f27
- Perl 5.18 re-rebuild of bootstrapped packages
de5f27
de5f27
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.000014-3
de5f27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
de5f27
de5f27
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 1.000014-2
de5f27
- Perl 5.18 rebuild
de5f27
de5f27
* Thu May  9 2013 Paul Howarth <paul@city-fan.org> - 1.000014-1
de5f27
- Update to 1.000014
de5f27
  - Fix reliance on recent Test::Builder
de5f27
  - Make tests perl 5.6 compatible
de5f27
- This release by BOBTFISH -> update source URL
de5f27
de5f27
* Sun May  5 2013 Paul Howarth <paul@city-fan.org> - 1.000012-1
de5f27
- Update to 1.000012
de5f27
  - Improved package detection heuristics
de5f27
  - Fix ->contains_pod (CPAN RT#84932)
de5f27
  - Fix detection of pod after __END__ (CPAN RT#79656)
de5f27
- This release by ETHER -> update source URL
de5f27
- Package new upstream README file
de5f27
de5f27
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.000011-2
de5f27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
de5f27
de5f27
* Tue Aug 21 2012 Paul Howarth <paul@city-fan.org> - 1.000011-1
de5f27
- Update to 1.000011
de5f27
  - Fix various warning messages
de5f27
- This release by APEIRON -> update source URL
de5f27
de5f27
* Mon Jul 30 2012 Paul Howarth <paul@city-fan.org> - 1.000010-1
de5f27
- Update to 1.000010
de5f27
  - Performance improvement: the creation of a Module::Metadata object
de5f27
    for a typical module file has been sped up by about 40%%
de5f27
  - Fix t/metadata.t failure under Cygwin
de5f27
  - Portability fix-ups for new_from_module() and test failures on VMS
de5f27
- This release by VPIT -> update source URL
de5f27
- Drop buildreqs for Perl core modules that aren't dual-lived
de5f27
- Drop %%defattr, redundant since rpm 4.4
de5f27
- Don't need to remove empty directories from the buildroot
de5f27
de5f27
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.000009-5
de5f27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
de5f27
de5f27
* Tue Jul 10 2012 Petr Pisar <ppisar@redhat.com> - 1.000009-4
de5f27
- Perl 5.16 re-rebuild of bootstrapped packages
de5f27
de5f27
* Wed Jun 06 2012 Petr Pisar <ppisar@redhat.com> - 1.000009-3
de5f27
- Perl 5.16 rebuild
de5f27
de5f27
* Fri Jun 01 2012 Petr Pisar <ppisar@redhat.com> - 1.000009-2
de5f27
- Skip optional POD tests on bootstrap
de5f27
de5f27
* Thu Feb  9 2012 Paul Howarth <paul@city-fan.org> - 1.000009-1
de5f27
- Update to 1.000009
de5f27
  - Adds 'provides' method to generate a CPAN META provides data structure
de5f27
    correctly; use of package_versions_from_directory is discouraged
de5f27
  - Fatal errors now use 'croak' instead of 'die'; Carp added as
de5f27
    prerequisite
de5f27
- Improve %%description
de5f27
- Include all buildreqs explicitly required and classify them by Build,
de5f27
  Module, Regular test suite, and Release tests
de5f27
- Run main test suite and release tests separately
de5f27
- Drop explicit versioned runtime dependency on perl(version) as no supported
de5f27
  release now requires it
de5f27
de5f27
* Thu Jan 12 2012 Paul Howarth <paul@city-fan.org> - 1.000007-2
de5f27
- Fedora 17 mass rebuild
de5f27
de5f27
* Wed Sep  7 2011 Paul Howarth <paul@city-fan.org> - 1.000007-1
de5f27
- Update to 1.000007
de5f27
  - Apply VMS fixes backported from blead
de5f27
de5f27
* Sun Sep  4 2011 Paul Howarth <paul@city-fan.org> - 1.000006-1
de5f27
- Update to 1.000006
de5f27
  - Support PACKAGE BLOCK syntax
de5f27
de5f27
* Wed Aug  3 2011 Paul Howarth <paul@city-fan.org> - 1.000005-1
de5f27
- Update to 1.000005
de5f27
  - Localize $package::VERSION during version discovery
de5f27
  - Fix references to Module::Build::ModuleInfo (CPAN RT#66133)
de5f27
  - Added 'new_from_handle()' method (CPAN RT#68875)
de5f27
  - Improved documentation (SYNOPSIS, broke out class/object method, and
de5f27
    other minor edits)
de5f27
- Install to vendor directories rather than perl directories
de5f27
de5f27
* Mon Jun 20 2011 Paul Howarth <paul@city-fan.org> - 1.000004-5
de5f27
- Bump and rebuild
de5f27
de5f27
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.000004-4
de5f27
- Perl mass rebuild
de5f27
de5f27
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.000004-3
de5f27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
de5f27
de5f27
* Thu Feb  3 2011 Paul Howarth <paul@city-fan.org> - 1.000004-2
de5f27
- Tweaks from package review (#672779)
de5f27
  - Explicitly duplicate %%summary in %%description as upstream provides
de5f27
    nothing particularly useful
de5f27
  - Drop redundant BuildRoot tag
de5f27
  - Add BuildRequires for possibly dual-lived perl modules:
de5f27
    Cwd Data::Dumper Exporter File::Path File::Spec File::Temp IO::File
de5f27
- Explicitly require perl(version) >= 0.87 for builds on OS releases older
de5f27
  than Fedora 15 where the versioned dependency isn't picked up automatically
de5f27
de5f27
* Thu Feb  3 2011 Paul Howarth <paul@city-fan.org> - 1.000004-1
de5f27
- Update to 1.000004
de5f27
  - Fix broken metadata.t when @INC has relative paths
de5f27
de5f27
* Wed Jan 26 2011 Paul Howarth <paul@city-fan.org> - 1.000003-2
de5f27
- Sanitize for Fedora submission
de5f27
- Drop support for releases prior to F-15 due to needing perl(version) >= 0.87
de5f27
de5f27
* Tue Jan 25 2011 Paul Howarth <paul@city-fan.org> - 1.000003-1
de5f27
- Initial RPM version