perl-App-find2perl/perl-App-find2perl.spec
2018-03-20 10:00:49 +01:00

130 lines
3.9 KiB
RPMSpec

Name: perl-App-find2perl
Version: 1.004
Release: 1%{?dist}
Summary: Translate find command lines to Perl code
License: GPL+ or Artistic
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
%if %{defined perl_bootstrap}
BuildRequires: coreutils
%endif
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(:VERSION) >= 5.6
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
%if %{defined perl_bootstrap}
BuildRequires: sed
%endif
# Run-time:
BuildRequires: perl(Config)
BuildRequires: perl(Cwd)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(vars)
# Tests:
BuildRequires: perl(blib) >= 1.01
%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 NO_PACKLIST=1
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%license LICENSE
%doc Changes README
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%changelog
* Tue Mar 20 2018 Petr Pisar <ppisar@redhat.com> - 1.004-1
- 1.004 bump
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.003-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.003-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.003-12
- Perl 5.26 re-rebuild of bootstrapped packages
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.003-11
- Perl 5.26 rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.003-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.003-9
- Perl 5.24 re-rebuild of bootstrapped packages
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.003-8
- Perl 5.24 rebuild
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.003-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.003-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.003-5
- Perl 5.22 re-rebuild of bootstrapped packages
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.003-4
- Perl 5.22 rebuild
* 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.