Files
perl-Perinci-Examples/perl-Perinci-Examples.spec

109 lines
4.1 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package perl-Perinci-Examples
#
# 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 Perinci-Examples
Name: perl-Perinci-Examples
Version: 0.825.0
Release: 0
# 0.825 -> normalize -> 0.825.0
%define cpan_version 0.825
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Various examples of Rinci metadata
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
2025-08-12 18:16:25 +02:00
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(List::Util) >= 1.54
BuildRequires: perl(Log::ger) >= 0.38.0
BuildRequires: perl(Perinci::Object) >= 0.311
BuildRequires: perl(Perinci::Sub::Property::arg::cmdline)
BuildRequires: perl(Perinci::Sub::Util) >= 0.472
BuildRequires: perl(Scalar::Util::Numeric)
Requires: perl(List::Util) >= 1.54
Requires: perl(Log::ger) >= 0.38.0
Requires: perl(Perinci::Object) >= 0.311
Requires: perl(Perinci::Sub::Property::arg::cmdline)
Requires: perl(Perinci::Sub::Util) >= 0.472
Requires: perl(Scalar::Util::Numeric)
Provides: perl(Perinci::Examples) = %{version}
Provides: perl(Perinci::Examples::ArgsAs) = %{version}
Provides: perl(Perinci::Examples::CLI) = %{version}
Provides: perl(Perinci::Examples::CSV) = %{version}
Provides: perl(Perinci::Examples::CmdLineResMeta) = %{version}
Provides: perl(Perinci::Examples::CmdLineSrc) = %{version}
Provides: perl(Perinci::Examples::Coercion) = %{version}
Provides: perl(Perinci::Examples::Completion) = %{version}
Provides: perl(Perinci::Examples::FilePartial) = %{version}
Provides: perl(Perinci::Examples::FileStream) = %{version}
Provides: perl(Perinci::Examples::NoMeta) = %{version}
Provides: perl(Perinci::Examples::ResultNaked) = %{version}
Provides: perl(Perinci::Examples::RiapSub) = %{version}
Provides: perl(Perinci::Examples::Stream) = %{version}
Provides: perl(Perinci::Examples::SubMeta) = %{version}
Provides: perl(Perinci::Examples::Table) = %{version}
Provides: perl(Perinci::Examples::Tiny) = %{version}
Provides: perl(Perinci::Examples::Tiny::Args) = %{version}
Provides: perl(Perinci::Examples::Tiny::Result) = %{version}
Provides: perl(Perinci::Examples::Tx) = %{version}
Provides: perl(Perinci::Examples::Version) = %{version}
Provides: perl(Perinci::Examples::rimetadb::ExcludedPackage) = %{version}
Provides: perl(Perinci::Examples::rimetadb::IncludedPackage) = %{version}
%undefine __perllib_provides
%{perl_requires}
%description
This distribution contains an odd mix of various functions, variables, and
other code entities, along with their Rinci metadata. Mostly used for
testing Rinci specification and the various Perinci modules.
Example scripts are put in a separate distribution (see
Perinci::Examples::Bin) to make dependencies for this distribution minimal
(e.g. not depending on Perinci::CmdLine::Any) since this example module(s)
are usually used in the tests of other modules.
A sample description
verbatim
line2
Another paragraph with _bold_, _italic_ text.
%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