Files
perl-Pod-Simple/perl-Pod-Simple.spec

86 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-Pod-Simple
#
# Copyright (c) 2009 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
#Distribution: %dist
#Packager: %packager
#Vendor: %vendor
Name: perl-Pod-Simple
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
Summary: Framework for parsing Pod
Version: 3.07
Release: 1
License: Artistic License
Group: Development/Languages/Perl
Url: http://search.cpan.org/perldoc?Pod::Simple
Source: Pod-Simple-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Text::Wrap) >= 98.112902
BuildRequires: perl(Pod::Escapes) >= 1.04
Requires: perl = %{perl_version}
Requires: perl(Text::Wrap) >= 98.112902
Requires: perl(Pod::Escapes) >= 1.04
%description
%{cpan_name} module for perl
Pod::Simple is a Perl library for parsing text in the Pod ("plain old
documentation") markup language that is typically used for writing
documentation for Perl and for Perl modules. The Pod format is explained in the
perlpod man page; the most common formatter is called "perldoc".
Pod formatters can use Pod::Simple to parse Pod documents into produce
renderings of them in plain ASCII, in HTML, or in any number of other formats.
Typically, such formatters will be subclasses of Pod::Simple, and so they will
inherit its methods, like parse_file.
Authors:
--------
Sean M. Burke <sburke at cpan dot org>
%prep
%setup -q -n %{cpan_name}-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files -f %{name}.files
# normally you only need to check for doc files
%defattr(-,root,root)
%doc ChangeLog README
%changelog