1 %include /usr/lib/rpm/macros.perl
3 %define pnam NeuralNet-BackProp
4 Summary: A simple back-prop neural net that uses Delta's and Hebbs' rule.
5 Name: perl-%{pdir}-%{pnam}
9 Group: Development/Languages/Perl
10 Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.zip
11 BuildRequires: perl >= 5.6
12 BuildRequires: rpm-perlprov >= 3.0.3-26
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 AI::NeuralNet::BackProp is a simply back-propagation, feed-foward neural
18 network designed to learn using a generalization of the Delta rule and
19 a bit of Hopefield theory.
25 %setup -q -n %{name}-%{version} -c
30 %{!?_without_tests:%{__make} test}
33 rm -rf $RPM_BUILD_ROOT
35 %{__make} install DESTDIR=$RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
38 install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
41 rm -rf $RPM_BUILD_ROOT
44 %defattr(644,root,root,755)
45 %{perl_sitelib}/AI/NeuralNet/*.pm
46 %doc Changes *.htm README
47 %attr(755,root,root) %{_examplesdir}/%{name}-%{version}/*.pl
48 %{_examplesdir}/%{name}-%{version}/*.dat