From 34f44fe30ce9027e05e88584b785d0d97100af99 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 10:11:27 +0000 Subject: [PATCH] auto-import changelog data from perl-HTML-Parser-3.26-14.src.rpm Tue Aug 06 2002 Chip Turner - automated release bump and build Tue Jun 04 2002 Chip Turner - properly claim directories owned by package so they are removed when package is removed Mon Jun 03 2002 Chip Turner - fix for Makefile.PL sometimes prompting for input --- perl-HTML-Parser.spec | 64 +++++++++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 24 deletions(-) diff --git a/perl-HTML-Parser.spec b/perl-HTML-Parser.spec index 2902a94..678e4cc 100644 --- a/perl-HTML-Parser.spec +++ b/perl-HTML-Parser.spec @@ -1,49 +1,65 @@ %define name perl-HTML-Parser %define real_name HTML-Parser -%define version 3.26 -%define release 2 -Summary: HTML-Parser module for perl (World_Wide_Web_HTML_HTTP_CGI/HTML) -Name: %{name} -Version: %{version} -Release: %{release} -License: GPL or Artistic -Group: System Environment/Libraries -Source: ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/HTML/%{real_name}-%{version}.tar.gz -Url: http://www.cpan.org -BuildRoot: %{_tmppath}/%{name}-buildroot/ -Requires: perl >= 5.6.0, perl-HTML-Tagset >= 3.03 -BuildRequires: perl >= 5.6.0, perl-HTML-Tagset >= 3.03 +Summary: A Perl module for parsing HTML. +Name: %{name} +Version: 3.26 +Release: 14 +License: GPL or Artistic +Group: System Environment/Libraries +Source: ftp://ftp.cpan.org/pub/perl/CPAN/modules/by-module/HTML/%{real_name}-%{version}.tar.gz +Url: http://www.cpan.org +BuildRoot: %{_tmppath}/%{name}-buildroot/ +Requires: perl >= 5.6.0, perl-HTML-Tagset >= 3.03 +BuildRequires: perl >= 5.6.0, perl-HTML-Tagset >= 3.03 %description -HTML-Parser module for perl to parse and extract information -from HTML documents. +The HTML-Parser module for perl to parse and extract information from +HTML documents, including the HTML::Entities, HTML::HeadParser, +HTML::LinkExtor, HTML::PullParser, and HTML::TokeParser modules. %prep %setup -q -n %{real_name}-%{version} %build -# compile with default options (prompt() checks for STDIN being a terminal). -%{__perl} Makefile.PL PREFIX=%{_prefix} -make OPTIMIZE="$RPM_OPT_FLAGS" PREFIX=%{_prefix} +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor < /dev/null +make make test %install rm -rf $RPM_BUILD_ROOT -%makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix} INSTALLDIRS=vendor +make install + +[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress + +find $RPM_BUILD_ROOT/usr -type f -print | + sed "s@^$RPM_BUILD_ROOT@@g" | + grep -v perllocal.pod | + grep -v "\.packlist" > perl-HTML-Parser-%{version}-filelist +if [ "$(cat perl-HTML-Parser-%{version}-filelist)X" = "X" ] ; then + echo "ERROR: EMPTY FILE LIST" + exit -1 +fi %clean rm -rf $RPM_BUILD_ROOT -%files +%files -f perl-HTML-Parser-%{version}-filelist %defattr(-,root,root) -%doc README TODO Changes -%{_mandir}/*/* -%{_prefix}/lib/perl5/vendor_perl/*/*/HTML/* -%{_prefix}/lib/perl5/vendor_perl/*/*/auto/HTML/Parser/Parser.so +%dir %{_libdir}/perl5/vendor_perl/%(perl -MConfig -le 'print "$Config{version}/$Config{archname}"')/HTML +%dir %{_libdir}/perl5/vendor_perl/%(perl -MConfig -le 'print "$Config{version}/$Config{archname}"')/auto/HTML %changelog +* Tue Aug 6 2002 Chip Turner +- automated release bump and build + +* Tue Jun 4 2002 Chip Turner +- properly claim directories owned by package so they are removed when package is removed + +* Mon Jun 3 2002 Chip Turner +- fix for Makefile.PL sometimes prompting for input + * Wed Mar 27 2002 Chip Turner - update to 3.26, move to vendor_perl