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
|
||||
%define version 1.0
|
||||
%define release 1
|
||||
Summary: This is what perl-HTML-Parser does.
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}%{?dist}
|
||||
Source: %{name}-%{version}.tar.gz
|
||||
License: GNU GPL version 2
|
||||
Group: SMEserver/addon
|
||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||
Prefix: %{_prefix}
|
||||
BuildArchitectures: noarch
|
||||
BuildRequires: smeserver-devtools
|
||||
Requires: smeserver-release >= 11.0
|
||||
AutoReqProv: no
|
||||
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.
|
||||
|
||||
|
||||
%changelog
|
||||
* Day MMMM DD YYYY <brianr@koozali.org> 1.0-1.sme
|
||||
- Initial code - create RPM [SME:99999]
|
||||
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
|
||||
%setup -q -n HTML-Parser-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
|
||||
rm -f %{name}-%{version}-filelist
|
||||
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
|
||||
> %{name}-%{version}-filelist
|
||||
#echo "%doc COPYING" >> %{name}-%{version}-filelist
|
||||
#--dir <dir> 'attr(755,user,grp)' \
|
||||
#--file <file> 'attr(755,root,root)' \
|
||||
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
|
||||
cd ..
|
||||
rm -rf %{name}-%{version}
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%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
|
||||
#uninstall
|
||||
%files -f %{name}-%{version}-filelist
|
||||
%defattr(-,root,root)
|
||||
* Thu May 31 2012 Gavin Carr <gavin@openfusion.com.au> 3.69-1
|
||||
- Specfile autogenerated by cpanspec 1.79.
|
||||
|
Loading…
x
Reference in New Issue
Block a user