5 # - optflags for binary part of python module
7 Summary: A fast artificial neural network library
8 Summary(pl): Szybka biblioteka do tworzenia sztucznych sieci neuronowych
14 Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
15 # Source0-md5: f8280e9849cfbf5ddf769713ce7f7fba
16 Patch0: %{name}-python.patch
17 URL: http://fann.sf.net/
18 BuildRequires: autoconf
19 BuildRequires: automake
20 BuildRequires: libtool
21 BuildRequires: python-devel >= 2.3
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Fast Artificial Neural Network (FANN) Library is written in ANSI C.
27 The library implements multilayer feedforward ANNs, up to 150 times
28 faster than other libraries. FANN supports execution in fixed point,
29 for fast execution on systems like the iPAQ.
32 FANN (Fast Artificial Neural Network - szybkie sztuczne sieci
33 neuronowe) to biblioteka napisana w ANSI C, implementuj±ca
34 wielowarstwowe sztuczne sieci neuronowe, do 150 razy szybsza od innych
35 bibliotek. FANN obs³uguje operacje sta³oprzecinkowe w celu szybkiego
36 dzia³ania na systemach typu iPAQ.
39 Summary: Development libraries for FANN
40 Summary(pl): Pliki nag³ówkowe FANN
41 Group: Development/Libraries
42 Requires: %{name} = %{version}-%{release}
45 This package is only needed if you intend to develop and/or compile
46 programs based on the FANN library.
48 %description devel -l pl
49 Pliki nag³ówkowe FANN, potrzebne do tworzenia programów napisanych w
50 oparciu o bibliotekê FANN.
53 Summary: FANN static libraries
54 Summary(pl): Biblioteki statyczne FANN
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 FANN static libraries.
61 %description static -l pl
62 Biblioteki statyczne FANN.
64 %package -n python-%{name}
65 Summary: Python support for FANN
66 Summary(pl): Modu³ jêzyka Python dla biblioteki FANN
67 Group: Libraries/Python
68 Requires: %{name} = %{version}-%{release}
69 %pyrequires_eq python-libs
71 %description -n python-%{name}
72 Python support for FANN.
74 %description -n python-%{name} -l pl
75 Modu³ jêzyka Python dla biblioteki FANN.
88 %{__make} -C doc html-single
90 CFLAGS="%{rpmcflags}" \
96 rm -rf $RPM_BUILD_ROOT
99 DESTDIR=$RPM_BUILD_ROOT
101 install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/python-%{name}-%{version}}
102 install python/{fann.pyc,fann.pyo,_fann.so} $RPM_BUILD_ROOT%{py_sitedir}
103 install python/simple_train.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
106 rm -rf $RPM_BUILD_ROOT
108 %post -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
112 %defattr(644,root,root,755)
113 %doc AUTHORS ChangeLog NEWS README TODO
114 %attr(755,root,root) %{_libdir}/lib*.so.*.*
117 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/lib*.so
122 %{_pkgconfigdir}/fann.pc
125 %defattr(644,root,root,755)
128 %files -n python-%{name}
129 %defattr(644,root,root,755)
130 %attr(755,root,root) %{py_sitedir}/*.so
131 %{py_sitedir}/*.py[co]
132 %{_examplesdir}/python-%{name}-%{version}