]> git.pld-linux.org Git - SPECS.git/blob - perl-AI-DecisionTree.spec
SPECS updated Sat 31 Jul 20:27:02 CEST 2021
[SPECS.git] / perl-AI-DecisionTree.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    AI
6 %define         pnam    DecisionTree
7 Summary:        AI::DecisionTree - automatically learns decision trees
8 Summary(pl.UTF-8):      AI::DecisionTree - automatyczne uczenie drzew decyzyjnych
9 Name:           perl-AI-DecisionTree
10 Version:        0.11
11 Release:        3
12 License:        GPL v1+ or Artistic
13 Group:          Development/Languages/Perl
14 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5:  ab18666204a5363ced7f6a2eafd9da7f
16 URL:            http://search.cpan.org/dist/AI-DecisionTree/
17 %{?with_tests:BuildRequires:    perl-GraphViz}
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 The "AI::DecisionTree" module automatically creates so-called
24 "decision trees" to explain a set of training data. A decision tree is
25 a kind of categorizer that use a flowchart-like process for
26 categorizing new instances. For instance, a learned decision tree
27 might look like that one in documentation, which classifies for the
28 concept "play tennis".
29
30 %description -l pl.UTF-8
31 Moduł AI::DecisionTree automatycznie tworzy tak zwane "drzewa
32 decyzyjne" do objaśniania zbiorów danych uczących. Drzewo decyzyjne to
33 rodzaj klasyfikatora używającego procesu podobnego do przepływu do
34 klasyfikacji nowych przypadków. Na przykład, nauczone drzewo decyzyjne
35 może wyglądać jak to umieszczone w dokumentacji, klasyfikujące dla
36 pojęcia "gry w tenisa".
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40
41 %build
42 %{__perl} Makefile.PL \
43         INSTALLDIRS=vendor
44 %{__make}
45
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %{perl_vendorarch}/%{pdir}/*.pm
60 %{perl_vendorarch}/%{pdir}/%{pnam}
61 %dir %{perl_vendorarch}/auto/%{pdir}/%{pnam}
62 %dir %{perl_vendorarch}/auto/%{pdir}/%{pnam}/Instance
63 %attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/%{pnam}/Instance/*.so
64 %{_mandir}/man3/*
This page took 0.23103 seconds and 3 git commands to generate.