]> git.pld-linux.org Git - packages/SNNS.git/blob - SNNS.spec
- cosmetics
[packages/SNNS.git] / SNNS.spec
1
2 %define ftppath ftp://ftp.informatik.uni-stuttgart.de/pub/SNNS
3
4 Summary:        Stuttgart Neural Network Simulator
5 Summary(de):    Stuttgart Neural Network Simulator
6 Summary(pl):    Stuttgart Neural Network Simulator
7 Name:           SNNS
8 Version:        4.1
9 Release:        0.1
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)
22
23 %description
24 SNNS (Stuttgart Neural Network Simulator) is a neuron network
25 simulator.
26
27 %description -l de
28 SNNS (Stuttgart Neural Network Simulator) ist ein Simulationsprogramm
29 für Neuronal Netzwerk.
30
31 %description -l pl
32 SNNS (Stuttgar Neural Network Simulator) jest symulatorem sieci
33 neuronwych.
34
35 %package doc
36 Summary:        SNNS-Dokomentationen
37 Group:          X11/Applications
38
39 %description doc
40 Documentation for SNNS in HTML and postscript.
41
42 %description doc -l de
43 Dieses Paket enthält die Dokumentationen in HTML und
44 Postscript-Format.
45
46 %description doc -l pl
47 Ten pakiet zawiera dokumentacje w HTMLu i postscripcie.
48
49 %prep
50 %setup -q -n %{name}v%{version}
51 %patch1 -p1
52 %patch2 -p1
53 %patch3 -p1
54
55 %build
56 %{__make} -C kernel/sources
57 %{__make} -C tools/sources
58 %{__make} -C xgui/sources
59
60 %install
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}
64
65 %{__make} -C kernel/sources install \
66                 DESTDIR=$RPM_BUILD_ROOT
67                 
68 %{__make} -C xgui/sources install \
69                 DESTDIR=$RPM_BUILD_ROOT
70
71 %{__make} -C tools/sources install \
72                 DESTDIR=$RPM_BUILD_ROOT
73
74 cp -af help.hdoc default.cfg examples $RPM_BUILD_ROOT%{_libdir}/SNNS
75
76 ln -fs ../../lib/SNNS/xgui/bin/pc_linux/xgui \
77 $RPM_BUILD_ROOT%{_prefix}/bin/xgui
78
79 cd $RPM_BUILD_ROOT%{_libdir}/SNNS/tools/bin/pc_linux
80 for n in *; do
81 ln -fs ../../lib/SNNS/tools/bin/pc_linux/$n $RPM_BUILD_ROOT%{_prefix}/bin/$n
82 done
83
84 cd $RPM_BUILD_ROOT%{_prefix}/bin
85 ln -fs xgui snns
86
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
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %files
97 %defattr(644,root,root,755)
98 %doc Readme*
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
104
105 %files doc
106 %defattr(644,root,root,755)
107 %docdir %{_libdir}/SNNS/SNNSinfo
108 %doc %{_libdir}/SNNS/SNNSinfo/*
This page took 0.049411 seconds and 3 git commands to generate.