%define Werror_cflags %{nil} %define modname HTML-Parser Summary: Perl module to parse HTML documents Name: perl-%{modname} Version: 3.83 Release: 4 License: GPLv2+ or Artistic Group: Development/Perl Url: https://metacpan.org/pod/HTML::Parser Source0: http://www.cpan.org/modules/by-module/HTML/HTML-Parser-%{version}.tar.gz BuildRequires: perl-devel BuildRequires: perl-HTML-Tagset # For make test BuildRequires: perl(Test::More) Requires: perl-HTML-Tagset # FIXME bogus workaround for perl versioning madness Provides: perl(HTML::Parser) = %{version}0.0 %description HTML::Parser module for Perl to parse and extract information from HTML documents. %prep %autosetup -p1 -n %{modname}-%{version} %build # compile with default options (prompt() checks for STDIN being a terminal). # yes to not ask for automate rebuild yes | perl Makefile.PL INSTALLDIRS=vendor %make OPTIMIZE="%{optflags}" %check %make test || : %install %make_install %files %doc README TODO Changes %{perl_vendorarch}/auto/HTML %{perl_vendorarch}/HTML %{_mandir}/man3/*