From b7ecc6db2c47eddea623a9b75aa801f3eb2887ae75d29972dff80addada43f9e Mon Sep 17 00:00:00 2001 From: Lars Vogdt Date: Thu, 14 Mar 2019 14:51:50 +0000 Subject: [PATCH] - initial package 26 OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-FormatExternal?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + HTML-FormatExternal-26.tar.gz | 3 + perl-HTML-FormatExternal.changes | 4 ++ perl-HTML-FormatExternal.spec | 96 ++++++++++++++++++++++++++++++++ 5 files changed, 127 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 HTML-FormatExternal-26.tar.gz create mode 100644 perl-HTML-FormatExternal.changes create mode 100644 perl-HTML-FormatExternal.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/HTML-FormatExternal-26.tar.gz b/HTML-FormatExternal-26.tar.gz new file mode 100644 index 0000000..4a8fc9c --- /dev/null +++ b/HTML-FormatExternal-26.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c59f233d0b10686a85aed0c994011cec68626da0128dea90b5c4fdc1746cfc3 +size 57363 diff --git a/perl-HTML-FormatExternal.changes b/perl-HTML-FormatExternal.changes new file mode 100644 index 0000000..5b4cad0 --- /dev/null +++ b/perl-HTML-FormatExternal.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Mar 14 14:48:58 UTC 2019 - lars@linux-schulserver.de - 26 + +- initial package 26 diff --git a/perl-HTML-FormatExternal.spec b/perl-HTML-FormatExternal.spec new file mode 100644 index 0000000..2d61c00 --- /dev/null +++ b/perl-HTML-FormatExternal.spec @@ -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