From 1e678ba71b6d35f844e1d6dd0c6cad0381fa7909 Mon Sep 17 00:00:00 2001 From: TizenOpenSource Date: Wed, 14 Feb 2024 11:16:59 +0900 Subject: [PATCH] Bump to 1.27 Signed-off-by: TizenOpenSource --- packaging/perl-File-Which.manifest | 5 +++ packaging/perl-File-Which.spec | 72 ++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 packaging/perl-File-Which.manifest create mode 100644 packaging/perl-File-Which.spec diff --git a/packaging/perl-File-Which.manifest b/packaging/perl-File-Which.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/perl-File-Which.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/perl-File-Which.spec b/packaging/perl-File-Which.spec new file mode 100644 index 0000000..cdc8cfa --- /dev/null +++ b/packaging/perl-File-Which.spec @@ -0,0 +1,72 @@ +# +# spec file for package perl-File-Which +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global cpan_name File-Which +Name: perl-File-Which +Version: 1.27 +Release: 0 +Summary: Perl implementation of the which utility as an API +License: Artistic-1.0 OR GPL-1.0-or-later +URL: https://metacpan.org/release/%{cpan_name} +Source0: %{cpan_name}-%{version}.tar.gz +Source1001: %{name}.manifest + +BuildRequires: perl + +BuildArch: noarch + +%description +File::Which 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. + +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 App::pwhich which provides a command line +interface to this API. + +%prep +%setup -q -n File-Which-%{version} +cp %{SOURCE1001} . + +%build +%{__perl} Makefile.PL +%{__make} %{?_smp_mflags} + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%check +%{__make} test + +%files -f %{name}.files +%manifest %{name}.manifest +%license LICENSE + + -- 2.34.1