2011-10-10 05:43:33 +00:00
#
# spec file for package perl-Pod-Xhtml
#
2024-07-27 22:07:56 +00:00
# Copyright (c) 2024 SUSE LLC
2011-10-10 05:43:33 +00:00
#
# 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.
2020-11-28 12:47:54 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2011-10-10 05:43:33 +00:00
#
2024-07-27 22:07:56 +00:00
%define cpan_name Pod-Xhtml
2011-10-10 05:43:33 +00:00
Name : perl-Pod-Xhtml
2024-07-27 22:07:56 +00:00
Version : 1.610.0
2020-11-28 12:47:54 +00:00
Release : 0
2024-07-27 22:07:56 +00:00
# 1.61 -> normalize -> 1.610.0
%define cpan_version 1.61
2020-11-28 12:47:54 +00:00
#Upstream: (c) BBC 2004, 2005. This program is free software; you can redistribute it and/or modify it under the GNU GPL. See the file COPYING in this distribution, or http://www.gnu.org/licenses/gpl.txt
License : GPL-2.0-only
2024-07-27 22:07:56 +00:00
Summary : Generate well-formed XHTML documents from POD format documentation
2020-11-28 12:47:54 +00:00
URL : https://metacpan.org/release/%{cpan_name}
2024-07-27 22:07:56 +00:00
Source0 : https://cpan.metacpan.org/authors/id/B/BB/BBC/%{cpan_name} -%{cpan_version} .tar.gz
2020-11-28 12:47:54 +00:00
Source1 : cpanspec.yml
2025-08-12 18:16:39 +02:00
Source100 : README.md
2011-10-10 05:43:33 +00:00
BuildArch : noarch
BuildRequires : perl
BuildRequires : perl-macros
2020-11-28 12:47:54 +00:00
BuildRequires : perl(Pod::ParseUtils)
BuildRequires : perl(Pod::Parser)
2011-10-10 05:43:33 +00:00
BuildRequires : perl(Test::Assertions::TestScript)
BuildRequires : perl(URI::Escape)
2020-11-28 12:47:54 +00:00
Requires : perl(Pod::ParseUtils)
Requires : perl(Pod::Parser)
2011-10-10 05:43:33 +00:00
Requires : perl(Test::Assertions::TestScript)
Requires : perl(URI::Escape)
2024-07-27 22:07:56 +00:00
Provides : perl(Pod::Hyperlink::BounceURL) = 1.700.0
Provides : perl(Pod::Xhtml)
%undefine __perllib_provides
2011-10-10 05:43:33 +00:00
%{perl_requires}
%description
* new Pod::Xhtml( [ OPTIONS ] )
2020-11-28 12:47:54 +00:00
Create a new object. Optionally pass in some options in the form '' new
Pod::Xhtml( StringMode => 1);''
2011-10-10 05:43:33 +00:00
* $parser->parse_from_file( INPUTFILE, [OUTPUTFILE] )
2020-11-28 12:47:54 +00:00
Read POD from the input file, output to the output file (or STDOUT if no
file is given). See Pod::Parser docs for more. Note that you can parse
multiple files with the same object. All your options will be preserved, as
will any text you added with the add*Text methods.
2011-10-10 05:43:33 +00:00
* $parser->parse_from_filehandle( [INPUTFILEHANDLE, [OUTPUTFILEHANDLE]] )
2020-11-28 12:47:54 +00:00
Read POD from the input filehandle, output to the output filehandle
(STDIN/STDOUT if no filehandle(s) given). See Pod::Parser docs for more.
Note that you can parse multiple files with the same object. All your
options will be preserved, as will any text you added with the add*Text
methods.
2011-10-10 05:43:33 +00:00
* $parser->asString
2020-11-28 12:47:54 +00:00
Get the XHTML as a scalar. You'll probably want to use this with the
StringMode option.
2011-10-10 05:43:33 +00:00
* $parser->asStringRef
2020-11-28 12:47:54 +00:00
As above, but you get a reference to the string, not the string itself.
2011-10-10 05:43:33 +00:00
* $parser->addHeadText( $text )
2020-11-28 12:47:54 +00:00
Inserts some text just before the closing head tag. For example you can add
a link to a stylesheet. May be called many times to add lots of text. Note:
you need to call this some time *before* any output is done, e.g. straight
after new(). Make sure that you only insert valid XHTML fragments.
2011-10-10 05:43:33 +00:00
* $parser->addBodyOpenText( $text ) / $parser->addBodyCloseText( $text )
2020-11-28 12:47:54 +00:00
Inserts some text right at the beginning (or ending) of the body element.
For example you can add a navigation header and footer. May be called many
times to add lots of text. Note: you need to call this some time *before*
any output is done, e.g. straight after new(). Make sure that you only
insert valid XHTML fragments.
2011-10-10 05:43:33 +00:00
%prep
2024-07-27 22:07:56 +00:00
%autosetup -n %{cpan_name} -%{cpan_version}
2011-10-10 05:43:33 +00:00
%build
2020-11-28 12:47:54 +00:00
perl Makefile.PL INSTALLDIRS=vendor
2024-07-27 22:07:56 +00:00
%make_build
2011-10-10 05:43:33 +00:00
%check
2020-11-28 12:47:54 +00:00
make test
2011-10-10 05:43:33 +00:00
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
2020-11-28 12:47:54 +00:00
%doc Changes README
%license COPYING
2011-10-10 05:43:33 +00:00
%changelog