f847e06f36
- updated to 1.27 see /usr/share/doc/packages/perl-File-Which/Changes 1.27 2021-05-07 04:54:31 -0600 - Production release identical to 1.26_01 1.26_01 2021-04-27 05:15:20 -0600 - Fix bug in test where test files sometimes didn't have execute permissions (gh#31) - Add Env as an explicit test prereq (gh#13, gh#32) 1.25_01 2021-04-25 07:35:41 -0600 - Tests should now work when Perl isn't in the PATH (gh#29, gh#30) OBS-URL: https://build.opensuse.org/request/show/891818 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-File-Which?expand=0&rev=36
76 lines
2.6 KiB
RPMSpec
76 lines
2.6 KiB
RPMSpec
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
%define 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: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
%{perl_requires}
|
|
|
|
%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
|
|
%autosetup -n %{cpan_name}-%{version}
|
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
|
# MANUAL BEGIN
|
|
chmod a+x corpus/test-bin-unix/0
|
|
# MANUAL END
|
|
|
|
%build
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
|
%make_build
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
%perl_gen_filelist
|
|
|
|
%files -f %{name}.files
|
|
%doc author.yml Changes README
|
|
%license LICENSE
|
|
|
|
%changelog
|