]>
Commit | Line | Data |
---|---|---|
ea947ff4 | 1 | # |
2 | # Conditional build: | |
8e6fbe12 | 3 | %bcond_without tests # do not perform "make test" |
bbd77f17 | 4 | |
f175cf50 | 5 | %define pdir AI |
6 | %define pnam DecisionTree | |
bbad6925 | 7 | Summary: AI::DecisionTree - automatically learns decision trees |
3f09b9c4 | 8 | Summary(pl.UTF-8): AI::DecisionTree - automatyczne uczenie drzew decyzyjnych |
79b1bc5c | 9 | Name: perl-AI-DecisionTree |
c389c7d9 | 10 | Version: 0.11 |
1e05d2e9 | 11 | Release: 3 |
58942593 | 12 | License: GPL v1+ or Artistic |
3e546d1d | 13 | Group: Development/Languages/Perl |
222e7ff9 | 14 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
c389c7d9 | 15 | # Source0-md5: ab18666204a5363ced7f6a2eafd9da7f |
bbd77f17 ER |
16 | URL: http://search.cpan.org/dist/AI-DecisionTree/ |
17 | %{?with_tests:BuildRequires: perl-GraphViz} | |
4165e18b | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
4af040f7 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
3e546d1d | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
743db814 PC |
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". | |
b8fcff7e | 29 | |
12122ae5 JR |
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". | |
3e546d1d | 37 | |
38 | %prep | |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
4af040f7 | 42 | %{__perl} Makefile.PL \ |
b76d9cf9 | 43 | INSTALLDIRS=vendor |
3e546d1d | 44 | %{__make} |
ea947ff4 | 45 | |
0757a08d | 46 | %{?with_tests:%{__make} test} |
3e546d1d | 47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
cd24082d | 51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
3e546d1d | 53 | |
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
4af040f7 | 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 | |
3e546d1d | 64 | %{_mandir}/man3/* |