|
|
|
@ -1,51 +1,53 @@
|
|
|
|
|
Name: perl-Test-DistManifest
|
|
|
|
|
Version: 1.012
|
|
|
|
|
Release: 8%{?dist}
|
|
|
|
|
Version: 1.013
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Author test that validates a package MANIFEST
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
URL: http://search.cpan.org/dist/Test-DistManifest/
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/E/ET/ETHER/Test-DistManifest-%{version}.tar.gz
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
BuildRequires: perl
|
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
|
|
|
|
BuildRequires: perl(strict)
|
|
|
|
|
BuildRequires: perl(warnings)
|
|
|
|
|
# Run-time:
|
|
|
|
|
BuildRequires: perl(Carp)
|
|
|
|
|
BuildRequires: perl(Cwd)
|
|
|
|
|
BuildRequires: perl(ExtUtils::Manifest)
|
|
|
|
|
BuildRequires: perl(File::Find)
|
|
|
|
|
BuildRequires: perl(File::Spec)
|
|
|
|
|
BuildRequires: perl(File::Spec::Unix)
|
|
|
|
|
BuildRequires: perl(Module::Manifest) >= 0.07
|
|
|
|
|
BuildRequires: perl(Test::Builder)
|
|
|
|
|
BuildRequires: perl(Test::More) >= 0.62
|
|
|
|
|
# Tests only:
|
|
|
|
|
BuildRequires: perl(if)
|
|
|
|
|
BuildRequires: perl(Test::Builder::Tester)
|
|
|
|
|
BuildRequires: perl(Test::More)
|
|
|
|
|
BuildRequires: perl(Test::NoWarnings) >= 0.084
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
# Test::Warnings not used
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Module::Manifest) >= 0.07
|
|
|
|
|
Requires: perl(Test::Builder)
|
|
|
|
|
# This is a plug-in into Test::More. Depend on it even if not mentioned in the
|
|
|
|
|
# code
|
|
|
|
|
Requires: perl(Test::More) >= 0.62
|
|
|
|
|
|
|
|
|
|
# Filter underspecifed dependencies
|
|
|
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\((Module::Manifest|Test::Builder)\\)$
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This module provides a simple method of testing that a MANIFEST matches the
|
|
|
|
|
distribution.
|
|
|
|
|
This Perl module provides a simple method of testing that a MANIFEST matches
|
|
|
|
|
the distribution.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n Test-DistManifest-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=perl OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
|
PERL_MM_FALLBACK_SILENCE_WARNING=1 perl Makefile.PL INSTALLDIRS=perl OPTIMIZE="$RPM_OPT_FLAGS"
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
|
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@ -54,11 +56,15 @@ rm *.list
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc Changes examples LICENSE README
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc Changes CONTRIBUTING examples README
|
|
|
|
|
%{perl_privlib}/*
|
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Feb 09 2015 Petr Pisar <ppisar@redhat.com> - 1.013-1
|
|
|
|
|
- 1.013 bump
|
|
|
|
|
|
|
|
|
|
* Thu Aug 28 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.012-8
|
|
|
|
|
- Perl 5.20 rebuild
|
|
|
|
|
|
|
|
|
|