2016-01-22 14:41:54 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Test-PerlTidy
|
|
|
|
#
|
2023-03-10 10:42:02 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2016-01-22 14:41:54 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-03-14 10:42:01 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-01-22 14:41:54 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-07-19 06:59:30 +00:00
|
|
|
%define cpan_name Test-PerlTidy
|
2016-01-22 14:41:54 +00:00
|
|
|
Name: perl-Test-PerlTidy
|
2023-03-10 10:42:02 +00:00
|
|
|
Version: 20230226
|
2016-01-22 14:41:54 +00:00
|
|
|
Release: 0
|
2019-03-14 10:42:01 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2022-09-08 19:47:00 +00:00
|
|
|
Summary: Check that all your files are tidy
|
2020-10-05 12:31:57 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2019-03-14 10:42:01 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/%{cpan_name}-%{version}.tar.gz
|
2017-03-15 13:40:40 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:17:51 +02:00
|
|
|
Source100: README.md
|
2019-03-14 10:42:01 +00:00
|
|
|
BuildArch: noarch
|
2016-01-22 14:41:54 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2019-03-14 10:42:01 +00:00
|
|
|
BuildRequires: perl(Module::Build) >= 0.280000
|
2020-04-15 16:18:34 +00:00
|
|
|
BuildRequires: perl(Path::Tiny) >= 0.100
|
2022-09-08 19:47:00 +00:00
|
|
|
BuildRequires: perl(Perl::Tidy) >= 20220613
|
2019-03-14 10:42:01 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.88
|
2016-01-22 14:41:54 +00:00
|
|
|
BuildRequires: perl(Text::Diff)
|
|
|
|
BuildRequires: perl(parent)
|
2020-04-15 16:18:34 +00:00
|
|
|
Requires: perl(Path::Tiny) >= 0.100
|
2022-09-08 19:47:00 +00:00
|
|
|
Requires: perl(Perl::Tidy) >= 20220613
|
2016-01-22 14:41:54 +00:00
|
|
|
Requires: perl(Text::Diff)
|
|
|
|
Requires: perl(parent)
|
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2017-03-15 13:38:37 +00:00
|
|
|
This test submodule runs perltidy on files and reports errors if any
|
|
|
|
of the files differ after having been tidied. It does not permanently
|
|
|
|
modify the files being tested.
|
2016-01-22 14:41:54 +00:00
|
|
|
|
2017-03-15 13:38:37 +00:00
|
|
|
By default, perltidy will be run on files under the current directory
|
|
|
|
and its subdirectories with extensions matching: .pm .pl .PL .t.
|
2016-01-22 14:41:54 +00:00
|
|
|
|
|
|
|
%prep
|
2021-07-19 06:59:30 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{version}
|
2016-01-22 14:41:54 +00:00
|
|
|
|
|
|
|
%build
|
2019-03-14 10:42:01 +00:00
|
|
|
perl Build.PL installdirs=vendor
|
|
|
|
./Build build flags=%{?_smp_mflags}
|
2016-01-22 14:41:54 +00:00
|
|
|
|
|
|
|
%check
|
2019-03-14 10:42:01 +00:00
|
|
|
./Build test
|
2016-01-22 14:41:54 +00:00
|
|
|
|
|
|
|
%install
|
2019-03-14 10:42:01 +00:00
|
|
|
./Build install destdir=%{buildroot} create_packlist=0
|
2016-01-22 14:41:54 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2019-03-14 10:42:01 +00:00
|
|
|
%doc Changes README
|
2016-01-22 14:41:54 +00:00
|
|
|
|
|
|
|
%changelog
|