commit b4afefd69061de5fab79268d75e0f5c0d91d0d8e Author: Mathieu Bridon <bochecha@xxxxxxxxxxxxxxxxx> Date: Mon Aug 20 19:21:42 2012 +0800 Initial package for Fedora This package was submitted on Mon Aug 20 2012: https://bugzilla.redhat.com/show_bug.cgi?id=849618#c0 perl-AI-DecisionTree.spec | 60 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 60 insertions(+), 0 deletions(-) --- diff --git a/perl-AI-DecisionTree.spec b/perl-AI-DecisionTree.spec new file mode 100644 index 0000000..79b934b --- /dev/null +++ b/perl-AI-DecisionTree.spec @@ -0,0 +1,60 @@ +Name: perl-AI-DecisionTree +Version: 0.11 +Release: 1%{?dist} +Summary: Automatically Learns Decision Trees + +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/AI-DecisionTree/ + +Source0: http://www.cpan.org/authors/id/K/KW/KWILLIAMS/AI-DecisionTree-%{version}.tar.gz + +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(GraphViz) +BuildRequires: perl(Test::More) + +Requires: perl(GraphViz) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +The AI::DecisionTree module automatically creates so-called "decision +trees" to explain a set of training data. A decision tree is a kind of +categorizer that use a flowchart-like process for categorizing new +instances. For instance, a learned decision tree might look like the +following, which classifies for the concept "play tennis": + + +%prep +%setup -q -n AI-DecisionTree-%{version} + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +make %{?_smp_mflags} + + +%install +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + + +%check +make test + + +%files +%doc Changes dist.ini eg Instance LICENSE README +%{perl_vendorarch}/auto/AI/DecisionTree +%{perl_vendorarch}/AI/DecisionTree* +%{_mandir}/man3/AI::DecisionTree* + + +%changelog +* Mon Aug 20 2012 Mathieu Bridon <bochecha@xxxxxxxxxxxxxxxxx> 0.11-1 +- Initial package for Fedora, with help from cpanspec. -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel