98 lines
3.3 KiB
RPMSpec
98 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package perl-Dist-Zilla-Plugin-CheckExtraTests
|
|
#
|
|
# 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 Dist-Zilla-Plugin-CheckExtraTests
|
|
Name: perl-Dist-Zilla-Plugin-CheckExtraTests
|
|
Version: 0.29.0
|
|
Release: 0
|
|
# 0.029 -> normalize -> 0.29.0
|
|
%define cpan_version 0.029
|
|
License: Apache-2.0
|
|
Summary: Check xt tests before release
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(App::Prove) >= 3.00
|
|
BuildRequires: perl(Archive::Tar)
|
|
BuildRequires: perl(Capture::Tiny)
|
|
BuildRequires: perl(Dist::Zilla) >= 4.3
|
|
BuildRequires: perl(Dist::Zilla::App)
|
|
BuildRequires: perl(Dist::Zilla::App::Tester)
|
|
BuildRequires: perl(Dist::Zilla::Role::BeforeRelease)
|
|
BuildRequires: perl(Dist::Zilla::Role::TestRunner)
|
|
BuildRequires: perl(File::pushd)
|
|
BuildRequires: perl(Moose) >= 2
|
|
BuildRequires: perl(Params::Util)
|
|
BuildRequires: perl(Path::Iterator::Rule)
|
|
BuildRequires: perl(Path::Tiny) >= 0.013
|
|
BuildRequires: perl(Sub::Exporter)
|
|
BuildRequires: perl(Test::More) >= 0.88
|
|
BuildRequires: perl(Test::Requires)
|
|
BuildRequires: perl(Try::Tiny)
|
|
BuildRequires: perl(namespace::autoclean) >= 0.09
|
|
Requires: perl(App::Prove) >= 3.00
|
|
Requires: perl(Archive::Tar)
|
|
Requires: perl(Dist::Zilla) >= 4.3
|
|
Requires: perl(Dist::Zilla::App)
|
|
Requires: perl(Dist::Zilla::Role::BeforeRelease)
|
|
Requires: perl(Dist::Zilla::Role::TestRunner)
|
|
Requires: perl(File::pushd)
|
|
Requires: perl(Moose) >= 2
|
|
Requires: perl(Path::Iterator::Rule)
|
|
Requires: perl(Path::Tiny) >= 0.013
|
|
Requires: perl(namespace::autoclean) >= 0.09
|
|
Provides: perl(Dist::Zilla::App::Command::xtest) = %{version}
|
|
Provides: perl(Dist::Zilla::Plugin::CheckExtraTests) = %{version}
|
|
Provides: perl(Dist::Zilla::Plugin::RunExtraTests) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
Runs all xt tests before release. Dies if any fail. Sets RELEASE_TESTING
|
|
and AUTHOR_TESTING.
|
|
|
|
If you use Dist::Zilla::Plugin::TestRelease, you should consider using
|
|
Dist::Zilla::Plugin::RunExtraTests instead, which enables xt tests to run
|
|
as part of '[TestRelease]' and is thus a bit more efficient as the
|
|
distribution is only built once for testing.
|
|
|
|
%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 CONTRIBUTING.mkdn README
|
|
%license LICENSE
|
|
|
|
%changelog
|