File perl-Pod-HTML2Pod.spec of Package perl-Pod-HTML2Pod

#
# spec file for package perl-Pod-HTML2Pod
#
# Copyright (c) 2015 SUSE LINUX 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/
#


Name:           perl-Pod-HTML2Pod
Version:        4.05
Release:        0
%define cpan_name Pod-HTML2Pod
Summary:        Translate Html Into Pod
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Pod-HTML2Pod/
Source0:        http://www.cpan.org/authors/id/S/SB/SBURKE/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(HTML::Element) >= 3.05
BuildRequires:  perl(HTML::Entities)
BuildRequires:  perl(HTML::Tagset) >= 3.02
BuildRequires:  perl(HTML::TreeBuilder) >= 3.05
Requires:       perl(HTML::Element) >= 3.05
Requires:       perl(HTML::Entities)
Requires:       perl(HTML::Tagset) >= 3.02
Requires:       perl(HTML::TreeBuilder) >= 3.05
%{perl_requires}

%description
Larry Wall once said (1999-08-27, on the 'pod-people' list, I do believe):
"The whole point of pod is to get people to document stuff they wouldn't
document in any other form."

To that end, I wrote this module so that people who are unpracticed with
POD but in a hurry to simply document their programs or modules, could
write their documentation in simple HTML, and convert that to POD. That's
what this module does.

Specifically, this module bends over backwards to try to turn even vaguely
plausable HTML into POD -- and when in doubt, it simply ignores things that
it doesn't know about, or can't render.

%prep
%setup -q -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%files -f %{name}.files
%defattr(-,root,root,755)
%doc ChangeLog html2pod README

%changelog
openSUSE Build Service is sponsored by