This commit is contained in:
Tom "spot" Callaway 2010-12-20 12:01:31 -05:00
parent 92409ec731
commit 6ecec1428e
2 changed files with 31 additions and 32 deletions

View File

@ -1,68 +1,67 @@
Name: perl-HTML-Tree
Version: 3.23
Release: 11%{?dist}
Version: 4.1
Release: 1%{?dist}
Epoch: 1
Summary: HTML tree handling modules for Perl
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/HTML-Tree/
Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PETEK/HTML-Tree-%{version}.tar.gz
# Upstream bug filed:
# https://rt.cpan.org/Ticket/Display.html?id=49932
Patch0: missing_close_tag.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: http://www.cpan.org/authors/id/J/JF/JFEARN/HTML-Tree-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl(HTML::Parser) >= 2.19
BuildRequires: perl(HTML::Parser) >= 3.46
BuildRequires: perl(HTML::Tagset) >= 3.02
BuildRequires: perl(Module::Build)
# For improved tests
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Pod) >= 1.00
BuildRequires: perl(Test::More)
Epoch: 1
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(HTML::Parser) >= 3.46
Requires: perl(HTML::Tagset) >= 3.02
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
# add because of possible problems with not mathing cpan,rpm version
Provides: perl(HTML::Tree) = %{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
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}
%patch0 -p1 -b .missing-close-tag
%{__perl} -pi -e 's|/usr/local/bin/perl|%{__perl}|' htmltree
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}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%{__perl} Build.PL installdirs=vendor
./Build
%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/*
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
./Build test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc Changes README TODO htmltree
%doc Changes README TODO
%{_bindir}/htmltree
%{perl_vendorlib}/HTML
%{_mandir}/man3/HTML::*3*
%changelog
* Wed Dec 1 2010 Tom "spot" Callaway <tcallawa@redhat.com> - 1:4.1-1
- update to 4.1
* Mon Oct 18 2010 Marcela Mašláňová <mmaslano@redhat.com> - 1:3.40-1
- update, adjust specfile to use Build.PL
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:3.23-11
- Mass rebuild with perl-5.12.0

View File

@ -1 +1 @@
6352f50be402301f79b580dd235d7762 HTML-Tree-3.23.tar.gz
c339cc18ec68e9c677480d2e714b20d1 HTML-Tree-4.1.tar.gz