diff --git a/README.md b/README.md index 85c05b7..90ebd32 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # perl-HTML-Tree +This distribution contains a suite of modules for representing, +creating, and extracting information from HTML syntax trees; there is also relevant documentation. These modules used to be part of the libwww-perl distribution, but are now unbundled in order to facilitate a separate development track. + diff --git a/perl-HTML-Tree.spec b/perl-HTML-Tree.spec new file mode 100644 index 0000000..54d83ed --- /dev/null +++ b/perl-HTML-Tree.spec @@ -0,0 +1,73 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-HTML-Tree +Version: 5.03 +Release: 1mamba +Summary: HTML::Tree - build and scan parse-trees of HTML +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/C/CJ/CJM/HTML-Tree-%{version}.tar.gz +License: GPL, Artistic +BuildRequires: perl(HTML::Parser) +BuildRequires: perl(HTML::Tagset) +BuildRequires: perl(Module::Build) +BuildRequires: perl(Test::Exception) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl-devel +Requires: perl(HTML::Parser) +Requires: perl(HTML::Tagset) +Requires: perl >= %perl_major_ver +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This distribution contains a suite of modules for representing, +creating, and extracting information from HTML syntax trees; there is also relevant documentation. These modules used to be part of the libwww-perl distribution, but are now unbundled in order to facilitate a separate development track. + +%prep +%setup -q -n HTML-Tree-%{version} + +%build +%{__perl} Build.PL installdirs=vendor +./Build +./Build test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +./Build install destdir=%{buildroot} + +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}" + +%files -f .packlist +%defattr(-,root,root) +#%doc Changes README TODO + +%changelog +* Sat Apr 27 2013 Automatic Build System 5.03-1mamba +- update to 5.03 + +* Mon Nov 12 2012 Silvan Calarco 4.2-3mamba +- perl 5.16 mass rebuild + +* Sat Nov 19 2011 Silvan Calarco 4.2-2mamba +- rebuilt to remove requirement on /usr/bin/perl + +* Mon May 02 2011 Automatic Build System 4.2-1mamba +- automatic update by autodist + +* Sun Feb 20 2011 gil 4.1-1mamba +- package created by autospec