You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
1.7 KiB
63 lines
1.7 KiB
Name: perl-Test-MinimumVersion
|
|
Version: 0.007
|
|
Release: 3%{?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
|
|
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.007-3
|
|
- Rebuild for perl 5.10 (again), first pass
|
|
|
|
* Mon Jan 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.007-2
|
|
- rebuild normally, second pass
|
|
|
|
* Fri Jan 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.007-1.1
|
|
- rebuild for new perl, first pass, tests and TPC disabled
|
|
|
|
* Mon Nov 19 2007 Ralf Corsépius <rc040203@freenet.de> - 0.007-1
|
|
- Initial version.
|