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

#
# spec file for package perl-Pod-HtmlTree
#
# 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-HtmlTree
Version:        0.97
Release:        0
%define cpan_name Pod-HtmlTree
Summary:        Create a hierarchy of HTML documents from your module's PMs
License:        GPL-1.0+ or Artistic-1.0
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Pod-HtmlTree/
Source0:        http://www.cpan.org/authors/id/M/MS/MSCHILLI/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
%{perl_requires}

%description
So you've just created a great new Perl module distribution including
several *.pm files? You've added nice POD documentation to each of them and
now you'd like to view it nicely formatted in a web browser? And you'd also
like to navigate between all those manual pages in your distribution and
even view their source code? Read on, 'Pod::HtmlTree' is what you need.

It traverses your module's distribution directory (which you've probably
created using 'h2xs'), finds all *.pm files recursivly and calls
'pod2html()' on them, hereby resolving all POD links (L<...> style).

%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 Changes README

%changelog
openSUSE Build Service is sponsored by