Incorporate changes from jpo@di.uminho.pt for package review.
This commit is contained in:
parent
c37cf86514
commit
867619467b
@ -1,8 +1 @@
|
||||
HTML-Parser-3.35.tar.gz
|
||||
HTML-Parser-3.45.tar.gz
|
||||
HTML-Parser-3.46.tar.gz
|
||||
HTML-Parser-3.48.tar.gz
|
||||
HTML-Parser-3.50.tar.gz
|
||||
HTML-Parser-3.51.tar.gz
|
||||
HTML-Parser-3.54.tar.gz
|
||||
HTML-Parser-3.55.tar.gz
|
||||
HTML-Parser-3.56.tar.gz
|
||||
|
||||
@ -1,58 +1,69 @@
|
||||
%{!?perl_vendorarch: %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch)}
|
||||
|
||||
%define real_name HTML-Parser
|
||||
|
||||
Summary: Perl module for parsing HTML
|
||||
Name: perl-%{real_name}
|
||||
Version: 3.55
|
||||
Release: 1%{?dist}
|
||||
License: GPL or Artistic
|
||||
Group: Development/Libraries
|
||||
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(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl-HTML-Tagset >= 3.03
|
||||
BuildRequires: perl >= 5.6.0, perl-HTML-Tagset >= 3.03
|
||||
Name: perl-%{real_name}
|
||||
Version: 3.56
|
||||
Release: 1%{?dist}
|
||||
Summary: Perl module for parsing HTML
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPL or Artistic
|
||||
Url: http://search.cpan.org/dist/HTML-Parser/
|
||||
Source: http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/%{real_name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: perl(HTML::Tagset) >= 3.03
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
Requires: perl(HTML::Tagset) >= 3.03
|
||||
|
||||
%description
|
||||
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}
|
||||
chmod -c a-x eg/*
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor < /dev/null
|
||||
make
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
make pure_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 -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 ';'
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||
|
||||
%check || :
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README eg/
|
||||
%{perl_vendorarch}/HTML/
|
||||
%{perl_vendorarch}/auto/HTML/
|
||||
%{_mandir}/man3/*
|
||||
%{_mandir}/man3/*.3pm*
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Feb 3 2007 Jose Pedro Oliveira <jpo at di.uminho.pt> - 3.56-1
|
||||
- Update to 3.56.
|
||||
- Brought specfile closer to the Fedora's Perl template.
|
||||
- Converted specfile to UTF-8 (changelog entries).
|
||||
- Added examples and doc files.
|
||||
|
||||
* Mon Jul 17 2006 Jason Vas Dias <jvdias@redhat.com> - 3.55-1.fc6
|
||||
- Upgrade to 3.55
|
||||
|
||||
@ -128,37 +139,37 @@ rm -rf $RPM_BUILD_ROOT
|
||||
* Thu Jul 18 2001 Crutcher Dunnavant <crutcher@redhat.com> 3.25-2
|
||||
- imported from mandrake. tweaked man path.
|
||||
|
||||
* Tue Jul 03 2001 François Pons <fpons@mandrakesoft.com> 3.25-1mdk
|
||||
* Tue Jul 03 2001 François Pons <fpons@mandrakesoft.com> 3.25-1mdk
|
||||
- 3.25.
|
||||
|
||||
* Wed Jun 20 2001 Christian Belisle <cbelisle@mandrakesoft.com> 3.18-3mdk
|
||||
- Fixed distribution tag.
|
||||
- Updated Requires.
|
||||
- Added an option to %makeinstall.
|
||||
- Added an option to %%makeinstall.
|
||||
|
||||
* Sun Jun 17 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 3.18-2mdk
|
||||
- Rebuild against the latest perl.
|
||||
|
||||
* Tue Feb 27 2001 François Pons <fpons@mandrakesoft.com> 3.18-1mdk
|
||||
* Tue Feb 27 2001 François Pons <fpons@mandrakesoft.com> 3.18-1mdk
|
||||
- 3.18.
|
||||
|
||||
* Tue Jan 30 2001 François Pons <fpons@mandrakesoft.com> 3.15-1mdk
|
||||
* Tue Jan 30 2001 François Pons <fpons@mandrakesoft.com> 3.15-1mdk
|
||||
- 3.15.
|
||||
|
||||
* Tue Dec 05 2000 François Pons <fpons@mandrakesoft.com> 3.14-1mdk
|
||||
* Tue Dec 05 2000 François Pons <fpons@mandrakesoft.com> 3.14-1mdk
|
||||
- 3.14.
|
||||
|
||||
* Thu Oct 12 2000 François Pons <fpons@mandrakesoft.com> 3.13-1mdk
|
||||
* Thu Oct 12 2000 François Pons <fpons@mandrakesoft.com> 3.13-1mdk
|
||||
- 3.13.
|
||||
|
||||
* Tue Aug 29 2000 François Pons <fpons@mandrakesoft.com> 3.11-1mdk
|
||||
* Tue Aug 29 2000 François Pons <fpons@mandrakesoft.com> 3.11-1mdk
|
||||
- 3.11.
|
||||
|
||||
* Thu Aug 03 2000 François Pons <fpons@mandrakesoft.com> 3.10-2mdk
|
||||
* Thu Aug 03 2000 François Pons <fpons@mandrakesoft.com> 3.10-2mdk
|
||||
- macroszifications.
|
||||
- add doc.
|
||||
|
||||
* Tue Jul 18 2000 François Pons <fpons@mandrakesoft.com> 3.10-1mdk
|
||||
* Tue Jul 18 2000 François Pons <fpons@mandrakesoft.com> 3.10-1mdk
|
||||
- removed perllocal.pod from files.
|
||||
- 3.10.
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user