Import
This commit is contained in:
parent
35dd2e8905
commit
7b74a956c1
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/Module-Install-AuthorTests-0.002.tar.gz
|
||||
52
perl-Module-Install-AuthorTests.spec
Normal file
52
perl-Module-Install-AuthorTests.spec
Normal file
@ -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@redhat.com> 0.002-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
Loading…
Reference in New Issue
Block a user