parent
3cff2ef3b8
commit
9b3fd7c534
@ -0,0 +1 @@
|
||||
Test-MinimumVersion-0.007.tar.gz
|
@ -0,0 +1,53 @@
|
||||
Name: perl-Test-MinimumVersion
|
||||
Version: 0.007
|
||||
Release: 1%{?dist}
|
||||
Summary: Check whether your code requires a newer perl
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Test-MinimumVersion/
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Test-MinimumVersion-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: perl(File::Find::Rule::Perl)
|
||||
BuildRequires: perl(Perl::MinimumVersion) >= 0.14
|
||||
|
||||
# For improved tests
|
||||
BuildRequires: perl(Test::Pod) >= 1.00
|
||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
||||
|
||||
%description
|
||||
Check whether your code requires a newer perl than you think.
|
||||
|
||||
%prep
|
||||
%setup -q -n Test-MinimumVersion-%{version}
|
||||
find -type f -exec chmod -x {} \;
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
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 d -depth -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes LICENSE
|
||||
%{perl_vendorlib}/Test
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Mon Nov 19 2007 Ralf Corsépius <rc040203@freenet.de> - 0.007-1
|
||||
- Initial version.
|
Loading…
Reference in new issue