forked from pool/perl-File-Which
Accepting request 304993 from devel:languages:perl:autoupdate
automatic update OBS-URL: https://build.opensuse.org/request/show/304993 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Which?expand=0&rev=22
This commit is contained in:
committed by
Git OBS Bridge
parent
5b2ec4ae77
commit
6ff93d52b3
@@ -17,33 +17,40 @@
|
||||
|
||||
|
||||
Name: perl-File-Which
|
||||
Version: 1.16
|
||||
Version: 1.17
|
||||
Release: 0
|
||||
%define cpan_name File-Which
|
||||
Summary: Portable implementation of the `which' utility
|
||||
Summary: Perl implementation of the which utility as an API
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/File-Which/
|
||||
Source: http://www.cpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
|
||||
Source0: http://www.cpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
BuildRequires: perl(Test::More) >= 0.80
|
||||
BuildRequires: perl(Test::More) >= 0.94
|
||||
%{perl_requires}
|
||||
|
||||
%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.
|
||||
the File::Which manpage finds the full or relative paths to executable
|
||||
programs on the system. This is normally the function of 'which' utility.
|
||||
'which' is typically implemented as either a program or a built in shell
|
||||
command. On some platforms, such as Microsoft Windows it is not provided as
|
||||
part of the core operating system. This module provides a consistent API to
|
||||
this functionality regardless of the underlying platform.
|
||||
|
||||
'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.)
|
||||
The focus of this module is correctness and portability. As a consequence
|
||||
platforms where the current directory is implicitly part of the search path
|
||||
such as Microsoft Windows will find executables in the current directory,
|
||||
whereas on platforms such as UNIX where this is not the case executables in
|
||||
the current directory will only be found if the current directory is
|
||||
explicitly added to the path.
|
||||
|
||||
If you need a portable 'which' on the command line in an environment that
|
||||
does not provide it, install the App::pwhich manpage which provides a
|
||||
command line interface to this API.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
Reference in New Issue
Block a user