2005-02-13 19:36:38 +00:00
|
|
|
Name: perl-HTML-Tree
|
2007-01-18 01:21:07 +00:00
|
|
|
Version: 3.23
|
2009-09-28 14:33:10 +00:00
|
|
|
Release: 9%{?dist}
|
2005-02-13 19:36:38 +00:00
|
|
|
Summary: HTML tree handling modules for Perl
|
|
|
|
Group: Development/Libraries
|
2007-08-26 15:53:48 +00:00
|
|
|
License: GPL+ or Artistic
|
2005-02-13 19:36:38 +00:00
|
|
|
URL: http://search.cpan.org/dist/HTML-Tree/
|
2008-11-20 22:49:52 +00:00
|
|
|
Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PETEK/HTML-Tree-%{version}.tar.gz
|
2009-09-28 14:33:10 +00:00
|
|
|
# Upstream bug filed:
|
|
|
|
# https://rt.cpan.org/Ticket/Display.html?id=49932
|
|
|
|
Patch0: missing_close_tag.patch
|
2005-02-13 19:36:38 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildArch: noarch
|
2006-01-16 09:29:39 +00:00
|
|
|
BuildRequires: perl(HTML::Parser) >= 2.19
|
|
|
|
BuildRequires: perl(HTML::Tagset) >= 3.02
|
2006-01-16 09:40:22 +00:00
|
|
|
# For improved tests
|
|
|
|
BuildRequires: perl(Test::Pod) >= 1.00
|
2007-08-26 15:53:48 +00:00
|
|
|
BuildRequires: perl(Test::More)
|
2006-07-11 14:03:48 +00:00
|
|
|
Epoch: 1
|
2005-02-13 19:36:38 +00:00
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
|
|
|
|
%description
|
|
|
|
This distribution contains a suite of modules for representing,
|
|
|
|
creating, and extracting information from HTML syntax trees; there is
|
|
|
|
also relevent 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}
|
2009-09-28 14:33:10 +00:00
|
|
|
%patch0 -p1 -b .missing-close-tag
|
2005-02-13 19:36:38 +00:00
|
|
|
%{__perl} -pi -e 's|/usr/local/bin/perl|%{__perl}|' htmltree
|
|
|
|
|
2006-01-16 09:29:39 +00:00
|
|
|
cat << \EOF > %{name}-prov
|
|
|
|
#!/bin/sh
|
|
|
|
%{__perl_provides} $* |\
|
|
|
|
sed -e '/^perl(main)$/d'
|
|
|
|
EOF
|
|
|
|
%define __perl_provides %{_builddir}/HTML-Tree-%{version}/%{name}-prov
|
|
|
|
chmod +x %{__perl_provides}
|
|
|
|
|
2005-02-13 19:36:38 +00:00
|
|
|
%build
|
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
|
|
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
|
|
|
2006-01-16 09:29:39 +00:00
|
|
|
%check
|
2005-02-13 19:36:38 +00:00
|
|
|
make test
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc Changes README TODO htmltree
|
|
|
|
%{perl_vendorlib}/HTML
|
|
|
|
%{_mandir}/man3/HTML::*3*
|
|
|
|
|
|
|
|
%changelog
|
2009-09-28 14:33:10 +00:00
|
|
|
* Mon Sep 28 2009 Tom "spot" Callaway <tcallawa@redhat.com> - 1:3.23-9
|
|
|
|
- apply Jeff Fearn's fix for the missing close tag bug (bz 535587)
|
|
|
|
|
|
|
|
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.23-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 19:59:42 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.23-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2009-02-26 17:54:09 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.23-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-11-20 22:49:52 +00:00
|
|
|
* Thu Nov 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:3.23-5
|
|
|
|
- fix source url
|
|
|
|
|
2008-02-28 13:06:25 +00:00
|
|
|
* Wed Feb 27 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1:3.23-4
|
|
|
|
- Rebuild for perl 5.10 (again)
|
|
|
|
|
2008-01-20 18:40:57 +00:00
|
|
|
* Sun Jan 20 2008 Tom "spot" Callaway <tcallawa@redhat.com> 3.23-3
|
|
|
|
- rebuild for new perl
|
|
|
|
|
2007-08-26 15:53:48 +00:00
|
|
|
* Sun Aug 26 2007 Tom "spot" Callaway <tcallawa@redhat.com> 3.23-2
|
|
|
|
- license tag fix
|
|
|
|
|
2007-01-18 01:21:07 +00:00
|
|
|
* Wed Jan 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 3.23-1
|
|
|
|
- bump to 3.23
|
|
|
|
|
2006-09-15 15:04:21 +00:00
|
|
|
* Fri Sep 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> 3.21-1
|
|
|
|
- bump to 3.21
|
|
|
|
|
2006-07-11 14:03:48 +00:00
|
|
|
* Tue Jul 11 2006 Tom "spot" Callaway <tcallawa@redhat.com> 3.20-2
|
|
|
|
- bump epoch to ensure clean upgrades
|
|
|
|
|
2006-07-07 15:00:57 +00:00
|
|
|
* Fri Jul 7 2006 Tom "spot" Callaway <tcallawa@redhat.com> 3.20-1
|
|
|
|
- bump to 3.20
|
|
|
|
|
2006-01-16 09:40:22 +00:00
|
|
|
* Mon Jan 16 2006 Ralf Corsépius <rc040203@freenet.de> - 3.1901-2
|
|
|
|
- BR: perl(Test::Pod).
|
|
|
|
|
2006-01-16 09:29:39 +00:00
|
|
|
* Mon Jan 16 2006 Ralf Corsépius <rc040203@freenet.de> - 3.1901-1
|
|
|
|
- Spec cleanup.
|
|
|
|
- Filter Provides: perl(main).
|
|
|
|
- Upstream update.
|
|
|
|
|
2005-04-06 22:12:45 +00:00
|
|
|
* Fri Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
|
|
|
|
- rebuilt
|
|
|
|
|
2005-02-13 19:36:38 +00:00
|
|
|
* Tue Jan 4 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:3.18-2
|
|
|
|
- Don't install htmltree into %%{_bindir} but include it in docs.
|
|
|
|
|
|
|
|
* Sat Dec 4 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:3.18-0.fdr.1
|
|
|
|
- First build.
|