]>
Commit | Line | Data |
---|---|---|
a7f06b66 | 1 | # |
2 | # Conditional build: | |
04b1a149 | 3 | %bcond_without tests # don't perform "make test" |
a7f06b66 | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
629c3e73 | 6 | %define pdir Algorithm |
7 | %define pnam SVM | |
a7f06b66 | 8 | Summary: Perl bindings for the libsvm Support Vector Machine library |
c6497ef8 | 9 | Summary(pl.UTF-8): Dowiązania Perla do biblioteki libsvm (Support Vector Machine) |
a7f06b66 | 10 | Name: perl-Algorithm-SVM |
173ad841 | 11 | Version: 0.11 |
0f59a8f1 | 12 | Release: 1 |
e6ce8bb7 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
a7f06b66 | 15 | Group: Development/Languages/Perl |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
173ad841 | 17 | # Source0-md5: 95a77fc32f958c745d596940a50b7682 |
dc3a178c | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
a7f06b66 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Algorithm::SVM implements a Support Vector Machine for Perl. Support | |
04bf74a0 | 24 | Vector Machines provide a method for creating classification functions |
a7f06b66 | 25 | from a set of labeled training data, from which predictions can be |
26 | made for subsequent data sets. | |
27 | ||
c6497ef8 JR |
28 | %description -l pl.UTF-8 |
29 | Moduł Algorithm::SVM jest implementacją Support Vector Machine dla | |
30 | Perla. Support Vector Machines udostępniają sposób tworzenia funkcji | |
31 | klasyfikujących ze zbioru oznaczonych danych treningowych, z których | |
32 | można dokonywać przewidywań co do kolejnych zbiorów danych. | |
a7f06b66 | 33 | |
34 | %prep | |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
38 | %{__perl} Makefile.PL \ | |
39 | INSTALLDIRS=vendor | |
40 | ||
41 | %{__make} \ | |
42 | OPTIMIZE="%{rpmcflags}" | |
43 | ||
04b1a149 | 44 | %{?with_tests:%{__make} test} |
a7f06b66 | 45 | |
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %{__make} install \ | |
50 | DESTDIR=$RPM_BUILD_ROOT | |
51 | ||
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc Changes README | |
58 | %{perl_vendorarch}/Algorithm/*.pm | |
59 | %{perl_vendorarch}/Algorithm/SVM | |
60 | %dir %{perl_vendorarch}/auto/Algorithm/SVM | |
61 | %{perl_vendorarch}/auto/Algorithm/SVM/*.bs | |
62 | %attr(755,root,root) %{perl_vendorarch}/auto/Algorithm/SVM/*.so | |
63 | %{_mandir}/man3/* |