-%define ftppath ftp://ftp.informatik.uni-stuttgart.de/pub/SNNS
-
Summary: Stuttgart Neural Network Simulator
-Summary(de): Stuttgart Neural Network Simulator
-Summary(pl): Stuttgart Neural Network Simulator
+Summary(pl): Sztutgardzki symulator sieci neuronowych
Name: SNNS
-Version: 4.1
-Release: 0.1
+Version: 4.2
+Release: 1
License: Free Software
Group: X11/Applications
-Source0: %{ftppath}/%{name}v%{version}.tar.gz
-# Source0-md5: 6385faf45eec7bfba67d7024c31d1ac0
-Source2: %{ftppath}/%{name}v%{version}.Manual.ps.gz
-# Source2-md5: 09431050aa7c3c77f55751566149c853
-#Source3: %{ftppath}/%{name}info-1.03.tar.gz
+Source0: ftp://ftp.informatik.uni-stuttgart.de/pub/SNNS/%{name}v%{version}.tar.gz
+# Source0-md5: 4609dfd61714bfbb0842d4e8e905e584
+Source2: ftp://ftp.informatik.uni-stuttgart.de/pub/SNNS/%{name}v%{version}.Manual.ps.gz
+# Source2-md5: 1df5e14726c88d01be9f67e4590600a9
+#Source3: ftp://ftp.informatik.uni-stuttgart.de/pub/SNNS/%{name}info-1.03.tar.gz
# Source3-md5: c2a99f0294bd02e5f3bfdff6bf16469a
-Patch1: %{name}-config.diff
+Patch0: %{name}-include.patch
+Patch1: %{name}-DESTDIR.patch
Patch2: %{name}-XGUILOADPATH.diff
Patch3: %{name}-inc_fix.patch
+BuildRequires: bison
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
für Neuronal Netzwerk.
%description -l pl
-SNNS (Stuttgar Neural Network Simulator) jest symulatorem sieci
-neuronwych.
+SNNS (Stuttgart Neural Network Simulator) jest symulatorem sieci
+neuronowych.
%package doc
Summary: SNNS-Dokomentationen
%prep
%setup -q -n %{name}v%{version}
+%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
-%{__make} -C kernel/sources
-%{__make} -C tools/sources
-%{__make} -C xgui/sources
+%configure2_13 \
+ --enable-global
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_libdir}/SNNS/{kernel,tools,xgui}/bin/pc_linux \
-$RPM_BUILD_ROOT%{_prefix}/{bin,lib/SNNS/examples}
-
-%{__make} -C kernel/sources install \
- DESTDIR=$RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name},%{_mandir}/man1}
-%{__make} -C xgui/sources install \
+%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-%{__make} -C tools/sources install \
- DESTDIR=$RPM_BUILD_ROOT
-
-cp -af help.hdoc default.cfg examples $RPM_BUILD_ROOT%{_libdir}/SNNS
-
-ln -fs ../../lib/SNNS/xgui/bin/pc_linux/xgui \
-$RPM_BUILD_ROOT%{_prefix}/bin/xgui
-
-cd $RPM_BUILD_ROOT%{_libdir}/SNNS/tools/bin/pc_linux
-for n in *; do
-ln -fs ../../lib/SNNS/tools/bin/pc_linux/$n $RPM_BUILD_ROOT%{_prefix}/bin/$n
-done
+cp -af help.hdoc default.cfg examples $RPM_BUILD_ROOT%{_libdir}/%{name}
+install man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
+install %{SOURCE2} .
+gunzip %{name}v%{version}.Manual.ps.gz
-cd $RPM_BUILD_ROOT%{_prefix}/bin
+cd $RPM_BUILD_ROOT%{_bindir}
ln -fs xgui snns
#cd $RPM_BUILD_ROOT%{_libdir}/SNNS
%files
%defattr(644,root,root,755)
-%doc Readme*
-%config %{_libdir}/SNNS/default.cfg
-%{_libdir}/SNNS/help.hdoc
+%doc Readme* tools/doc/* %{name}v%{version}.Manual.ps
+%config %{_libdir}/%{name}/default.cfg
+%{_libdir}/%{name}/help.hdoc
%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/SNNS/*/bin/pc_linux/*
-%attr(755,root,root) %{_libdir}/SNNS/examples
+%attr(755,root,root) %{_libdir}/%{name}/examples
+%{_mandir}/man1/*
#%files doc
#%defattr(644,root,root,755)