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.
65 lines
1.8 KiB
65 lines
1.8 KiB
Name: perl-Perl-MinimumVersion
|
|
Version: 0.15
|
|
Release: 2%{?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)
|
|
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
|
|
* Thu Jan 10 2008 Ralf Corsépius <rc040203@freenet.de> - 0.15.2
|
|
- Use unversioneed BR: perl(version) to circumvent perl vs. rpm versioning
|
|
conflicts
|
|
|
|
* Tue Nov 20 2007 Ralf Corsépius <rc040203@freenet.de> - 0.15-1
|
|
- Initial version.
|