[packages/perl-HTML-Formatter] Initial

arekm arekm at pld-linux.org
Fri Jun 12 20:37:08 CEST 2026


commit e1ac2e17e5288c503195cbcf9d4af2c503c95468
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Jun 12 20:36:33 2026 +0200

    Initial

 perl-HTML-Formatter.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 79 insertions(+)
---
diff --git a/perl-HTML-Formatter.spec b/perl-HTML-Formatter.spec
new file mode 100644
index 0000000..3a10dee
--- /dev/null
+++ b/perl-HTML-Formatter.spec
@@ -0,0 +1,79 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+#
+%define		pdir	HTML
+%define		pnam	Formatter
+Summary:	HTML::Formatter - base class for HTML formatters
+Summary(pl.UTF-8):	HTML::Formatter - bazowa klasa dla klas formatujących HTML
+Name:		perl-HTML-Formatter
+Version:	2.16
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	https://www.cpan.org/modules/by-authors/id/N/NI/NIGELM/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	16adca9bc55dbff85daa6c0ae74ff730
+URL:		https://metacpan.org/dist/HTML-Formatter
+BuildRequires:	perl-Font-AFM
+BuildRequires:	perl-HTML-Tree >= 3.15
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-File-Slurper
+BuildRequires:	perl-Test-Simple
+BuildRequires:	perl-Test-Warnings
+%endif
+Requires:	perl-Font-AFM
+Requires:	perl-HTML-Tree >= 3.15
+Obsoletes:	perl-HTML-Format < 2.16
+Provides:	perl-HTML-Format = %{version}-%{release}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_noautoreqdep	'perl(UNIVERSAL)'
+
+%description
+HTML formatters are able to format a HTML syntax tree into various
+printable formats. Different formatters produce output for different
+output media. Common for all formatters are that they will return the
+formatted output when the format() method is called. Format() takes a
+HTML::Element as parameter.
+
+This is the continuation of the HTML-Format distribution under its new
+name HTML-Formatter.
+
+%description -l pl.UTF-8
+Klasy formatujące HTML mogą sformatować drzewo składni HTML do różnych
+drukowalnych formatów. Różne klasy formatujące dają wyjście dla
+różnych mediów. Wspólne dla wszystkich klas formatujących jest to, że
+zwracają sformatowane wyjście po wywołaniu metody format(). format()
+przyjmuje HTML::Element jako parametr.
+
+To jest kontynuacja dystrybucji HTML-Format pod jej nową nazwą
+HTML-Formatter.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/HTML/Format*.pm
+%{_mandir}/man3/HTML::Format*.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-HTML-Formatter.git/commitdiff/e1ac2e17e5288c503195cbcf9d4af2c503c95468



More information about the pld-cvs-commit mailing list