Package perl-Text-NSP: Specfile

%define _unpackaged_files_terminate_build 1
#
#   - Text::NSP -
#   This spec file was automatically generated by cpan2rpm [ver: 2.027]
#   (ALT Linux revision)
#   The following arguments were used:
#       .
#   For more information on cpan2rpm please visit: http://perl.arix.com/
#

%define module Text-NSP
%define m_distro Text-NSP
%define m_name Text::NSP
%define m_author_id unknown
%define _enable_test 1

Name: perl-Text-NSP
Version: 1.31
Release: alt1

Summary: The Ngram Statistic Package allows a user to count sequences of words in large corpora of text, and measure their association

License: GPL
Group: Text tools
Url: %CPAN %m_distro

Packager: Kirill Maslinsky <kirill@altlinux.org>

BuildArch: noarch
Source: http://www.cpan.org/authors/id/T/TP/TPEDERSE/Text-NSP-%{version}.tar.gz

# Automatically added by buildreq on Tue Jun 26 2007
BuildRequires: perl-devel

# automatically added during perl 5.8 -> 5.12 upgrade.
# perl-podlators is required for pod2man conversion.
BuildRequires: perl-podlators

%description
The Ngram Statistics Package (NSP) is a collection of perl modules
that aid in analyzing Ngrams in text files. We define an Ngram as a
sequence of 'n' tokens that occur within a window of at least 'n'
tokens in the text; what constitutes a "token" can be defined by the
user.

NSP.pm is a stub that doesn't have any real functionality. It serves
as a top level module in the hierarchy and allows us to group the
Text::NSP::Count and Text::NSP::Measures modules.

The modules under Text::NSP::Measures implement measures of
association that are used to evaluate whether the co-occurrence of the
words in a Ngram is purely by chance or statistically significant.
These measures compute a numerical score for Ngrams. This score can be
used to decide whether or not there is enough evidence to reject the
null hypothesis (that the Ngram is not statistically significant) for
that Ngram.

To use one of the measures you can either use the program statistic.pl
provided under the utils directory, or write your own driver program.
Program statistic.pl takes as input a list of Ngrams with their
frequencies (in the format output by count.pl) and runs a
user-selected statistical measure of association to compute the score
for each Ngram. The Ngrams, along with their scores, are output in
descending order of this score. For help on using utils/statistic.pl
please refer to its perldoc (perldoc utils/statistic.pl).

If you are writing your own driver program, a basic usage example is
provided above under SYNOPSIS. For further clarification please refer
to the documentation of Text::NSP::Measures (perldoc
Text::NSP::Measures).

%prep
%setup -q -n %m_distro-%version
%build
%perl_vendor_build INSTALLMAN1DIR=%_man1dir

%install
%perl_vendor_install

%files
%doc README CHANGES
%_man1dir/*
%_bindir/*
%perl_vendor_privlib/Text*

%changelog
* Sun Oct 11 2015 Igor Vlasenko <viy@altlinux.ru> 1.31-alt1
- automated CPAN update

* Wed Oct 09 2013 Igor Vlasenko <viy@altlinux.ru> 1.27-alt1
- automated CPAN update

* Mon Nov 22 2010 Igor Vlasenko <viy@altlinux.ru> 1.15-alt1.1
- repair after perl 5.12 upgrade using girar-nmu

* Thu Apr 15 2010 Kirill Maslinsky <kirill@altlinux.org> 1.15-alt1
- 1.09 -> 1.15

* Fri Sep 12 2008 Kirill Maslinsky <kirill@altlinux.org> 1.09-alt2
- fix directory ownership (reported by sisyphus_check)

* Wed Jun 18 2008 Kirill Maslinsky <kirill@altlinux.org> 1.09-alt1
- version up
- license changed to GPL

* Tue Jun 26 2007 Kirill Maslinsky <kirill@altlinux.ru> 1.03-alt1
- first build for ALT Linux Sisyphus