From ba0e4476b65f20580982fc7b466fd636b9cfa701 Mon Sep 17 00:00:00 2001 From: Xavier Bachelot Date: Jan 09 2008 20:50:48 +0000 Subject: Initial import. --- diff --git a/.cvsignore b/.cvsignore index e69de29..2bc37aa 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +HTML-PrettyPrinter-0.03.tar.gz diff --git a/perl-HTML-PrettyPrinter.spec b/perl-HTML-PrettyPrinter.spec new file mode 100644 index 0000000..feacdd9 --- /dev/null +++ b/perl-HTML-PrettyPrinter.spec @@ -0,0 +1,67 @@ +Name: perl-HTML-PrettyPrinter +Version: 0.03 +Release: 2%{?dist} + +Summary: Generate nice HTML files from HTML syntax trees + +Group: Development/Libraries +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/ +Source0: http://search.cpan.org/CPAN/authors/id/C/CL/CLMS/HTML-PrettyPrinter-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(HTML::Entities) +BuildRequires: perl(HTML::Element) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + + +%description +HTML::PrettyPrinter produces nicely formatted HTML code from a HTML syntax +tree. It is especially useful if the produced HTML file shall be read or +edited manually afterwards. Various parameters let you adapt the output to +different styles and requirements. + + +%prep +%setup -q -n HTML-PrettyPrinter-%{version} +iconv -f iso8859-1 -t utf-8 PrettyPrinter.pm > PrettyPrinter.pm.conv \ +&& mv -f PrettyPrinter.pm.conv PrettyPrinter.pm + + +%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}/* +%{_mandir}/man3/*3pm.gz + + +%changelog +* Wed Jan 09 2008 Xavier Bachelot - 0.03-2 +- Remove set -x and set +x from %%prep section. +- Remove '|| :' from %%check section. + +* Fri Dec 21 2007 Xavier Bachelot - 0.03-1 +- Initial build. diff --git a/sources b/sources index e69de29..1277ba8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4d3f84ba4e35cb7fac863b828b7f2b68 HTML-PrettyPrinter-0.03.tar.gz