2 %define ftppath ftp://ftp.informatik.uni-stuttgart.de/pub/SNNS
4 Summary: Stuttgart Neural Network Simulator
5 Summary(de): Stuttgart Neural Network Simulator
6 Summary(pl): Stuttgart Neural Network Simulator
10 License: Free Software
11 Group: X11/Applications
12 Source0: %{ftppath}/%{name}v%{version}.tar.gz
13 # Source0-md5: 6385faf45eec7bfba67d7024c31d1ac0
14 Source2: %{ftppath}/%{name}v%{version}.Manual.ps.gz
15 # Source2-md5: 09431050aa7c3c77f55751566149c853
16 Source3: %{ftppath}/%{name}info-1.03.tar.gz
17 # Source3-md5: c2a99f0294bd02e5f3bfdff6bf16469a
18 Patch1: %{name}-config.diff
19 Patch2: %{name}-XGUILOADPATH.diff
20 Patch3: %{name}-inc_fix.patch
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 SNNS (Stuttgart Neural Network Simulator) is a neuron network
28 SNNS (Stuttgart Neural Network Simulator) ist ein Simulationsprogramm
29 für Neuronal Netzwerk.
32 SNNS (Stuttgar Neural Network Simulator) jest symulatorem sieci
36 Summary: SNNS-Dokomentationen
37 Group: X11/Applications
40 Documentation for SNNS in HTML and postscript.
42 %description doc -l de
43 Dieses Paket enthält die Dokumentationen in HTML und
46 %description doc -l pl
47 Ten pakiet zawiera dokumentacje w HTMLu i postscripcie.
50 %setup -q -n %{name}v%{version}
56 %{__make} -C kernel/sources
57 %{__make} -C tools/sources
58 %{__make} -C xgui/sources
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{_libdir}/SNNS/{kernel,tools,xgui}/bin/pc_linux \
63 $RPM_BUILD_ROOT%{_prefix}/{bin,lib/SNNS/examples}
65 %{__make} -C kernel/sources install \
66 DESTDIR=$RPM_BUILD_ROOT
68 %{__make} -C xgui/sources install \
69 DESTDIR=$RPM_BUILD_ROOT
71 %{__make} -C tools/sources install \
72 DESTDIR=$RPM_BUILD_ROOT
74 cp -af help.hdoc default.cfg examples $RPM_BUILD_ROOT%{_libdir}/SNNS
76 ln -fs ../../lib/SNNS/xgui/bin/pc_linux/xgui \
77 $RPM_BUILD_ROOT%{_prefix}/bin/xgui
79 cd $RPM_BUILD_ROOT%{_libdir}/SNNS/tools/bin/pc_linux
81 ln -fs ../../lib/SNNS/tools/bin/pc_linux/$n $RPM_BUILD_ROOT%{_prefix}/bin/$n
84 cd $RPM_BUILD_ROOT%{_prefix}/bin
87 cd $RPM_BUILD_ROOT%{_libdir}/SNNS
88 tar zopxf $RPM_SOURCE_DIR/SNNSinfo-1.03.tar.gz
89 rm -rf SNNSinfo/UserManual.ps SNNSinfo/Icons/.xvpics
90 cp -f $RPM_SOURCE_DIR/SNNSv%{version}.Manual.ps.gz SNNSinfo
91 chown -R root.root SNNSinfo
94 rm -rf $RPM_BUILD_ROOT
97 %defattr(644,root,root,755)
99 %config %{_libdir}/SNNS/default.cfg
100 %{_libdir}/SNNS/help.hdoc
101 %attr(755,root,root) %{_bindir}/*
102 %attr(755,root,root) %{_libdir}/SNNS/*/bin/pc_linux/*
103 %attr(755,root,root) %{_libdir}/SNNS/examples
106 %defattr(644,root,root,755)
107 %docdir %{_libdir}/SNNS/SNNSinfo
108 %doc %{_libdir}/SNNS/SNNSinfo/*