Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-Pod-Xhtml
perl-Pod-Xhtml.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-Pod-Xhtml.spec of Package perl-Pod-Xhtml
# # spec file for package perl-Pod-Xhtml # # Copyright (c) 2020 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/ # Name: perl-Pod-Xhtml Version: 1.61 Release: 0 #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 %define cpan_name Pod-Xhtml Summary: Generate well-formed XHTML documents from POD format documentation License: GPL-2.0-only Group: Development/Libraries/Perl URL: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/B/BB/BBC/%{cpan_name}-%{version}.tar.gz Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Pod::ParseUtils) BuildRequires: perl(Pod::Parser) BuildRequires: perl(Test::Assertions::TestScript) BuildRequires: perl(URI::Escape) Requires: perl(Pod::ParseUtils) Requires: perl(Pod::Parser) Requires: perl(Test::Assertions::TestScript) Requires: perl(URI::Escape) %{perl_requires} %description * new Pod::Xhtml( [ OPTIONS ] ) Create a new object. Optionally pass in some options in the form ''new Pod::Xhtml( StringMode => 1);'' * $parser->parse_from_file( INPUTFILE, [OUTPUTFILE] ) 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. * $parser->parse_from_filehandle( [INPUTFILEHANDLE, [OUTPUTFILEHANDLE]] ) 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. * $parser->asString Get the XHTML as a scalar. You'll probably want to use this with the StringMode option. * $parser->asStringRef As above, but you get a reference to the string, not the string itself. * $parser->addHeadText( $text ) 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. * $parser->addBodyOpenText( $text ) / $parser->addBodyCloseText( $text ) 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. %prep %setup -q -n %{cpan_name}-%{version} %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc Changes README %license COPYING %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor