Files
perl-SGML-DTDParse/perl-SGML-DTDParse.spec
2025-08-12 18:17:04 +02:00

102 lines
3.7 KiB
RPMSpec

#
# spec file for package perl-SGML-DTDParse
#
# 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 SGML-DTDParse
Name: perl-SGML-DTDParse
Version: 2.0.0
Release: 0
# 2.00 -> normalize -> 2.0.0
%define cpan_version 2.00
License: DTDParse may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the DTDParse distribution.
Summary: Parse an SGML or XML DTD
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/E/EH/EHOOD/%{cpan_name}-%{cpan_version}.tar.gz
Source100: README.md
BuildArch: noarch
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Text::DelimMatch) >= 1.50.0
BuildRequires: perl(XML::DOM) >= 1.43
BuildRequires: perl(XML::Parser) >= 2.25
Requires: perl(Text::DelimMatch) >= 1.50.0
Requires: perl(XML::DOM) >= 1.43
Requires: perl(XML::Parser) >= 2.25
Provides: perl(SGML::DTDParse) = %{version}
Provides: perl(SGML::DTDParse::Catalog) = 2.100.0
Provides: perl(SGML::DTDParse::ContentModel) = 2.100.0
Provides: perl(SGML::DTDParse::ContentModel::Element)
Provides: perl(SGML::DTDParse::ContentModel::Group)
Provides: perl(SGML::DTDParse::ContentModel::ParameterEntity)
Provides: perl(SGML::DTDParse::DTD) = 2.200.0
Provides: perl(SGML::DTDParse::DTD::ATTLIST)
Provides: perl(SGML::DTDParse::DTD::ELEMENT)
Provides: perl(SGML::DTDParse::DTD::ENTITY)
Provides: perl(SGML::DTDParse::DTD::NOTATION)
Provides: perl(SGML::DTDParse::Tokenizer) = 2.100.0
Provides: perl(SGML::DTDParse::Tokenizer::Connector)
Provides: perl(SGML::DTDParse::Tokenizer::Element)
Provides: perl(SGML::DTDParse::Tokenizer::Group)
Provides: perl(SGML::DTDParse::Tokenizer::ParameterEntity)
Provides: perl(SGML::DTDParse::Util) = 2.200.0
%undefine __perllib_provides
%{perl_requires}
%description
The DTDParse collection is a set of Perl modules and scripts for
manipulating SGML an XML Document Type Definitions (DTDs). DTDParse is
designed primarily to aid in the understanding and documentation of DTDs.
Typical usage of this package is as follows:
* 1.
Parse the DTD with dtdparse. This produces an XML representation of the
DTD. This representation exposes both the logical structure of the DTD (the
actual meta-structure of its grove) and the organizational structure of the
DTD (the declarations and parameter entities) that comprise its textual
form.
* 2.
Manipulate the XML document produced by dtdparse to do whatever you want.
DTDParse is shipped with several programs that demonstrate various
capabilities, including *dtdformat* which can produce HTML or DocBook
http://www.oasis-open.org/docbook/ RefEntry pages for each element and
parameter entity in the DTD.
%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 Artistic COPYING
%changelog