# # spec file for package perl-Text-EtText # # 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 Text-EtText Name: perl-Text-EtText Version: 2.200.0 Release: 0 # 2.2 -> normalize -> 2.200.0 %define cpan_version 2.2 #Upstream: EtText is distributed under the terms of the GNU Public License. License: GPL Summary: Plain-text markup format for HTML URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/J/JM/JMASON/%{cpan_name}-%{cpan_version}.tar.gz Source1: cpanspec.yml Source100: README.md BuildArch: noarch BuildRequires: perl BuildRequires: perl-macros Provides: perl(Text::EtText) = %{version} Provides: perl(Text::EtText::DefaultGlossary) Provides: perl(Text::EtText::EtText2HTML) Provides: perl(Text::EtText::HTML2EtText) Provides: perl(Text::EtText::LinkGlossary) Provides: perl(Text::EtText::Lists) %undefine __perllib_provides %{perl_requires} # MANUAL BEGIN BuildRequires: perl(HTML::Entities) # MANUAL END %description EtText is a simple plain-text format which allows conversion to and from HTML. Instead of editing HTML directly, it provides an easy-to-edit, easy-to-read and intuitive way to write HTML, based on the plain-text markup conventions we've been using for years. Like most simple text markup formats (POD, setext, etc.), EtText markup handles the usual things: insertion of
tags, header recognition and markup. However it also adds a powerful link markup system, and tries to be XHTML-conformant in its generated code. EtText markup is simple and effective; it's very similar to setext, WikiWikiWeb TextFormattingRules or Zope's StructuredText. EtText is an integral part of WebMake, but unlike WebMake, which is GPL'ed, EtText is distributed under Perl's Artistic license. For more information on the EtText format, check the EtText documentation on the web at http://ettext.taint.org/ . %prep %autosetup -n %{cpan_name}-%{cpan_version} find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644 %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 doc README TODO %changelog