Files
perl-Test-Portability-Files/perl-Test-Portability-Files.spec
2025-08-12 18:17:52 +02:00

102 lines
2.9 KiB
RPMSpec

#
# spec file for package perl-Test-Portability-Files
#
# 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 Test-Portability-Files
Name: perl-Test-Portability-Files
Version: 0.100.0
Release: 0
# 0.10 -> normalize -> 0.100.0
%define cpan_version 0.10
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Check file names portability
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/A/AB/ABRAXXA/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(File::Temp) >= 0.2304
BuildRequires: perl(Test::More) >= 0.98
Provides: perl(Test::Portability::Files) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This module is used to check the portability across operating systems of
the names of the files present in the distribution of a module. The tests
use the advices given in perlport/"Files and Filesystems". The author of a
distribution can select which tests to execute.
To use this module, simply copy the code from the synopsis in a test file
named _t/portfs.t_ for example, and add it to your _MANIFEST_. You can
delete the call to 'options()' to enable only most common tests.
By default, not all tests are enabled because some are judged too
cumbersome to be practical, especially since some of the most limited
platforms (like MS-DOS) seem to be no longer supported. Here are the
default options:
* 'use_file_find' is _not_ enabled (check only the names as listed in
_MANIFEST_)
* 'test_amiga_length' is _not_ enabled
* 'test_ansi_chars' is enabled
* 'test_case' is enabled
* 'test_dos_length' is _not_ enabled
* 'test_mac_length' is _not_ enabled
* 'test_one_dot' is enabled
* 'test_space' is enabled
* 'test_special_chars' is enabled
* 'test_symlink' is enabled
* 'test_vms_length' is enabled
* 'test_windows_reserved' is enabled
To change any option, please see 'options()'.
%prep
%autosetup -n %{cpan_name}-%{cpan_version}
%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 Changes README
%license LICENSE
%changelog