diff --git a/File-Which-1.16.tar.gz b/File-Which-1.16.tar.gz deleted file mode 100644 index d823daa..0000000 --- a/File-Which-1.16.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f53ddcc3a2b04bcf51759352536087206f45efddcd50841ab820893bb831323c -size 17194 diff --git a/File-Which-1.17.tar.gz b/File-Which-1.17.tar.gz new file mode 100644 index 0000000..6961a84 --- /dev/null +++ b/File-Which-1.17.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e71d887ca9f76238e9d68aa45135f4540d955ee9e83a337946d576f518166663 +size 20497 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b7ec50 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,23 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module diff --git a/perl-File-Which.changes b/perl-File-Which.changes index 144ec79..1b3e491 100644 --- a/perl-File-Which.changes +++ b/perl-File-Which.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat May 2 05:50:03 UTC 2015 - coolo@suse.com + +- updated to 1.17 + see /usr/share/doc/packages/perl-File-Which/Changes + ------------------------------------------------------------------- Tue Apr 14 19:56:03 UTC 2015 - coolo@suse.com diff --git a/perl-File-Which.spec b/perl-File-Which.spec index e39eea1..d67e522 100644 --- a/perl-File-Which.spec +++ b/perl-File-Which.spec @@ -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}