You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
perl-Test-DistManifest/perl-Test-DistManifest.spec

80 lines
2.5 KiB

14 years ago
Name: perl-Test-DistManifest
14 years ago
Version: 1.011
Release: 3%{?dist}
14 years ago
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/J/JA/JAWNSY/Test-DistManifest-%{version}.tar.gz
BuildArch: noarch
14 years ago
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.31
14 years ago
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Unix)
BuildRequires: perl(Module::Manifest) >= 0.07
14 years ago
BuildRequires: perl(Test::Builder)
14 years ago
BuildRequires: perl(Test::More) >= 0.62
# Tests only:
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::NoWarnings) >= 0.084
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Module::Manifest) >= 0.07
14 years ago
Requires: perl(Test::Builder)
14 years ago
# This is a plug-in into Test::More. Depend on it even if not mentioned in the
# code
Requires: perl(Test::More) >= 0.62
%{?perl_default_filter:
14 years ago
# Filter underspecifed dependencies
%filter_from_requires /^perl(Module::Manifest)$/d
14 years ago
# Filter multiple dependencies
14 years ago
%filter_from_requires /^perl(Test::Builder)$/d
%perl_default_filter
}
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\((Module::Manifest|Test::Builder)\\)$
14 years ago
%description
This module provides a simple method of testing that a MANIFEST matches the
distribution.
%prep
%setup -q -n Test-DistManifest-%{version}
%build
14 years ago
%{__perl} Makefile.PL INSTALLDIRS=perl OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
14 years ago
%install
14 years ago
make pure_install PERL_INSTALL_ROOT=$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 {} \;
14 years ago
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
# post-install rpmbuild scripts contaminates RPM_BUILD_ROOT (bug #672538).
rm debug*.list
14 years ago
make test
14 years ago
%files
%defattr(-,root,root,-)
%doc Changes examples LICENSE README
%{perl_privlib}/*
%{_mandir}/man3/*
%changelog
* Mon Jul 25 2011 Iain Arnell <iarnell@gmail.com> 1.011-3
- update filtering for rpm 4.9
14 years ago
* Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1.011-2
- Perl mass rebuild
14 years ago
* Wed Apr 27 2011 Petr Pisar <ppisar@redhat.com> - 1.011-1
- 1.011 bump
- Move to ExtUtils::MakeMaker
14 years ago
* Tue Jan 25 2011 Petr Pisar <ppisar@redhat.com> 1.009-1
- Specfile autogenerated by cpanspec 1.78.
- Remove BuildRoot stuff
- Install into perl core directory
- Hack %%check for rpmbuild bug #672538