diff --git a/.cvsignore b/.cvsignore index e69de29..a1f01a1 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +HTML-Encoding-0.52.tar.gz diff --git a/perl-HTML-Encoding.spec b/perl-HTML-Encoding.spec new file mode 100644 index 0000000..d89683a --- /dev/null +++ b/perl-HTML-Encoding.spec @@ -0,0 +1,77 @@ +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ä - 0.52-1 +- First Fedora build. + +* Mon Apr 2 2007 Ville Skyttä - 0.52-0.5 +- BuildRequire perl(ExtUtils::MakeMaker). + +* Sat Sep 30 2006 Ville Skyttä - 0.52-0.4 +- Fix build dependencies. + +* Thu Mar 30 2006 Ville Skyttä - 0.52-0.3 +- Rebuild, drop extra license texts. + +* Tue Aug 30 2005 Ville Skyttä - 0.52-0.2 +- Include GPL and Artistic license texts. + +* Tue Jun 14 2005 Ville Skyttä - 0.52-0.1 +- 0.52, rebuild for FC4. + +* Wed Nov 3 2004 Ville Skyttä - 0:0.50-0.fdr.1 +- First build. diff --git a/sources b/sources index e69de29..9640e98 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ee31564305ffdaf24d99f26588f8eb9f HTML-Encoding-0.52.tar.gz