diff --git a/.gitignore b/.gitignore index e69de29..1f40bb0 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Test-DistManifest-1.009.tar.gz diff --git a/perl-Test-DistManifest.spec b/perl-Test-DistManifest.spec new file mode 100644 index 0000000..9533fe4 --- /dev/null +++ b/perl-Test-DistManifest.spec @@ -0,0 +1,63 @@ +Name: perl-Test-DistManifest +Version: 1.009 +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/J/JA/JAWNSY/Test-DistManifest-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(File::Spec) +BuildRequires: perl(File::Spec::Unix) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Module::Manifest) >= 0.07 +BuildRequires: perl(Test::Builder) >= 0.72 +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 +Requires: perl(Test::Builder) >= 0.72 +# 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 +%filter_from_requires /^perl(Module::Manifest)$/d +%filter_from_requires /^perl(Test::Builder)$/d +%filter_setup + +%description +This module provides a simple method of testing that a MANIFEST matches the +distribution. + +%prep +%setup -q -n Test-DistManifest-%{version} + +%build +%{__perl} Build.PL installdirs=core +./Build + +%install +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 +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 +./Build test + +%files +%defattr(-,root,root,-) +%doc Changes examples LICENSE README +%{perl_privlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Jan 25 2011 Petr Pisar 1.009-1 +- Specfile autogenerated by cpanspec 1.78. +- Remove BuildRoot stuff +- Install into perl core directory +- Hack %%check for rpmbuild bug #672538 diff --git a/sources b/sources index e69de29..1b706ad 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +014331ccac1b3efe49f0a55fc59e552d Test-DistManifest-1.009.tar.gz