Lars Vogdt
2019-03-14 14:51:50 +00:00
committed by Git OBS Bridge
commit b7ecc6db2c
5 changed files with 127 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3c59f233d0b10686a85aed0c994011cec68626da0128dea90b5c4fdc1746cfc3
size 57363

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Thu Mar 14 14:48:58 UTC 2019 - lars@linux-schulserver.de - 26
- initial package 26

View File

@@ -0,0 +1,96 @@
#
# 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