File perl-App-Pod2CpanHtml.spec of Package perl-App-Pod2CpanHtml

#
# spec file for package perl-App-Pod2CpanHtml
#
# Copyright (c) 2016 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-App-Pod2CpanHtml
Version:        0.04
Release:        0
%define cpan_name App-Pod2CpanHtml
Summary:        Convert Pod to search.cpan.org style HTML
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/App-Pod2CpanHtml/
Source0:        http://www.cpan.org/authors/id/J/JM/JMCNAMARA/%{cpan_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Pod::Simple)
Requires:       perl(Pod::Simple)
%{perl_requires}

%description
This module is used for converting Pod documents to http://search.cpan.org/
style HTML.

Pod is Perl's _Plain Old Documentation_ format, see perlpod.

'App::Pod2CpanHtml' produces HTML output similar to search.cpan.org by
using the same conversion module, Pod::Simple::HTML and the same CSS,
http://search.cpan.org/s/style.css.

It should be noted that this utility isn't the actual program used to
create the HTML for seach.cpan.org. However, the output should visually be
the same.

This module comes with a pod2cpanhtml utility that will convert Pod to
search.cpan.org style HTML on the command line.

%prep
%setup -q -n %{cpan_name}-%{version}

%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