]> git.pld-linux.org Git - packages/perl-HTML-Parser.git/blobdiff - perl-HTML-Parser.spec
perl 5.38.0 rebuild
[packages/perl-HTML-Parser.git] / perl-HTML-Parser.spec
index 434cbbc207ddd11eb416ffbfbd3cc0fd4a340bef..1077f08c38e70bb6f5292d667132f1d0a0d30fb6 100644 (file)
-%include       /usr/lib/rpm/macros.perl
+#
+# Conditional build:
+%bcond_without tests   # unit tests
+
 %define                pdir    HTML
 %define                pnam    Parser
-Summary:       Perl HTML::Parser module
-Summary(cs):   Modul pro parsování HTML v Perlu
-Summary(da):   HTML::Parser modul til Perl
-Summary(de):   HTML::Parser Modul für Perl
-Summary(es):   Módulo HTML::Parser para Perl
-Summary(fr):   Module HTML::Parser pour Perl
-Summary(it):   Modulo HTML::Parser per Perl
-Summary(ja):   Perl ÍÑ HTML::Parser
-Summary(ko):   ÆÞÀ» À§ÇÑ HTML::Parser ¸ðÁÙ
-Summary(pl):   Modu³ Perla HTML::Parser
-Summary(pt):   O módulo HTML::Parser para o Perl
-Summary(pt_BR):        Módulo Perl HTML::Parser
-Summary(ru):   HTML::Parser - ÎÁÂÏÒ ÍÏÄÕÌÅÊ ÄÌÑ "ÒÁÚÂÏÒÁ" HTML-ÄÏËÕÍÅÎÔÏ×
-Summary(sv):   HTML::Parser-modul till Perl
-Summary(uk):   HTML::Parser - ÎÁ¦ҠÍÏÄÕ̦נÄÌÑ ÒÏÚÂÏÒÕ HTML-ÄÏËÕÍÅÎÔ¦×
-Summary(zh_CN):        Perl µÄ HTML ½âÎöÆ÷Ä£¿é¡£
+Summary:       HTML::Parser - parsing and extracting information from HTML documents
+Summary(cs.UTF-8):     HTML::Parser - modul pro parsování HTML v Perlu
+Summary(pl.UTF-8):     HTML::Parser - analiza i wyciąganie informacji z dokumentów HTML
+Summary(ru.UTF-8):     HTML::Parser - набор модулей для "разбора" HTML-документов
+Summary(uk.UTF-8):     HTML::Parser - набір модулів для розбору HTML-документів
+Summary(zh_CN.UTF-8):  Perl 的 HTML 解析器模块。
 Name:          perl-HTML-Parser
-Version:       3.27
-Release:       1
-License:       distributable
+Version:       3.81
+Release:       2
+# same as perl
+License:       GPL v1+ or Artistic
 Group:         Development/Languages/Perl
-Source0:       http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-BuildRequires: perl >= 5.6
+Source0:       https://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: b9f5dd3b14632f7a60541a2b61389c06
+URL:           https://metacpan.org/release/HTML-Parser
+BuildRequires: perl-ExtUtils-MakeMaker >= 6.52
+BuildRequires: perl-HTML-Tagset >= 3
+BuildRequires: perl-devel >= 1:5.8.0
+%if %{with tests}
+BuildRequires: perl-Test-Simple
+BuildRequires: perl-URI
+BuildRequires: perl-libwww
+%endif
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.745
 BuildConflicts:        perl-HTML-Stream = 1.45-3
-BuildRequires: perl-HTML-Tagset
-BuildRequires: rpm-perlprov >= 3.0.3-16
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # HTTP::Headers (perl-libwww) is not always required
-%define                _noautoreq      "perl(HTTP::Headers)"
+%define                _noautoreq      perl(HTTP::Headers)
 
 %description
 Perl module HTML::Parser that allows to parse and extract information
 from HTML documents.
 
-%description -l cs
-Balíèek perl-HTML-Parser obsahuje modul pro Perl, který slou¾í k
-parsování a extrahování informací z HTML dokumentu.
+%description -l cs.UTF-8
+Balíček perl-HTML-Parser obsahuje modul pro Perl, který slouží k
+parsování a extrahování informací z HTML dokumentu.
 
-%description -l da
+%description -l da.UTF-8
 HTML::Parser modul til Perl for at tolka og extrahere information fra
 HTML-dokument.
 
-%description -l de
-HTML::Parser modul für Perl zum Parsen und Extrahieren von
+%description -l de.UTF-8
+HTML::Parser modul für Perl zum Parsen und Extrahieren von
 Informationen aus HTML-Dokumenten.
 
-%description -l es
-Módulo HTML::Parser para perl para analizar y extraer información a
+%description -l es.UTF-8
+Módulo HTML::Parser para perl para analizar y extraer información a
 partir de documentos HTML.
 
-%description -l fr
+%description -l fr.UTF-8
 Module HTML::Parser pour perl permettant d'analyser et d'extraire des
 informations de documents HTML.
 
-%description -l it
+%description -l it.UTF-8
 Il modulo HTML::Parser per perl, che consente di analizzare documenti
 HTML e di estrarne informazioni.
 
-%description -l ja
-HTML ¥É¥­¥å¥á¥ó¥È¤«¤é¾ðÊó¤ò²òÀÏ¡¢Ãê½Ð¤¹¤ë¤¿¤á¤Î Perl ÍѤΠHTML::Parser
-¡£
+%description -l ja.UTF-8
+HTML ドキュメントから情報を解析、抽出するための Perl 用の HTML::Parser 。
 
-%description -l ko
-HTML::Parser ¸ðÁÙÀº ÆÞÀÌ HTML ¹®¼­µé·Î ºÎÅÍ Á¤º¸¸¦ ÆĽÌÇÏ°í °¡Á®¿À°Ô²û
-ÇÕ´Ï´Ù.
+%description -l ko.UTF-8
+HTML::Parser 모줄은 펄이 HTML 문서들로 부터 정보를 파싱하고 가져오게끔 합니다.
 
-%description -l pl
-Modu³ Perla HTML::Parser pozwalaj±cy na parsowanie i wyciaganie
+%description -l pl.UTF-8
+Moduł Perla HTML::Parser pozwalający na parsowanie i wyciąganie
 informacji z dokumentu HTML.
 
-%description -l pt_BR
-Módulo Perl HTML::Parser - Uma coleção de módulos para examinar e
-extrair informações de documentos HTML.
+%description -l pt_BR.UTF-8
+Módulo Perl HTML::Parser - Uma coleção de módulos para examinar e
+extrair informações de documentos HTML.
 
-%description -l ru
-HTML::Parser - ÎÁÂÏÒ ÍÏÄÕÌÅÊ ÄÌÑ "ÒÁÚÂÏÒÁ" HTML-ÄÏËÕÍÅÎÔÏ×.
+%description -l ru.UTF-8
+HTML::Parser - набор модулей для "разбора" HTML-документов.
 
-%description -l uk
-HTML::Parser - ÎÁ¦ҠÍÏÄÕ̦נÄÌÑ ÒÏÚÂÏÒÕ HTML-ÄÏËÕÍÅÎÔ¦×.
+%description -l uk.UTF-8
+HTML::Parser - набір модулів для розбору HTML-документів.
 
-%description -l pt
-O módulo HTML::Parser para o Perl analisar e extrair informações de
+%description -l pt.UTF-8
+O módulo HTML::Parser para o Perl analisar e extrair informações de
 documentos HTML.
 
-%description -l sv
-HTML::Parser modul till perl för att tolka och extrahera information
-från HTML-dokument.
+%description -l sv.UTF-8
+HTML::Parser modul till perl för att tolka och extrahera information
+från HTML-dokument.
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-%{__perl} Makefile.PL
-%{__make} OPTIMIZE="%{rpmcflags}"
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor \
+       DEFINE="-DMARKED_SECTION -DUNICODE_ENTITIES" \
+       < /dev/null
+%{__make} \
+       CC="%{__cc}" \
+       OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%dir %{perl_sitearch}/HTML
-%{perl_sitearch}/HTML/*.pm
-%dir %{perl_sitearch}/auto/HTML
-%dir %{perl_sitearch}/auto/HTML/Parser
-%{perl_sitearch}/auto/HTML/Parser/Parser.bs
-%attr(755,root,root) %{perl_sitearch}/auto/HTML/Parser/Parser.so
-%{_mandir}/man3/*
+%doc Changes TODO
+%{perl_vendorarch}/HTML/Entities.pm
+%{perl_vendorarch}/HTML/Filter.pm
+%{perl_vendorarch}/HTML/HeadParser.pm
+%{perl_vendorarch}/HTML/LinkExtor.pm
+%{perl_vendorarch}/HTML/Parser.pm
+%{perl_vendorarch}/HTML/PullParser.pm
+%{perl_vendorarch}/HTML/TokeParser.pm
+%dir %{perl_vendorarch}/auto/HTML/Parser
+%attr(755,root,root) %{perl_vendorarch}/auto/HTML/Parser/Parser.so
+%{_mandir}/man3/HTML::Entities.3pm*
+%{_mandir}/man3/HTML::Filter.3pm*
+%{_mandir}/man3/HTML::HeadParser.3pm*
+%{_mandir}/man3/HTML::LinkExtor.3pm*
+%{_mandir}/man3/HTML::Parser.3pm*
+%{_mandir}/man3/HTML::PullParser.3pm*
+%{_mandir}/man3/HTML::TokeParser.3pm*
This page took 0.070349 seconds and 4 git commands to generate.