generated from smedev/Template-for-SMEServer-Core-Perl
* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 3.78-2.sme
- import to SME11
This commit is contained in:
parent
7ee6b73f26
commit
91c0cc3e79
BIN
HTML-Parser-3.78.tar.gz
(Stored with Git LFS)
Normal file
BIN
HTML-Parser-3.78.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@ -1,58 +1,93 @@
|
|||||||
%define name perl-HTML-Parser
|
Name: perl-HTML-Parser
|
||||||
%define version 1.0
|
Version: 3.78
|
||||||
%define release 1
|
Release: 2%{?org_tag}%{?dist}
|
||||||
Summary: This is what perl-HTML-Parser does.
|
Summary: HTML parser class
|
||||||
Name: %{name}
|
License: GPL+ or Artistic
|
||||||
Version: %{version}
|
Group: Development/Libraries
|
||||||
Release: %{release}%{?dist}
|
URL: http://search.cpan.org/dist/HTML-Parser/
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source0: http://localhost/cpan//authors/id/G/GA/GAAS/HTML-Parser-%{version}.tar.gz
|
||||||
License: GNU GPL version 2
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Group: SMEserver/addon
|
BuildRequires: perl >= 0:5.008
|
||||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
BuildRequires: coreutils
|
||||||
Prefix: %{_prefix}
|
BuildRequires: findutils
|
||||||
BuildArchitectures: noarch
|
BuildRequires: gcc
|
||||||
BuildRequires: smeserver-devtools
|
BuildRequires: glibc-common
|
||||||
Requires: smeserver-release >= 11.0
|
BuildRequires: make
|
||||||
AutoReqProv: no
|
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
|
%description
|
||||||
Objects of the HTML::Parser class will recognize markup and separate it
|
Objects of the HTML::Parser class will recognize markup and separate it
|
||||||
from plain text (alias data content) in HTML documents. As different
|
from plain text (alias data content) in HTML documents. As different
|
||||||
kinds of markup and text are recognized, the corresponding event handlers
|
kinds of markup and text are recognized, the corresponding event handlers
|
||||||
are invoked.
|
are invoked.
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
|
|
||||||
- Initial code - create RPM [SME:99999]
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%setup -q -n HTML-Parser-%{version}
|
||||||
%setup -q
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf %{buildroot}
|
||||||
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
|
||||||
rm -f %{name}-%{version}-filelist
|
make pure_install PERL_INSTALL_ROOT=%{buildroot}
|
||||||
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
|
||||||
> %{name}-%{version}-filelist
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
||||||
#echo "%doc COPYING" >> %{name}-%{version}-filelist
|
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||||||
#--dir <dir> 'attr(755,user,grp)' \
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||||
#--file <file> 'attr(755,root,root)' \
|
|
||||||
|
%{_fixperms} %{buildroot}/*
|
||||||
|
|
||||||
|
%check
|
||||||
|
make test
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
cd ..
|
rm -rf %{buildroot}
|
||||||
rm -rf %{name}-%{version}
|
|
||||||
|
|
||||||
%pre
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc Changes mkhctype mkpfunc README TODO
|
||||||
|
%{perl_vendorarch}/auto/*
|
||||||
|
%{perl_vendorarch}/HTML*
|
||||||
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%preun
|
%changelog
|
||||||
|
* Thu Jan 23 2025 Jean-Philippe Pialasse <jpp@koozali.org> 3.78-2.sme
|
||||||
|
- import to SME11
|
||||||
|
|
||||||
%post
|
* Thu May 05 2022 Gavin Carr <gavin@openfusion.net> 3.78-1
|
||||||
|
- Update to version 3.78.
|
||||||
|
|
||||||
%postun
|
* Thu May 31 2012 Gavin Carr <gavin@openfusion.com.au> 3.69-1
|
||||||
#uninstall
|
- Specfile autogenerated by cpanspec 1.79.
|
||||||
%files -f %{name}-%{version}-filelist
|
|
||||||
%defattr(-,root,root)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user