parent
de0638b08f
commit
6e2c0be11d
@ -0,0 +1 @@
|
|||||||
|
Perl-MinimumVersion-0.15.tar.gz
|
@ -0,0 +1,60 @@
|
|||||||
|
Name: perl-Perl-MinimumVersion
|
||||||
|
Version: 0.15
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Find a minimum required version of perl for Perl code
|
||||||
|
License: GPL+ or Artistic
|
||||||
|
Group: Development/Libraries
|
||||||
|
URL: http://search.cpan.org/dist/Perl-MinimumVersion/
|
||||||
|
Source0: http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/Perl-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
|
||||||
|
|
||||||
|
# Should be 1.19, but Fedora only has 1.18
|
||||||
|
# BuildRequires: perl(List::Util) >= 1.19
|
||||||
|
BuildRequires: perl(List::Util) >= 1.18
|
||||||
|
|
||||||
|
BuildRequires: perl(PPI) >= 1.118
|
||||||
|
BuildRequires: perl(Test::Script) >= 1.02
|
||||||
|
BuildRequires: perl(version) >= 0.7203
|
||||||
|
BuildRequires: perl(File::Find::Rule)
|
||||||
|
BuildRequires: perl(File::Spec) >= 0.80
|
||||||
|
BuildRequires: perl(Test::More) >= 0.47
|
||||||
|
|
||||||
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
|
|
||||||
|
%description
|
||||||
|
Find a minimum required version of perl for Perl code
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n Perl-MinimumVersion-%{version}
|
||||||
|
|
||||||
|
%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 AUTOMATED_TESTING=1
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc Changes LICENSE
|
||||||
|
%{_bindir}/*
|
||||||
|
%{perl_vendorlib}/Perl
|
||||||
|
%{_mandir}/man1/*
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Nov 20 2007 Ralf Corsépius <rc040203@freenet.de> - 0.15-1
|
||||||
|
- Initial version.
|
Loading…
Reference in new issue