perl-App-find2perl/perl-App-find2perl.spec

83 lines
2.2 KiB
RPMSpec

Name: perl-App-find2perl
Version: 1.003
Release: 3%{?dist}
Summary: Translate find command lines to Perl code
License: GPL+ or Artistic
Group: Development/Tools
URL: http://search.cpan.org/dist/App-find2perl/
Source0: http://www.cpan.org/authors/id/L/LE/LEONT/App-find2perl-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
# Run-time:
BuildRequires: perl(Config)
BuildRequires: perl(Cwd)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(vars)
# Tests:
%if !%{defined perl_bootstrap}
BuildRequires: perl(constant)
BuildRequires: perl(Devel::FindPerl) >= 0.009
BuildRequires: perl(File::Path)
%endif
BuildRequires: perl(File::Spec)
%if !%{defined perl_bootstrap}
BuildRequires: perl(File::Temp)
%endif
BuildRequires: perl(IO::Handle)
%if !%{defined perl_bootstrap}
BuildRequires: perl(IPC::Open2)
%endif
BuildRequires: perl(IPC::Open3)
%if !%{defined perl_bootstrap}
BuildRequires: perl(open)
BuildRequires: perl(Perl::OSType)
%endif
BuildRequires: perl(Test::More)
%if !%{defined perl_bootstrap}
BuildRequires: %{_bindir}/find
%endif
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Conflicts: perl < 4:5.18.2-300
%description
This package delivers find2perl tool which is a little translator to convert
find command lines to equivalent Perl code.
%prep
%setup -q -n App-find2perl-%{version}
%if %{defined perl_bootstrap}
rm t/find2perl.t
sed -i -e '/^t\/find2perl.t/d' MANIFEST
%endif
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%doc Changes LICENSE README
%{_bindir}/*
%{_mandir}/man1/*
%changelog
* Thu Jan 08 2015 Petr Pisar <ppisar@redhat.com> - 1.003-3
- Disable a test when bootstrapping because of non-core Devel::FindPerl
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.003-2
- Perl 5.20 rebuild
* Thu Jun 19 2014 Petr Pisar <ppisar@redhat.com> 1.003-1
- Specfile autogenerated by cpanspec 1.78.