Name: perl-HTML-Encoding
Version: 0.52
Release: 1%{?dist}
Summary: Determine the encoding of HTML/XML/XHTML documents
Group: Development/Libraries
License: GPL or Artistic
URL: http://search.cpan.org/dist/HTML-Encoding/
Source0: http://www.cpan.org/authors/id/B/BJ/BJOERN/HTML-Encoding-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(HTML::Parser)
BuildRequires: perl(HTTP::Headers::Util)
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%description
HTML::Encoding helps to determine the encoding of HTML and XML/XHTML
documents.
%prep
%setup -q -n HTML-Encoding-%{version}
find . -type f | xargs chmod -c -x
find . -type f | xargs %{__perl} -pi -e 's/\r//g'
%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 -depth -type d -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::Encoding.3*
%changelog
* Tue Apr 3 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.52-1
- First Fedora build.
* Mon Apr 2 2007 Ville Skyttä <ville.skytta at iki.fi> - 0.52-0.5
- BuildRequire perl(ExtUtils::MakeMaker).
* Sat Sep 30 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.52-0.4
- Fix build dependencies.
* Thu Mar 30 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.52-0.3
- Rebuild, drop extra license texts.
* Tue Aug 30 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.52-0.2
- Include GPL and Artistic license texts.
* Tue Jun 14 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.52-0.1
- 0.52, rebuild for FC4.
* Wed Nov 3 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.50-0.fdr.1
- First build.