11
0

3 Commits

3 changed files with 31 additions and 7 deletions

12
README.md Normal file
View File

@@ -0,0 +1,12 @@
## Build Results
Current state of perl in openSUSE:Factory is
![Factory build results](https://br.opensuse.org/status/openSUSE:Factory/perl-File-Which/standard)
The current state of perl in the devel project build (devel:languages:perl)
![Devel project build results](https://br.opensuse.org/status/devel:languages:perl/perl-File-Which)

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 14 21:26:38 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Sun May 9 03:06:55 UTC 2021 - Tina Müller <timueller+perl@suse.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-File-Which
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,16 +18,21 @@
%define cpan_name File-Which
Name: perl-File-Which
Version: 1.27
Version: 1.270.0
Release: 0
Summary: Perl implementation of the which utility as an API
# 1.27 -> normalize -> 1.270.0
%define cpan_version 1.27
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Perl implementation of the which utility as an API
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{version}.tar.gz
Source0: https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(File::Which) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
@@ -50,8 +55,9 @@ 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
%autosetup -n %{cpan_name}-%{cpan_version} -p1
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
# MANUAL BEGIN
chmod a+x corpus/test-bin-unix/0
# MANUAL END
@@ -69,7 +75,7 @@ make test
%perl_gen_filelist
%files -f %{name}.files
%doc author.yml Changes README
%doc Changes README
%license LICENSE
%changelog