From 9025ed8972d5e11c1996e9d4481c437f9bcb61b0 Mon Sep 17 00:00:00 2001 From: Warren Togami Date: Fri, 1 Apr 2005 19:55:09 +0000 Subject: [PATCH] Update to 3.45 plus heavy spec cleanup. --- .cvsignore | 1 + perl-HTML-Parser.spec | 51 +++++++++++++++++++++++-------------------- sources | 2 +- 3 files changed, 29 insertions(+), 25 deletions(-) diff --git a/.cvsignore b/.cvsignore index 36a54f0..2b2b43b 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1,2 @@ HTML-Parser-3.35.tar.gz +HTML-Parser-3.45.tar.gz diff --git a/perl-HTML-Parser.spec b/perl-HTML-Parser.spec index 9e9e8a4..8028cba 100644 --- a/perl-HTML-Parser.spec +++ b/perl-HTML-Parser.spec @@ -1,18 +1,18 @@ -%define _use_internal_dependency_generator 0 +%{!?perl_vendorarch: %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)} -%define name perl-HTML-Parser %define real_name HTML-Parser -Summary: A Perl module for parsing HTML. -Name: %{name} -Version: 3.35 -Release: 8 +Summary: Perl module for parsing HTML +Name: perl-%{real_name} +Version: 3.45 +Release: 1 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://search.cpan.org/search?query=HTML%3A%3AParser +Source: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/%{real_name}-%{version}.tar.gz +Url: http://search.cpan.org/dist/HTML-Parser/ BuildRoot: %{_tmppath}/%{name}-buildroot/ -Requires: perl >= 5.6.0, perl-HTML-Tagset >= 3.03 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl-HTML-Tagset >= 3.03 BuildRequires: perl >= 5.6.0, perl-HTML-Tagset >= 3.03 %description @@ -24,39 +24,42 @@ HTML::LinkExtor, HTML::PullParser, and HTML::TokeParser modules. %setup -q -n %{real_name}-%{version} %build -CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor < /dev/null +CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor < /dev/null make -make test + %install rm -rf $RPM_BUILD_ROOT -make install +make install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT file=$RPM_BUILD_ROOT%{_mandir}/man3/HTML::Entities.3pm iconv -f iso-8859-1 -t utf-8 <"$file" > "${file}_" mv -f "${file}_" "$file" -find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; +find $RPM_BUILD_ROOT -type f -a \( -name perllocal.pod -o -name .packlist \ + -o \( -name '*.bs' -a -empty \) \) -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check || : +make test -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 -f perl-HTML-Parser-%{version}-filelist +%files %defattr(-,root,root) -%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 +%{perl_vendorarch}/HTML/ +%{perl_vendorarch}/auto/HTML/ +%{_mandir}/man3/* %changelog +* Fri Apr 1 2005 Michael Schwendt - 3.45-1 +- Update to 3.45 plus heavy spec cleanup. + * Wed Mar 30 2005 Warren Togami - remove brp-compress diff --git a/sources b/sources index e302dad..4b018cb 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -674da96a8f291ae47432a363e3099d3b HTML-Parser-3.35.tar.gz +c2ac1379ac5848dd32e24347cd679391 HTML-Parser-3.45.tar.gz