4.1
This commit is contained in:
parent
92409ec731
commit
6ecec1428e
@ -1,68 +1,67 @@
|
|||||||
Name: perl-HTML-Tree
|
Name: perl-HTML-Tree
|
||||||
Version: 3.23
|
Version: 4.1
|
||||||
Release: 11%{?dist}
|
Release: 1%{?dist}
|
||||||
|
Epoch: 1
|
||||||
Summary: HTML tree handling modules for Perl
|
Summary: HTML tree handling modules for Perl
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/HTML-Tree/
|
URL: http://search.cpan.org/dist/HTML-Tree/
|
||||||
Source0: http://search.cpan.org/CPAN/authors/id/P/PE/PETEK/HTML-Tree-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/J/JF/JFEARN/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)
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(HTML::Parser) >= 2.19
|
BuildRequires: perl(HTML::Parser) >= 3.46
|
||||||
BuildRequires: perl(HTML::Tagset) >= 3.02
|
BuildRequires: perl(HTML::Tagset) >= 3.02
|
||||||
|
BuildRequires: perl(Module::Build)
|
||||||
# For improved tests
|
# For improved tests
|
||||||
BuildRequires: perl(Test::Pod) >= 1.00
|
BuildRequires: perl(Test::Exception)
|
||||||
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
BuildRequires: perl(Test::More)
|
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
|
%description
|
||||||
This distribution contains a suite of modules for representing,
|
This distribution contains a suite of modules for representing,
|
||||||
creating, and extracting information from HTML syntax trees; there is
|
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
|
libwww-perl distribution, but are now unbundled in order to facilitate
|
||||||
a separate development track.
|
a separate development track.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n HTML-Tree-%{version}
|
%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
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
%{__perl} Build.PL installdirs=vendor
|
||||||
make %{?_smp_mflags}
|
./Build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
||||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
||||||
find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
./Build test
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc Changes README TODO htmltree
|
%doc Changes README TODO
|
||||||
|
%{_bindir}/htmltree
|
||||||
%{perl_vendorlib}/HTML
|
%{perl_vendorlib}/HTML
|
||||||
%{_mandir}/man3/HTML::*3*
|
%{_mandir}/man3/HTML::*3*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Sun May 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 1:3.23-11
|
||||||
- Mass rebuild with perl-5.12.0
|
- Mass rebuild with perl-5.12.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user