Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Tomcat42
perl-HTML-FormatExternal
perl-HTML-FormatExternal.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-HTML-FormatExternal.spec of Package perl-HTML-FormatExternal
# # spec file for package perl-HTML-FormatExternal # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # 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-HTML-FormatExternal Version: 26 Release: 0 %define cpan_name HTML-FormatExternal Summary: HTML to text formatting using external programs License: GPL-3.0-or-later Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/HTML-FormatExternal/ Source: %{cpan_name}-%{version}.tar.gz BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(File::Spec) >= 0.8 BuildRequires: perl(File::Temp) >= 0.18 BuildRequires: perl(IPC::Run) BuildRequires: perl(URI::file) >= 0.08 BuildRequires: perl(constant::defer) Requires: perl(File::Spec) >= 0.8 Requires: perl(File::Temp) >= 0.18 Requires: perl(IPC::Run) Requires: perl(URI::file) >= 0.08 Requires: perl(constant::defer) BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %{perl_requires} %description This is a collection of formatter modules which turn HTML into plain text by dumping it through the respective external programs. HTML::FormatText::Elinks HTML::FormatText::Html2text HTML::FormatText::Links HTML::FormatText::Lynx HTML::FormatText::Netrik HTML::FormatText::Vilistextum HTML::FormatText::W3m HTML::FormatText::Zen The module interfaces are compatible with 'HTML::Formatter' modules such as 'HTML::FormatText', but the external programs do all the work. Common formatting options are used where possible, such as 'leftmargin' and 'rightmargin'. So just by switching the class you can use a different program (or the plain 'HTML::FormatText') according to personal preference, or strengths and weaknesses, or what you've got. There's nothing particularly difficult about piping through these programs, but a unified interface hides details like how to set margins and how to force input or output charsets. %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 %clean %{__rm} -rf %{buildroot} %files -f %{name}.files %defattr(644,root,root,755) %if 0%{?suse_version} >= 01500 %license COPYING %else %doc COPYING %endif %doc Changes README %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