---- fann-1.1.0-old/python/Makefile 2004-06-06 00:33:09.817753008 +0200
-+++ fann-1.1.0/python/Makefile 2004-06-06 00:32:31.565568224 +0200
-@@ -6,10 +6,10 @@
- all: $(TARGETS)
+--- fann-1.2.0/python/makefile.gnu.old 2005-08-03 11:08:19.000000000 +0200
++++ fann-1.2.0/python/makefile.gnu 2005-08-03 11:06:46.000000000 +0200
+@@ -3,7 +3,7 @@
+
+ TARGETS = _libfann.dll
- _%.so: %_wrap.o
-- gcc -shared $< -lfann -o $@
-+ gcc -shared ${CFLAGS} $< -L../src/.libs/ -lfann -o $@
+-PYTHON=python2.3
++PYTHON=python2.4
+ LIBS=-L. -L/usr/local/lib -L/usr/bin -l$(PYTHON) ../src/fann*.o
+
+ all: $(TARGETS)
+@@ -12,7 +12,7 @@
+ gcc $(LIBS) -shared -dll $^ -o $@
%.o: %.c
-- gcc -c -fpic $< -I/usr/include/python2.3/
-+ gcc ${CFLAGS} -c -fpic $< -I/usr/include/python2.4/ -I/usr/include/python2.3/
+- gcc -c $< -I/usr/include/$(PYTHON)/
++ gcc -c $< -I/usr/include/$(PYTHON)/ -I../src/include/
%_wrap.c: %.i
swig -python $<
Summary: A fast artificial neural network library
Summary(pl): Szybka biblioteka do tworzenia sztucznych sieci neuronowych
Name: fann
-Version: 1.1.0
-Release: 3
+Version: 1.2.0
+Release: 1
License: LGPL
Group: Libraries
Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
-# Source0-md5: f8280e9849cfbf5ddf769713ce7f7fba
+# Source0-md5: d655f82d4a47e4b697b0083fdaa78c71
Patch0: %{name}-python.patch
URL: http://fann.sf.net/
BuildRequires: autoconf
BuildRequires: python
BuildRequires: python-devel >= 1:2.3
BuildRequires: python-modules
+BuildRequires: sed >= 4.0
BuildRequires: swig-python >= 1.3.25
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%{__make}
%{__make} -C doc html-single
cd python
+
CFLAGS="%{rpmcflags}" \
-%{__make}
+%{__make} -f makefile.gnu
%py_comp .
%py_ocomp .
install -d $RPM_BUILD_ROOT%{py_sitedir}
install -d $RPM_BUILD_ROOT%{_examplesdir}/{python-%{name}-%{version},%{name}-%{version}}
-install python/{fann.pyc,fann.pyo,_fann.so} $RPM_BUILD_ROOT%{py_sitedir}
-install python/simple_train.py $RPM_BUILD_ROOT%{_examplesdir}/python-%{name}-%{version}
+install python/{fann.pyc,fann.pyo,libfann.pyc,libfann.pyo} $RPM_BUILD_ROOT%{py_sitedir}
install examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
%files -n python-%{name}
%defattr(644,root,root,755)
-%attr(755,root,root) %{py_sitedir}/*.so
%{py_sitedir}/*.py[co]
%{_examplesdir}/python-%{name}-%{version}