Update to 3.45 plus heavy spec cleanup.
This commit is contained in:
parent
ac58470023
commit
9025ed8972
@ -1 +1,2 @@
|
||||
HTML-Parser-3.35.tar.gz
|
||||
HTML-Parser-3.45.tar.gz
|
||||
|
||||
@ -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 <mschwendt@users.sf.net> - 3.45-1
|
||||
- Update to 3.45 plus heavy spec cleanup.
|
||||
|
||||
* Wed Mar 30 2005 Warren Togami <wtogami@redhat.com>
|
||||
- remove brp-compress
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user