3 # _without_tests - do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam DecisionTree
8 Summary: AI::DecisionTree -- Automatically Learns Decision Trees
9 Summary(pl): AI::DecisionTree -- Automatyczne uczenie drzew decyzyjnych
10 Name: perl-%{pdir}-%{pnam}
14 Group: Development/Languages/Perl
15 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 BuildRequires: perl >= 5.6
17 BuildRequires: rpm-perlprov >= 3.0.3-26
18 %if %{?_without_tests:0}%{!?_without_tests:1}
19 BuildRequires: perl-GraphViz
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The "AI::DecisionTree" module automatically creates so-called "decision
25 trees" to explain a set of training data. A decision tree is a kind of
26 categorizer that use a flowchart-like process for categorizing new
27 instances. For instance, a learned decision tree might look like that
28 one in documentation, which classifies for the concept "play tennis".
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}
45 %{!?_without_tests:%{__make} test}
48 rm -rf $RPM_BUILD_ROOT
50 %{__make} install DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
57 %{perl_sitearch}/%{pdir}/*.pm
58 %{perl_sitearch}/%{pdir}/%{pnam}
59 %dir %{perl_sitearch}/auto/%{pdir}/%{pnam}
60 %dir %{perl_sitearch}/auto/%{pdir}/%{pnam}/Instance
61 %attr(755,root,root) %{perl_sitearch}/auto/%{pdir}/%{pnam}/Instance/*.so
62 %{perl_sitearch}/auto/%{pdir}/%{pnam}/Instance/*.bs