3 %bcond_without tests # do not perform "make test"
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
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)
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".
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".
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
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