commit 703689a7634b58c35be1776ccd551ea5f8ecb004 Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Tue Oct 2 18:08:54 2012 +0200 Import .gitignore | 1 + perl-IO-HTML.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 50 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..b19b195 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/IO-HTML-0.04.tar.gz diff --git a/perl-IO-HTML.spec b/perl-IO-HTML.spec new file mode 100644 index 0000000..8c27685 --- /dev/null +++ b/perl-IO-HTML.spec @@ -0,0 +1,48 @@ +Name: perl-IO-HTML +Version: 0.04 +Release: 1%{?dist} +Summary: Open an HTML file with automatic character set detection +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/IO-HTML/ +Source0: http://www.cpan.org/authors/id/C/CJ/CJM/IO-HTML-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30 +# Run-time: +BuildRequires: perl(Carp) +BuildRequires: perl(Encode) >= 2.10 +BuildRequires: perl(Exporter) >= 5.57 +# Tests: +BuildRequires: perl(File::Temp) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Test::More) >= 0.88 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +IO::HTML provides an easy way to open a file containing HTML while +automatically determining its encoding. It uses the HTML5 encoding sniffing +algorithm specified in section 8.2.2.1 of the draft standard. + +%prep +%setup -q -n IO-HTML-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes LICENSE README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Oct 02 2012 Petr Pisar <ppisar@xxxxxxxxxx> 0.04-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..c9790f1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a26db9ec7e9bcce863696c0f184c8e13 IO-HTML-0.04.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel