Files
perl-WikiText/perl-WikiText.spec
2025-08-12 18:18:27 +02:00

96 lines
3.1 KiB
RPMSpec

#
# spec file for package perl-WikiText
#
# 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 WikiText
Name: perl-WikiText
Version: 0.190.0
Release: 0
# 0.19 -> normalize -> 0.190.0
%define cpan_version 0.19
License: Artistic-1.0 OR GPL-1.0-or-later
Summary: Wiki Text Conversion Tools
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/I/IN/INGY/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
Provides: perl(WikiText) = %{version}
Provides: perl(WikiText::Alias)
Provides: perl(WikiText::Creole)
Provides: perl(WikiText::DokuWiki)
Provides: perl(WikiText::Emitter)
Provides: perl(WikiText::HTML)
Provides: perl(WikiText::HTML::Emitter)
Provides: perl(WikiText::Kwiki)
Provides: perl(WikiText::MediaWiki)
Provides: perl(WikiText::MoinMoin)
Provides: perl(WikiText::OddMuse)
Provides: perl(WikiText::PBWiki)
Provides: perl(WikiText::Parser)
Provides: perl(WikiText::Pod)
Provides: perl(WikiText::PurpleWiki)
Provides: perl(WikiText::Receiver)
Provides: perl(WikiText::Sample)
Provides: perl(WikiText::Sample::Parser)
Provides: perl(WikiText::TWiki)
Provides: perl(WikiText::TiddlyWiki)
Provides: perl(WikiText::Trac)
Provides: perl(WikiText::UseMod)
Provides: perl(WikiText::Wifty)
Provides: perl(WikiText::WikiByte)
Provides: perl(WikiText::WikiByte::Emitter)
Provides: perl(WikiText::Wikiwyg)
%undefine __perllib_provides
%{perl_requires}
# MANUAL BEGIN
BuildRequires: perl(CGI::Util)
Requires: perl(CGI::Util)
# MANUAL END
%description
The WikiText modules parse documents in various formats. A parse has a
receiver. The receiver takes the parse events and creates a new form. The
new form can be HTML, an AST or another wiki markup.
Some formats are richer than others. The module WikiText::WikiByte defines
a bytecode format. The bytecode format is rich enough to be a receiver for
any parse, therefore it makes an ideal intermediate format.
%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 README
%license LICENSE
%changelog