|
|
d7070c |
Name: perl-File-CheckTree
|
|
|
d7070c |
Version: 4.42
|
|
|
00077f |
Release: 3%{?dist}
|
|
|
d7070c |
Summary: Run many file-test checks on a tree
|
|
|
d7070c |
License: GPL+ or Artistic
|
|
|
d7070c |
Group: Development/Libraries
|
|
|
d7070c |
URL: http://search.cpan.org/dist/File-CheckTree/
|
|
|
d7070c |
Source0: http://www.cpan.org/authors/id/R/RJ/RJBS/File-CheckTree-%{version}.tar.gz
|
|
|
d7070c |
BuildArch: noarch
|
|
|
d7070c |
BuildRequires: perl
|
|
|
d7070c |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
|
|
d7070c |
BuildRequires: perl(strict)
|
|
|
d7070c |
BuildRequires: perl(warnings)
|
|
|
d7070c |
# Run-time:
|
|
|
d7070c |
BuildRequires: perl(Cwd)
|
|
|
d7070c |
%if 0%(perl -e 'print $] > 5.017')
|
|
|
d7070c |
BuildRequires: perl(deprecate)
|
|
|
d7070c |
%endif
|
|
|
d7070c |
BuildRequires: perl(Exporter)
|
|
|
d7070c |
BuildRequires: perl(File::Spec)
|
|
|
d7070c |
BuildRequires: perl(if)
|
|
|
d7070c |
# Tests:
|
|
|
d7070c |
BuildRequires: perl(overload)
|
|
|
d7070c |
BuildRequires: perl(Test::More)
|
|
|
d7070c |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
d7070c |
%if 0%(perl -e 'print $] > 5.017')
|
|
|
d7070c |
Requires: perl(deprecate)
|
|
|
d7070c |
%endif
|
|
|
d7070c |
|
|
|
d7070c |
%description
|
|
|
d7070c |
File::CheckTree::validate() routine takes a single multi-line string
|
|
|
d7070c |
consisting of directives, each containing a file name plus a file test to try
|
|
|
d7070c |
on it. (The file test may also be a "cd", causing subsequent relative file
|
|
|
d7070c |
names to be interpreted relative to that directory.) After the file test you
|
|
|
d7070c |
may put || die to make it a fatal error if the file test fails. The default is
|
|
|
d7070c |
|| warn. The file test may optionally have a "!' prepended to test for the
|
|
|
d7070c |
opposite condition. If you do a cd and then list some relative file names, you
|
|
|
d7070c |
may want to indent them slightly for readability. If you supply your own die()
|
|
|
d7070c |
or warn() message, you can use $file to interpolate the file name.
|
|
|
d7070c |
|
|
|
d7070c |
%prep
|
|
|
d7070c |
%setup -q -n File-CheckTree-%{version}
|
|
|
d7070c |
|
|
|
d7070c |
%build
|
|
|
d7070c |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
d7070c |
make %{?_smp_mflags}
|
|
|
d7070c |
|
|
|
d7070c |
%install
|
|
|
d7070c |
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
d7070c |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
d7070c |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
d7070c |
|
|
|
d7070c |
%check
|
|
|
d7070c |
make test
|
|
|
d7070c |
|
|
|
d7070c |
%files
|
|
|
d7070c |
%doc Changes LICENSE README
|
|
|
d7070c |
%{perl_vendorlib}/*
|
|
|
d7070c |
%{_mandir}/man3/*
|
|
|
d7070c |
|
|
|
d7070c |
%changelog
|
|
|
00077f |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.42-3
|
|
|
00077f |
- Mass rebuild 2013-12-27
|
|
|
00077f |
|
|
|
d7070c |
* Tue May 28 2013 Petr Pisar <ppisar@redhat.com> - 4.42-2
|
|
|
d7070c |
- Correct typo in dependencies
|
|
|
d7070c |
|
|
|
d7070c |
* Fri Feb 08 2013 Petr Pisar <ppisar@redhat.com> 4.42-1
|
|
|
d7070c |
- Specfile autogenerated by cpanspec 1.78.
|