3 %bcond_without tests # don't 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: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: eaed56886a22506b8ed5f6dab88e7060
17 BuildRequires: perl-devel >= 5.6
18 BuildRequires: rpm-perlprov >= 4.1-13
19 %{?with_test:BuildRequires: perl-GraphViz}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 The "AI::DecisionTree" module automatically creates so-called "decision
24 trees" to explain a set of training data. A decision tree is a kind of
25 categorizer that use a flowchart-like process for categorizing new
26 instances. For instance, a learned decision tree might look like that
27 one in documentation, which classifies for the concept "play tennis".
30 Modu³ AI::DecisionTree automatycznie tworzy tak zwane "drzewa
31 decyzyjne" do obja¶niania zbiorów danych ucz±cych. Drzewo decyzyjne to
32 rodzaj klasyfikatora u¿ywaj±cego procesu podobnego do przep³ywu do
33 klasyfikacji nowych przypadków. Na przyk³ad, nauczone drzewo decyzyjne
34 mo¿e wygl±daæ jak to umieszczone w dokumentacji, klasyfikuj±ce dla
35 pojêcia "gry w tenisa".
38 %setup -q -n %{pdir}-%{pnam}-%{version}
41 %{__perl} Makefile.PL \
45 %{?with_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_vendorarch}/%{pdir}/*.pm
58 %{perl_vendorarch}/%{pdir}/%{pnam}
59 %dir %{perl_vendorarch}/auto/%{pdir}/%{pnam}
60 %dir %{perl_vendorarch}/auto/%{pdir}/%{pnam}/Instance
61 %attr(755,root,root) %{perl_vendorarch}/auto/%{pdir}/%{pnam}/Instance/*.so
62 %{perl_vendorarch}/auto/%{pdir}/%{pnam}/Instance/*.bs