OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTML-TagParser?expand=0&rev=1
This commit is contained in:
76
perl-HTML-TagParser.spec
Normal file
76
perl-HTML-TagParser.spec
Normal file
@@ -0,0 +1,76 @@
|
||||
#
|
||||
# spec file for package perl-HTML-TagParser (Version 0.16.1)
|
||||
#
|
||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%define oversion 0.16
|
||||
|
||||
Name: perl-HTML-TagParser
|
||||
URL: http://search.cpan.org/~kawasaki/HTML-TagParser-%{oversion}/
|
||||
License: GPL, Artistic License
|
||||
Group: Development/Languages/Perl
|
||||
Requires: perl = %{perl_version}
|
||||
Autoreqprov: on
|
||||
Summary: Yet another HTML document parser with DOM-like methods
|
||||
Packager: jw@suse.de
|
||||
|
||||
Version: 0.16.1
|
||||
Release: 1
|
||||
Source: HTML-TagParser-%{oversion}.tar.bz2
|
||||
Patch: HTML-TagParser-%{oversion}-subtree.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
HTML::TagParser - Yet another HTML document parser with DOM-like methods.
|
||||
Patched version with improved container detection, added subtree extraction and
|
||||
DOM-like navigation methods.
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Yusuke Kawasaki <u-suke@kawa.net>
|
||||
|
||||
Contributors
|
||||
------------
|
||||
Juergen Weigert <jw@suse.de>
|
||||
|
||||
|
||||
%prep
|
||||
%setup -n HTML-TagParser-%{oversion}
|
||||
%patch -p1
|
||||
|
||||
%build
|
||||
perl Makefile.PL
|
||||
make
|
||||
make test
|
||||
|
||||
%install
|
||||
chmod a-x README
|
||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
||||
%if 0%{?suse_version}
|
||||
%perl_process_packlist
|
||||
%else
|
||||
rm -f $RPM_BUILD_ROOT/%{perl_archlib}/perllocal.pod
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc MANIFEST Changes README
|
||||
%{perl_vendorlib}/HTML
|
||||
%dir %{perl_vendorarch}/auto/HTML-TagParser
|
||||
%{perl_vendorarch}/auto/HTML-TagParser/.packlist
|
||||
%{_mandir}/man3/HTML::TagParser*.3pm*
|
||||
%if 0%{?suse_version}
|
||||
/var/adm/perl-modules/perl-HTML-TagParser
|
||||
%endif
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user