commit 7b74a956c1a2fd82ca3bb8a9f7f21f79be0d72cf Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Mon May 21 09:51:06 2012 +0200 Import .gitignore | 1 + perl-Module-Install-AuthorTests.spec | 52 ++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 54 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..fcb34a4 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Module-Install-AuthorTests-0.002.tar.gz diff --git a/perl-Module-Install-AuthorTests.spec b/perl-Module-Install-AuthorTests.spec new file mode 100644 index 0000000..d0a4857 --- /dev/null +++ b/perl-Module-Install-AuthorTests.spec @@ -0,0 +1,52 @@ +Name: perl-Module-Install-AuthorTests +Version: 0.002 +Release: 1%{?dist} +Summary: Designate tests only run by module authors +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Module-Install-AuthorTests/ +Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/Module-Install-AuthorTests-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(inc::Module::Install) +# Build-time inc-ed: +# XXX: We cannot remove ./inc because it build-requires this module (bootstrap) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(Module::Install::Base) +BuildRequires: perl(Module::Install) +# Tests: +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +# Plug-in for Module::Install +Requires: perl(Module::Install) + +%description +Plug-in for Perl Module::Install package to declare tests in ./xt directory +should be run only if the module is being built by an author. + +%prep +%setup -q -n Module-Install-AuthorTests-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Apr 04 2012 Petr Pisar <ppisar@xxxxxxxxxx> 0.002-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..29b11e6 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f1b95c8385c1284e281a9bc6a5f10532 Module-Install-AuthorTests-0.002.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel