Files
perl-File-Util/perl-File-Util.spec
2025-08-12 18:14:13 +02:00

87 lines
3.2 KiB
RPMSpec

#
# spec file for package perl-File-Util
#
# Copyright (c) 2024 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-Util
Name: perl-File-Util
Version: 4.201.720
Release: 0
# 4.201720 -> normalize -> 4.201.720
%define cpan_version 4.201720
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Easy, versatile, portable file handling
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/T/TO/TOMMY/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Module::Build) >= 0.28
BuildRequires: perl(Test::NoWarnings)
Provides: perl(File::Util) = %{version}
Provides: perl(File::Util::Definitions) = %{version}
Provides: perl(File::Util::Exception) = %{version}
Provides: perl(File::Util::Exception::Diagnostic) = %{version}
Provides: perl(File::Util::Exception::Standard) = %{version}
Provides: perl(File::Util::Interface::Classic) = %{version}
Provides: perl(File::Util::Interface::Modern) = %{version}
%undefine __perllib_provides
Recommends: perl(Unicode::UTF8) >= 0.580
%{perl_requires}
%description
File::Util provides a comprehensive toolbox of utilities to automate all
kinds of common tasks on files and directories. Its purpose is to do so in
the most *portable* manner possible so that users of this module won't have
to worry about whether their programs will work on other operating systems
and/or architectures. It works on Linux, Windows, Mac, BSD, Unix and
others.
File::Util is written *purely in Perl*, and requires no compiler or make
utility on your system in order to install and run it. It loads a minimal
amount of code when used, only pulling in support for lesser-used methods
on demand. It has no dependencies other than what comes installed with Perl
itself.
File::Util also aims to be as backward compatible as possible, running
without problems on Perl installations as old as 5.006. You are encouraged
to run File::Util on Perl version 5.8 and above.
After browsing this document, please have a look at the other
documentation. _(See DOCUMENTATION section below.)_
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc AUTHORS Changes examples NEWS README TODO
%license COPYING LICENSE
%changelog