79 lines
2.2 KiB
RPMSpec
79 lines
2.2 KiB
RPMSpec
Name: perl-Test-Requires
|
|
Summary: Checks to see if a given module can be loaded
|
|
Version: 0.06
|
|
Release: 3%{?dist}
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/Test-Requires-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/Test-Requires
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|
BuildRequires: perl(Test::Builder::Module)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(Test::Perl::Critic)
|
|
BuildRequires: perl(Test::Pod)
|
|
BuildRequires: perl(Test::Spelling), hunspell-en
|
|
|
|
Requires: perl(Test::Builder::Module)
|
|
|
|
%{?perl_default_filter}
|
|
%{?perl_default_subpackage_tests}
|
|
|
|
%description
|
|
Test::Requires checks to see if the module can be loaded; if this fails
|
|
rather than failing tests this *skips all tests*.
|
|
|
|
%prep
|
|
%setup -q -n Test-Requires-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
%check
|
|
# note the "skipped" warnings indicate success :)
|
|
make test
|
|
make test TEST_FILES="xt/*.t"
|
|
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes README
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*.3*
|
|
|
|
%changelog
|
|
* Wed Aug 17 2011 Paul Howarth <paul@city-fan.org> - 0.06-3
|
|
- BR: hunspell-en rather than aspell-en (#731272)
|
|
|
|
* Thu Nov 18 2010 Paul Howarth <paul@city-fan.org> - 0.06-2
|
|
- run release tests as well as standard test suite in %%check
|
|
- drop no-longer-needed buildreq perl(Filter::Util::Call)
|
|
- new buildreqs perl(Test::Perl::Critic), perl(Test::Pod), perl(Test::Spelling)
|
|
|
|
* Tue Oct 05 2010 Iain Arnell <iarnell@gmail.com> 0.06-1
|
|
- update to latest upstream version
|
|
|
|
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.03-2
|
|
- Mass rebuild with perl-5.12.0
|
|
|
|
* Sat Mar 20 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.03-1
|
|
- specfile by Fedora::App::MaintainerTools 0.006
|
|
|
|
|