62 lines
2.0 KiB
RPMSpec
62 lines
2.0 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-HTML-TableExtract
|
|
Version: 2.13
|
|
Release: 1mamba
|
|
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: http://www.cpan.org
|
|
Source: http://search.cpan.org/CPAN/authors/id/M/MS/MSISK/HTML-TableExtract-%{version}.tar.gz
|
|
License: Artistic, GPL
|
|
Requires: perl >= %perl_major_ver
|
|
BuildRequires: perl-devel >= %perl_major_ver
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%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
|
|
* 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
|