%{?scl:%scl_package perl-ExtUtils-Command}
Name: %{?scl_prefix}perl-ExtUtils-Command
Version: 1.20
Release: 1%{?dist}
Summary: Perl routines to replace common UNIX commands in Makefiles
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/ExtUtils-Command/
Source0: http://www.cpan.org/authors/id/B/BI/BINGOS/ExtUtils-Command-%{version}.tar.gz
BuildArch: noarch
BuildRequires: %{?scl_prefix}perl
BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker)
BuildRequires: %{?scl_prefix}perl(strict)
BuildRequires: %{?scl_prefix}perl(warnings)
# Run-time:
BuildRequires: %{?scl_prefix}perl(Carp)
BuildRequires: %{?scl_prefix}perl(Exporter)
BuildRequires: %{?scl_prefix}perl(File::Copy)
BuildRequires: %{?scl_prefix}perl(File::Find)
BuildRequires: %{?scl_prefix}perl(File::Path)
# File::Spec not used on Linux
BuildRequires: %{?scl_prefix}perl(vars)
# VMS::Feature not used on Linux
# Tests:
BuildRequires: %{?scl_prefix}perl(File::Spec)
BuildRequires: %{?scl_prefix}perl(Test::More)
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
Requires: %{?scl_prefix}perl(Carp)
Requires: %{?scl_prefix}perl(File::Copy)
Requires: %{?scl_prefix}perl(File::Find)
Requires: %{?scl_prefix}perl(File::Path)
%description
This Perl module is used to replace common UNIX commands. In all cases the
functions work with @ARGV rather than taking arguments. This makes them
easier to deal with in Makefiles.
%prep
%setup -q -n ExtUtils-Command-%{version}
%build
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'}
%install
%{?scl:scl enable %{scl} '}make pure_install DESTDIR=$RPM_BUILD_ROOT%{?scl:'}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
%{?scl:scl enable %{scl} '}make test%{?scl:'}
%files
%doc Changes LICENSE README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%changelog
* Mon Jan 19 2015 Petr Pisar <ppisar@redhat.com> - 1.20-1
- 1.20 bump
* Mon Jan 05 2015 Petr Pisar <ppisar@redhat.com> - 1.19-1
- 1.19 bump
* Tue Nov 18 2014 Petr Pisar <ppisar@redhat.com> - 1.18-340
- Increase release number to supersede perl's sub-package
* Wed Oct 29 2014 Petr Pisar <ppisar@redhat.com> 1.18-240
- Specfile autogenerated by cpanspec 1.78.