Files
perl-HTML-TagParser/perl-HTML-TagParser.spec

83 lines
2.1 KiB
RPMSpec

#
# spec file for package perl-HTML-TagParser
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# 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
AutoReqProv: on
Summary: Yet another HTML document parser with DOM-like methods
Version: 0.16.1
Release: 1
Source: HTML-TagParser-%{oversion}.tar.gz
Patch: HTML-TagParser-%{oversion}-subtree.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: perl
BuildRequires: perl-macros
%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
%{_mandir}/man3/HTML::TagParser*.3pm*
%if 0%{?suse_version}
%endif
%changelog