forked from pool/perl-HTML-TokeParser-Simple
This commit is contained in:
committed by
Git OBS Bridge
parent
e982df9e7e
commit
48a89de36c
74
perl-HTML-TokeParser-Simple.spec
Normal file
74
perl-HTML-TokeParser-Simple.spec
Normal file
@@ -0,0 +1,74 @@
|
|||||||
|
%define modname HTML-TokeParser-Simple
|
||||||
|
Name: perl-%{modname}
|
||||||
|
Version: 3.15
|
||||||
|
Release: 1
|
||||||
|
Summary: Easy to use HTML::TokeParser interface
|
||||||
|
Requires: perl = %{perl_version} perl-HTML-Parser perl-Sub-Override
|
||||||
|
BuildRequires: perl perl-HTML-Parser perl-Sub-Override
|
||||||
|
License: GPL/Artistic
|
||||||
|
Group: Development/Libraries/Perl
|
||||||
|
Source: %{modname}-%{version}.tar.bz2
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-root
|
||||||
|
|
||||||
|
%description
|
||||||
|
HTML::TokeParser::Simple is a subclass of HTML::TokeParser that uses
|
||||||
|
easy-to-remember method calls to work with the tokens. Rather than
|
||||||
|
try to remember a bunch of array indices or try to write a bunch of
|
||||||
|
constants for them, you can now do something like:
|
||||||
|
|
||||||
|
$token->is_start_tag( 'form' )
|
||||||
|
|
||||||
|
Instead of
|
||||||
|
|
||||||
|
$token->[0] eq 'S' and $token->[1] eq 'form'
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
--------
|
||||||
|
Curtis "Ovid" Poe <poec@yahoo.com>
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{modname}-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
||||||
|
make
|
||||||
|
make test
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||||
|
%perl_process_packlist
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf %{buildroot}
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-, root, root)
|
||||||
|
%doc README Changes
|
||||||
|
%doc %{_mandir}/man?/*
|
||||||
|
%{perl_vendorlib}/HTML/TokeParser/Simple.pm
|
||||||
|
%{perl_vendorlib}/HTML/TokeParser/Simple
|
||||||
|
%{perl_vendorarch}/auto/HTML/TokeParser/Simple
|
||||||
|
/var/adm/perl-modules/%{name}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
|
||||||
|
* Wed Jun 21 2006 - James Oakley <jfunk@funktronics.ca> - 3.15-1
|
||||||
|
- Update
|
||||||
|
|
||||||
|
* Fri Nov 11 2005 - James Oakley <jfunk@funktronics.ca> - 3.14-ft.1
|
||||||
|
- Update
|
||||||
|
- Build for SL10
|
||||||
|
|
||||||
|
* Thu May 12 2005 - James Oakley <jfunk@funktronics.ca> - 3.13-ft.2
|
||||||
|
- Build for SL93
|
||||||
|
|
||||||
|
* Fri Nov 19 2004 - James Oakley <jfunk@funktronics.ca> - 3.13-ft.1
|
||||||
|
- Update
|
||||||
|
- Build for SL92
|
||||||
|
|
||||||
|
* Tue May 11 2004 - James Oakley <jfunk@funktronics.ca> - 2.2-2
|
||||||
|
- Build for SL91
|
||||||
|
|
||||||
|
* Wed Apr 14 2004 - James Oakley <jfunk@funktronics.ca> - 2.2-1
|
||||||
|
- Initial release
|
Reference in New Issue
Block a user