File perl-Wiki-JSON.spec of Package perl-Wiki-JSON
#
# spec file for package perl-Wiki-JSON
#
# Copyright (c) 2025 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 Wiki-JSON
Name: perl-Wiki-JSON
Version: 0.0.31
Release: 0
License: GPL-1.0-or-later
Summary: Parse wiki-like articles to a data-structure transformable to JSON
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/S/SE/SERGIOXZ/%{cpan_name}-v%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Const::Fast)
BuildRequires: perl(Cpanel::JSON::XS)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Mojolicious)
BuildRequires: perl(Moo)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Test::Most)
BuildRequires: perl(Test::Output)
Requires: perl(Const::Fast)
Requires: perl(Cpanel::JSON::XS)
Requires: perl(Module::Build)
Requires: perl(Mojolicious)
Requires: perl(Moo)
Requires: perl(Path::Tiny)
Requires: perl(Test::Most)
Requires: perl(Test::Output)
%{perl_requires}
%description
A parser for a subset of a mediawiki-like syntax, quirks include some
supposedly inline elements are parsed multi-line like headers, templates*,
italic and bolds.
Lists are only one level and not everything in mediawiki is supported by
the moment.
%prep
%autosetup -n %{cpan_name}-v%{version}
%build
perl Build.PL --installdirs=vendor
./Build build --flags=%{?_smp_mflags}
%check
./Build test
%install
./Build install --destdir=%{buildroot} --create_packlist=0
%perl_gen_filelist
%files -f %{name}.files
%doc Changes CONTRIBUTING.md README.md try.wiki
%license LICENSE
%changelog