| 1 | Name: perl-HTML-Parser
|
|---|
| 2 | Summary: Perl module for parsing HTML
|
|---|
| 3 | Version: 3.72
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | License: GPL+ or Artistic
|
|---|
| 6 | Group: Development/Libraries
|
|---|
| 7 | Source0: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/HTML-Parser-%{version}.tar.gz
|
|---|
| 8 | URL: http://search.cpan.org/dist/HTML-Parser/
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|---|
| 11 | BuildRequires: coreutils
|
|---|
| 12 | BuildRequires: findutils
|
|---|
| 13 | #BuildRequires: glibc-common
|
|---|
| 14 | BuildRequires: make
|
|---|
| 15 | BuildRequires: perl
|
|---|
| 16 | BuildRequires: perl-devel
|
|---|
| 17 | BuildRequires: perl-generators
|
|---|
| 18 | BuildRequires: perl(Carp)
|
|---|
| 19 | BuildRequires: perl(Config)
|
|---|
| 20 | BuildRequires: perl(Exporter)
|
|---|
| 21 | BuildRequires: perl(ExtUtils::MakeMaker)
|
|---|
| 22 | BuildRequires: perl(File::Spec)
|
|---|
| 23 | BuildRequires: perl(FileHandle)
|
|---|
| 24 | BuildRequires: perl(HTML::Tagset) >= 3
|
|---|
| 25 | %if %{undefined perl_bootstrap}
|
|---|
| 26 | # This creates cycle with perl-HTTP-Message.
|
|---|
| 27 | BuildRequires: perl(HTTP::Headers)
|
|---|
| 28 | %endif
|
|---|
| 29 | BuildRequires: perl(IO::File)
|
|---|
| 30 | BuildRequires: perl(SelectSaver)
|
|---|
| 31 | BuildRequires: perl(strict)
|
|---|
| 32 | BuildRequires: perl(Test)
|
|---|
| 33 | #BuildRequires: perl(Test::More)
|
|---|
| 34 | BuildRequires: perl(threads)
|
|---|
| 35 | BuildRequires: perl(URI)
|
|---|
| 36 | BuildRequires: perl(vars)
|
|---|
| 37 | BuildRequires: perl(XSLoader)
|
|---|
| 38 | Requires: perl(HTML::Tagset) >= 3
|
|---|
| 39 | Requires: perl(HTTP::Headers)
|
|---|
| 40 | Requires: perl(IO::File)
|
|---|
| 41 | Requires: perl(URI)
|
|---|
| 42 |
|
|---|
| 43 | %{?perl_default_filter}
|
|---|
| 44 | #{?perl_default_subpackage_tests}
|
|---|
| 45 | %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(HTML::Tagset\\)$
|
|---|
| 46 |
|
|---|
| 47 | %description
|
|---|
| 48 | The HTML-Parser module for perl to parse and extract information from
|
|---|
| 49 | HTML documents, including the HTML::Entities, HTML::HeadParser,
|
|---|
| 50 | HTML::LinkExtor, HTML::PullParser, and HTML::TokeParser modules.
|
|---|
| 51 |
|
|---|
| 52 | %prep
|
|---|
| 53 | %setup -q -n HTML-Parser-%{version}
|
|---|
| 54 | chmod -c a-x eg/*
|
|---|
| 55 |
|
|---|
| 56 | %build
|
|---|
| 57 | perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|---|
| 58 | make %{?_smp_mflags}
|
|---|
| 59 | make manifypods
|
|---|
| 60 |
|
|---|
| 61 | %install
|
|---|
| 62 | make pure_install DESTDIR=%{buildroot}
|
|---|
| 63 | file=%{buildroot}%{_mandir}/man3/HTML.Entities.3pm
|
|---|
| 64 | #iconv -f iso-8859-1 -t utf-8 <"$file" > "${file}_" && \
|
|---|
| 65 | # touch -r ${file} ${file}_ && \
|
|---|
| 66 | # mv -f "${file}_" "$file"
|
|---|
| 67 | find %{buildroot} -type f -name .packlist -delete
|
|---|
| 68 | find %{buildroot} -type f -name '*.bs' -empty -delete
|
|---|
| 69 | chmod -R u+w %{buildroot}/*
|
|---|
| 70 |
|
|---|
| 71 | %check
|
|---|
| 72 | #make test
|
|---|
| 73 |
|
|---|
| 74 | %files
|
|---|
| 75 | %doc Changes README TODO eg/
|
|---|
| 76 | %{perl_vendorarch}/HTML/
|
|---|
| 77 | %{perl_vendorarch}/auto/HTML/
|
|---|
| 78 | %{_mandir}/man3/*.3pm*
|
|---|
| 79 |
|
|---|
| 80 | %changelog
|
|---|
| 81 | * Mon May 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> - 3.72-1
|
|---|
| 82 | - initial version
|
|---|