116 lines
4.0 KiB
RPMSpec
116 lines
4.0 KiB
RPMSpec
#
|
|
# spec file for package perl-Dist-Zilla-Plugin-TaskWeaver
|
|
#
|
|
# 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-TaskWeaver
|
|
Name: perl-Dist-Zilla-Plugin-TaskWeaver
|
|
Version: 0.101.629
|
|
Release: 0
|
|
%define cpan_version 0.101629
|
|
License: Artistic-1.0 OR GPL-1.0-or-later
|
|
Summary: PodWeaver plugin used to build Task distributions
|
|
URL: https://metacpan.org/release/%{cpan_name}
|
|
Source0: https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{cpan_name}-%{cpan_version}.tar.gz
|
|
Source1: cpanspec.yml
|
|
Source100: README.md
|
|
BuildArch: noarch
|
|
BuildRequires: perl
|
|
BuildRequires: perl-macros
|
|
BuildRequires: perl(Dist::Zilla) >= 2
|
|
BuildRequires: perl(Dist::Zilla::Plugin::PodWeaver)
|
|
BuildRequires: perl(Dist::Zilla::Role::FileGatherer)
|
|
BuildRequires: perl(Dist::Zilla::Role::PrereqSource)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.78
|
|
BuildRequires: perl(Moose)
|
|
BuildRequires: perl(Pod::Elemental)
|
|
BuildRequires: perl(Pod::Elemental::Selectors)
|
|
BuildRequires: perl(Pod::Elemental::Transformer::Nester)
|
|
BuildRequires: perl(Pod::Weaver) >= 3
|
|
BuildRequires: perl(Pod::Weaver::Role::Dialect)
|
|
BuildRequires: perl(Pod::Weaver::Role::Section)
|
|
BuildRequires: perl(Test::More) >= 0.96
|
|
BuildRequires: perl(namespace::autoclean)
|
|
Requires: perl(Dist::Zilla) >= 2
|
|
Requires: perl(Dist::Zilla::Plugin::PodWeaver)
|
|
Requires: perl(Dist::Zilla::Role::FileGatherer)
|
|
Requires: perl(Dist::Zilla::Role::PrereqSource)
|
|
Requires: perl(Moose)
|
|
Requires: perl(Pod::Elemental)
|
|
Requires: perl(Pod::Elemental::Selectors)
|
|
Requires: perl(Pod::Elemental::Transformer::Nester)
|
|
Requires: perl(Pod::Weaver) >= 3
|
|
Requires: perl(Pod::Weaver::Role::Dialect)
|
|
Requires: perl(Pod::Weaver::Role::Section)
|
|
Requires: perl(Test::More) >= 0.96
|
|
Requires: perl(namespace::autoclean)
|
|
Provides: perl(Dist::Zilla::Plugin::TaskWeaver) = %{version}
|
|
Provides: perl(Pod::Weaver::Plugin::TaskWeaver) = %{version}
|
|
%undefine __perllib_provides
|
|
%{perl_requires}
|
|
|
|
%description
|
|
The TaskWeaver plugin acts just like the PodWeaver plugin, but gets its
|
|
claws just a bit into your Pod::Weaver configuration and then uses them to
|
|
figure out prerequisites and grouping for building a Task distribution.
|
|
|
|
The 'Task::' namespace is used for libraries that do not have any code of
|
|
their own, but are just ways of getting a lot of other libraries installed
|
|
at once. In other words, they're just prerequisites with no actual logic.
|
|
|
|
TaskWeaver expects that your _.pm_ file will have Pod like the following:
|
|
|
|
=pkgroup Modules That are Useful
|
|
|
|
=pkg Sub::Exporter 0.901 first version with teeth
|
|
|
|
=pkg Sub::Import
|
|
|
|
=pkgroup Modules That are Useless
|
|
|
|
=pkg Acme::ProgressBar 1.10
|
|
|
|
The '=pkgroup' directives start groups of prerequisites. You must have at
|
|
least one '=pkgroup' (although that may change). The '=pkg' directives list
|
|
specific directives, and are in the following format:
|
|
|
|
=pkg Package::Name min_version reason
|
|
|
|
Both 'min_version' and 'reason' are optional, although you can't give a
|
|
reason without giving a version. If a reason is given, it will be included
|
|
in the Pod to explain why the specific version is required.
|
|
|
|
%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
|