diff --git a/.cvsignore b/.cvsignore index e69de29..4ca28ed 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Test-MinimumVersion-0.007.tar.gz diff --git a/perl-Test-MinimumVersion.spec b/perl-Test-MinimumVersion.spec new file mode 100644 index 0000000..7e3aecd --- /dev/null +++ b/perl-Test-MinimumVersion.spec @@ -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 - 0.007-1 +- Initial version. diff --git a/sources b/sources index e69de29..9e6ff97 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +24e8defa8b990af4f7a6315024cf0aff Test-MinimumVersion-0.007.tar.gz