2012-10-03 16:08:43 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Dist-Zilla-Plugin-Test-Portability
|
|
|
|
#
|
2024-03-12 17:14:55 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2012-10-03 16:08:43 +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.
|
|
|
|
|
2022-08-24 07:41:59 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-10-03 16:08:43 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-08-24 07:41:59 +00:00
|
|
|
%define cpan_name Dist-Zilla-Plugin-Test-Portability
|
2012-10-03 16:08:43 +00:00
|
|
|
Name: perl-Dist-Zilla-Plugin-Test-Portability
|
2025-01-09 16:25:26 +00:00
|
|
|
Version: 2.1.3
|
2012-10-03 16:08:43 +00:00
|
|
|
Release: 0
|
2025-01-09 16:25:26 +00:00
|
|
|
# 2.001003 -> normalize -> 2.1.3
|
|
|
|
%define cpan_version 2.001003
|
2022-08-24 07:41:59 +00:00
|
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
2016-06-12 14:09:39 +00:00
|
|
|
Summary: Author tests for portability
|
2022-08-24 07:41:59 +00:00
|
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
2024-03-12 17:14:55 +00:00
|
|
|
Source0: https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{cpan_name}-%{cpan_version}.tar.gz
|
2015-04-17 05:50:16 +00:00
|
|
|
Source1: cpanspec.yml
|
2025-08-12 18:13:46 +02:00
|
|
|
Source100: README.md
|
2012-10-03 16:08:43 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
2022-08-24 07:41:59 +00:00
|
|
|
BuildRequires: perl(Data::Section) >= 0.004
|
2015-04-17 05:50:16 +00:00
|
|
|
BuildRequires: perl(Dist::Zilla::File::InMemory)
|
|
|
|
BuildRequires: perl(Dist::Zilla::Role::FileGatherer)
|
|
|
|
BuildRequires: perl(Dist::Zilla::Role::FileInjector)
|
2016-06-12 14:09:39 +00:00
|
|
|
BuildRequires: perl(Dist::Zilla::Role::PrereqSource)
|
2015-04-17 05:50:16 +00:00
|
|
|
BuildRequires: perl(Dist::Zilla::Role::TextTemplate)
|
2017-06-25 06:58:28 +00:00
|
|
|
BuildRequires: perl(File::pushd)
|
2024-03-12 17:14:55 +00:00
|
|
|
BuildRequires: perl(Module::Build)
|
2017-06-25 06:58:28 +00:00
|
|
|
BuildRequires: perl(Module::Build::Tiny) >= 0.034
|
|
|
|
BuildRequires: perl(Module::Metadata)
|
2012-10-03 16:08:43 +00:00
|
|
|
BuildRequires: perl(Moose)
|
2017-06-25 06:58:28 +00:00
|
|
|
BuildRequires: perl(Path::Tiny)
|
2022-08-24 07:41:59 +00:00
|
|
|
BuildRequires: perl(Sub::Exporter::ForMethods)
|
2012-10-03 16:08:43 +00:00
|
|
|
BuildRequires: perl(Test::DZil)
|
2017-06-25 06:58:28 +00:00
|
|
|
BuildRequires: perl(Test::Deep)
|
2022-08-24 07:41:59 +00:00
|
|
|
BuildRequires: perl(Test::More) >= 0.96
|
2012-10-03 16:08:43 +00:00
|
|
|
BuildRequires: perl(Test::Portability::Files)
|
2017-06-25 06:58:28 +00:00
|
|
|
BuildRequires: perl(Test::Warnings) >= 0.009
|
2022-08-24 07:41:59 +00:00
|
|
|
BuildRequires: perl(namespace::autoclean)
|
|
|
|
Requires: perl(Data::Section) >= 0.004
|
2015-04-17 05:50:16 +00:00
|
|
|
Requires: perl(Dist::Zilla::File::InMemory)
|
|
|
|
Requires: perl(Dist::Zilla::Role::FileGatherer)
|
|
|
|
Requires: perl(Dist::Zilla::Role::FileInjector)
|
2016-06-12 14:09:39 +00:00
|
|
|
Requires: perl(Dist::Zilla::Role::PrereqSource)
|
2015-04-17 05:50:16 +00:00
|
|
|
Requires: perl(Dist::Zilla::Role::TextTemplate)
|
2012-10-03 16:08:43 +00:00
|
|
|
Requires: perl(Moose)
|
2022-08-24 07:41:59 +00:00
|
|
|
Requires: perl(Sub::Exporter::ForMethods)
|
|
|
|
Requires: perl(namespace::autoclean)
|
2024-03-12 17:14:55 +00:00
|
|
|
Provides: perl(Dist::Zilla::Plugin::PortabilityTests) = %{version}
|
|
|
|
Provides: perl(Dist::Zilla::Plugin::Test::Portability) = %{version}
|
|
|
|
%undefine __perllib_provides
|
2012-10-03 16:08:43 +00:00
|
|
|
%{perl_requires}
|
|
|
|
|
|
|
|
%description
|
2016-06-12 14:09:39 +00:00
|
|
|
This is an extension of Dist::Zilla::Plugin::InlineFiles, providing the
|
|
|
|
following file:
|
2012-10-03 16:08:43 +00:00
|
|
|
|
2016-06-12 14:09:39 +00:00
|
|
|
xt/author/portability.t - a standard Test::Portability::Files test
|
2012-10-03 16:08:43 +00:00
|
|
|
|
|
|
|
You can set options for the tests in the 'options' attribute: Specify 'name
|
|
|
|
= value' separated by commas.
|
|
|
|
|
2016-06-12 14:09:39 +00:00
|
|
|
See Test::Portability::Files/options for possible options.
|
2012-10-03 16:08:43 +00:00
|
|
|
|
|
|
|
%prep
|
2024-03-12 17:14:55 +00:00
|
|
|
%autosetup -n %{cpan_name}-%{cpan_version}
|
2012-10-03 16:08:43 +00:00
|
|
|
|
|
|
|
%build
|
2022-08-24 07:41:59 +00:00
|
|
|
perl Build.PL --installdirs=vendor
|
2017-06-25 06:58:28 +00:00
|
|
|
./Build build --flags=%{?_smp_mflags}
|
2012-10-03 16:08:43 +00:00
|
|
|
|
|
|
|
%check
|
2017-06-25 06:58:28 +00:00
|
|
|
./Build test
|
2012-10-03 16:08:43 +00:00
|
|
|
|
|
|
|
%install
|
2017-06-25 06:58:28 +00:00
|
|
|
./Build install --destdir=%{buildroot} --create_packlist=0
|
2012-10-03 16:08:43 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2017-06-25 06:58:28 +00:00
|
|
|
%doc Changes CONTRIBUTING README
|
2022-08-24 07:41:59 +00:00
|
|
|
%license LICENCE
|
2012-10-03 16:08:43 +00:00
|
|
|
|
|
|
|
%changelog
|