%define pkg_name Statistics-MaxEntropy %define pkg_version 0.9 %define rpm_pkg_version 0.9 %define rpm_pkg_release 3.n0i.3 Summary: Maximum Entropy Modeling Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/T/TE/TERDOEST/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) %{!?_without_test:BuildRequires: perl(Data::Dumper) >= 2.09} %description This module is an implementation of the Generalised and Improved Iterative Scaling (GIS, IIS) algorithms and the Feature Induction (FI) algorithm as defined in (Darroch and Ratcliff 1972) and (Della Pietra et al. 1997). The purpose of the scaling algorithms is to find the maximum entropy distribution given a set of events and (optionally) an initial distribution. Also a set of candidate features may be specified; then the FI algorithm may be applied to find and add the candidate feature(s) that give the largest `gain' in terms of Kullback Leibler divergence when it is added to the current set of features. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{__perl} -pi -e 's/(?<=\s)log\(/\$self->log(/g' MaxEntropy.pm %build %{perl_build} %{!?_without_test:%{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files -b -m -l} %exclude %{perl_vendorlib}/Statistics/ME.wrapper.pl %exclude %{_mandir}/man3/Statistics::ME.wrapper.* %doc Changes GNU_GPL.txt GNU_LGPL.txt README %changelog * Tue May 22 2007 Marius Feraru - 0.9-3.n0i.3 - spec file (re)created using N0i::CPAN::RPMizer v1.14.7 * Sat Mar 04 2006 Marius Feraru - 0.9-2.n0i.2 - automatic rebuild (perl 5.8.8) * Mon Aug 01 2005 Marius Feraru 0.9-1.n0i.1 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7