From f63ba357d50112b7b627988ec48caa8608adb9d2 Mon Sep 17 00:00:00 2001 From: corsepiu Date: Tue, 30 Aug 2005 16:38:14 +0000 Subject: [PATCH] auto-import perl-HTML-Format-2.04-2 on branch devel from perl-HTML-Format-2.04-2.src.rpm --- .cvsignore | 1 + perl-HTML-Format.spec | 71 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 73 insertions(+) create mode 100644 perl-HTML-Format.spec diff --git a/.cvsignore b/.cvsignore index e69de29..7207358 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +HTML-Format-2.04.tar.gz diff --git a/perl-HTML-Format.spec b/perl-HTML-Format.spec new file mode 100644 index 0000000..aa97461 --- /dev/null +++ b/perl-HTML-Format.spec @@ -0,0 +1,71 @@ +Name: perl-HTML-Format +Version: 2.04 +Release: 2%{?dist} +Summary: HTML::Format Perl module + +Group: Development/Libraries +License: GPL or Artistic +URL: http://search.cpan.org/dist/HTML-Format/ +Source0: http://www.cpan.org/authors/id/S/SB/SBURKE/HTML-Format-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +BuildArch: noarch +BuildRequires: perl(HTML::Element) >= 3.15 +BuildRequires: perl(Font::AFM) >= 1.17 + +# These must match +# %FontFamilies in lib/HTML/FormatPS.pm +Requires: perl(Font::Metrics::Courier) +Requires: perl(Font::Metrics::CourierBold) +Requires: perl(Font::Metrics::CourierBoldOblique) +Requires: perl(Font::Metrics::CourierOblique) +Requires: perl(Font::Metrics::Helvetica) +Requires: perl(Font::Metrics::HelveticaBold) +Requires: perl(Font::Metrics::HelveticaBoldOblique) +Requires: perl(Font::Metrics::HelveticaOblique) +Requires: perl(Font::Metrics::TimesBold) +Requires: perl(Font::Metrics::TimesBoldItalic) +Requires: perl(Font::Metrics::TimesItalic) +Requires: perl(Font::Metrics::TimesRoman) + + +%description +A collection of modules that formats HTML as plaintext, PostScript or RTF. + +%prep +%setup -q -n HTML-Format-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/HTML +%{_mandir}/man3/HTML* + +%changelog +* Fri Aug 26 2005 Ralf Corsepius - 2.04-2 +- Add Requires: perl(Font::Metrics:*). +- Minor Spec cleanup. + +* Thu Aug 18 2005 Ralf Corsepius - 2.04-1 +- FE submission. diff --git a/sources b/sources index e69de29..0aca2f4 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +2d287392b77c959f06397371116c2d7e HTML-Format-2.04.tar.gz