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

# spec file for package perl-Pod-Spell (Version 1.01)
# Copyright (c) 2010 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

# norootforbuild

Name:           perl-Pod-Spell
%define cpan_name Pod-Spell
Summary:        Formatter for spellchecking Pod
Version:        1.01
Release:        1
License:        Artistic ; GPLv2
Group:          Development/Libraries/Perl
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Pod::Escapes) >= 1.01
BuildRequires:  perl(Pod::Parser) >= 1
BuildRequires:  perl(Text::Wrap) >= 1
Requires:       perl(Pod::Escapes) >= 1.01
Requires:       perl(Pod::Parser) >= 1
Requires:       perl(Text::Wrap) >= 1

Pod::Spell is a Pod formatter whose output is good for spellchecking.
Pod::Spell rather like Pod::Text, except that it doesn't put much effort
into actual formatting, and it suppresses things that look like Perl
symbols or Perl jargon (so that your spellchecking program won't complain
about mystery words like "$thing" or "Foo::Bar" or "hashref").

This class provides no new public methods. All methods of interest are
inherited from Pod::Parser (which see). The especially interesting ones
are `parse_from_filehandle' (which without arguments takes from STDIN
and sends to STDOUT) and `parse_from_file'. But you can probably just
make do with the examples in the synopsis though.

This class works by filtering out words that look like Perl or any form
of computerese (like "`$thing'" or "`N>7'" or "`@{$foo}{'bar','baz'}'",
anything in C<...> or F<...> codes, anything in verbatim paragraphs
(codeblocks), and anything in the stopword list. The default stopword
list for a document starts out from the stopword list defined by
Pod::Wordlist, and can be supplemented (on a per-document basis) by
having `"=for stopwords"' / `"=for :stopwords"' region(s) in a document.

    Sean M. Burke <>

%setup -q -n %{cpan_name}-%{version}
# rpmlint: spurious-executable-perm
%{__chmod} 0644 podspell

%{__perl} Makefile.PL INSTALLDIRS=vendor

%{__make} %{?_smp_mflags}

%{__make} test

# do not perl_process_packlist (noarch)
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib

%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
%doc ChangeLog podspell README

openSUSE Build Service is sponsored by