%define upstream_name File-Which %define upstream_version 1.09 Name: perl-%{upstream_name} Version: %perl_convert_version %{upstream_version} Release: %mkrel 2 Summary: Portable implementation of the `which' utility License: GPL+ or Artistic Group: Development/Perl Url: http://search.cpan.org/dist/%{upstream_name}/ Source0: http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz BuildRequires: perl(Test::Script) BuildArch: noarch %description File::Which was created to be able to get the paths to executable programs on systems under which the `which' program wasn't implemented in the shell. File::Which searches the directories of the user's PATH (as returned by File::Spec->path()), looking for executable files having the name specified as a parameter to which(). Under Win32 systems, which do not have a notion of directly executable files, but uses special extensions such as .exe and .bat to identify them, File::Which takes extra steps to assure that you will find the correct file (so for example, you might be searching for perl, it'll try perl.exe, perl.bat, etc.) These slurp/spew subs work for files, pipes and sockets, and stdio, pseudo-files, and DATA. %prep %setup -q -n %{upstream_name}-%{upstream_version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor %make %check %{__make} test %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README Changes META.yml %{_bindir}/pwhich %{_mandir}/man1/* %{_mandir}/man3*/* %{perl_vendorlib}/File %changelog * Sun Jan 13 2013 umeabot <umeabot> 1.90.0-2.mga3 + Revision: 367408 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Wed Jan 19 2011 jquelin <jquelin> 1.90.0-1.mga1 + Revision: 24346 - fix specs - imported package perl-File-Which