generated from smedev/Template-for-SMEServer-Core-Perl
94 lines
2.7 KiB
RPMSpec
94 lines
2.7 KiB
RPMSpec
Name: perl-HTML-Parser
|
|
Version: 3.78
|
|
Release: 2%{?org_tag}%{?dist}
|
|
Summary: HTML parser class
|
|
License: GPL+ or Artistic
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/HTML-Parser/
|
|
Source0: http://localhost/cpan//authors/id/G/GA/GAAS/HTML-Parser-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: perl >= 0:5.008
|
|
BuildRequires: coreutils
|
|
BuildRequires: findutils
|
|
BuildRequires: gcc
|
|
BuildRequires: glibc-common
|
|
BuildRequires: make
|
|
BuildRequires: perl-devel
|
|
BuildRequires: perl-generators
|
|
BuildRequires: perl-interpreter
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Config)
|
|
BuildRequires: perl(Exporter)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(FileHandle)
|
|
BuildRequires: perl(HTML::Tagset) >= 3
|
|
%if %{undefined perl_bootstrap}
|
|
# This creates cycle with perl-HTTP-Message.
|
|
BuildRequires: perl(HTTP::Headers)
|
|
%endif
|
|
BuildRequires: perl(IO::File)
|
|
BuildRequires: perl(SelectSaver)
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(Test)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(threads)
|
|
BuildRequires: perl(URI)
|
|
BuildRequires: perl(vars)
|
|
BuildRequires: perl(XSLoader)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
Requires: perl(HTML::Tagset) >= 3
|
|
Requires: perl(HTTP::Headers)
|
|
Requires: perl(IO::File)
|
|
Requires: perl(URI)
|
|
|
|
%{?perl_default_filter}
|
|
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(HTML::Tagset\\)$
|
|
|
|
%description
|
|
Objects of the HTML::Parser class will recognize markup and separate it
|
|
from plain text (alias data content) in HTML documents. As different
|
|
kinds of markup and text are recognized, the corresponding event handlers
|
|
are invoked.
|
|
|
|
%prep
|
|
%setup -q -n HTML-Parser-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
|
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
|
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
%check
|
|
make test
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes mkhctype mkpfunc README TODO
|
|
%{perl_vendorarch}/auto/*
|
|
%{perl_vendorarch}/HTML*
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 3.78-2.sme
|
|
- import to SME11
|
|
|
|
* Thu May 05 2022 Gavin Carr <gavin@openfusion.net> 3.78-1
|
|
- Update to version 3.78.
|
|
|
|
* Thu May 31 2012 Gavin Carr <gavin@openfusion.com.au> 3.69-1
|
|
- Specfile autogenerated by cpanspec 1.79.
|