perl-HTML-TableExtract/perl-HTML-TableExtract.spec

72 lines
2.3 KiB
RPMSpec

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-HTML-TableExtract
Version: 2.15
Release: 2mamba
Summary: HTML-TableExtract - Perl module for extracting the content contained in tables within an HTML document, either as text or encoded element trees
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.cpan.org/
Source: http://search.cpan.org/CPAN/authors/id/M/MS/MSISK/HTML-TableExtract-%{version}.tar.gz
License: Artistic, GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: perl-HTML-Parser
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: perl >= 2:5.36.0
BuildRequires: perl-devel >= %perl_major_ver
Requires: perl >= %perl_major_ver
%description
HTML-TableExtract - Perl module for extracting the content contained in tables within an HTML document, either as text or encoded element trees.
%prep
%setup -q -n HTML-TableExtract-%{version}
%build
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
%make
%make test
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall_perl
packlist=`find %{buildroot} -name .packlist`
[ -z "$packlist" ] && exit 1 || cat $packlist | \
sed "s,%buildroot,,g;s,.*/man/.*,&.gz,g" | \
sort -u > .packlist && rm $packlist
strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'`
for dir in `find %{buildroot} -type d | grep $strid`; do
echo "%dir ${dir#%buildroot}" >> .packlist
done
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%changelog
* Mon Apr 17 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.15-2mamba
- rebuilt with perl 5.36.0
* Sun Oct 22 2017 Automatic Build System <autodist@mambasoft.it> 2.15-1mamba
- automatic update by autodist
* Fri Jul 03 2015 Automatic Build System <autodist@mambasoft.it> 2.13-1mamba
- automatic update by autodist
* Tue Jan 20 2015 Automatic Build System <autodist@mambasoft.it> 2.12-1mamba
- automatic update by autodist
* Sun Aug 28 2011 Automatic Build System <autodist@mambasoft.it> 2.11-1mamba
- automatic version update by autodist
* Tue Sep 22 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10-1mamba
- package created by autospec