1 Summary: Numerical Data Processing and Visualization Tool (grace)
6 Group: Applications/Math
7 Group(pl): Aplikacje/Matematyczne
8 Source0: ftp://plasma-gate.weizmann.ac.il/pub/grace/src/%{name}-%{version}.tar.gz
11 Patch0: %{name}.perl.patch
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 Grace is a Motif application for two-dimensional data visualization.
17 Grace can transform the data using free equations, FFT, cross- and
18 auto-correlation, differences, integrals, histograms, and much more.
19 The generated figures are of high quality. Grace is a very convenient
20 tool for data inspection, data transformation, and and for making
21 figures for publications.
24 Grace jest Motiffow± aplikacj± s³u¿±c± do dwuwymiarowej wizualizacji
25 danych. Mo¿e przejszta³caæ dane za pomoc± wolnych równañ, FFT,
26 autokorelacji, ró¿niczek, ca³ek, histogramów itd. Powsta³e wykresy
27 maj± wysok± jako¶æ. Grace jest bardzo u¿ytecznym narzêdziem je¶li
28 chodzi o monitorowanie i transformacjê danych oraz tworzenie wykresów
32 Group: Applications/Math
33 Group(pl): Aplikacje/Matematyczne
34 Summary: Numerical Data Processing and Visualization Tool (grace)
36 Conflicts: %{name}-semistatic
39 Grace is a Motif application for two-dimensional data visualization.
40 Grace can transform the data using free equations, FFT, cross- and
41 auto-correlation, differences, integrals, histograms, and much more.
42 The generated figures are of high quality. Grace is a very convenient
43 tool for data inspection, data transformation, and and for making
44 figures for publications.
47 Group: Applications/Math
48 Group(pl): Aplikacje/Matematyczne
49 Summary: grace with statically linked Motif libraries
51 Conflicts: %{name}-dynamic
53 %description semistatic
54 Grace is a Motif application for two-dimensional data visualization.
55 Grace can transform the data using free equations, FFT, cross- and
56 auto-correlation, differences, integrals, histograms, and much more.
57 The generated figures are of high quality. Grace is a very convenient
58 tool for data inspection, data transformation, and and for making
59 figures for publications.
61 In this package the Motif libraries are linked statically for users
62 who have no Motif runtime libraries.
67 tar -xzf $RPM_SOURCE_DIR/fftw.tar.gz
76 ./configure --prefix=/usr/X11R6 --enable-grace-home=/usr/X11R6/lib/X11/grace \
78 --enable-extra-incpath=$PKG_BUILD_DIR/include \
79 --enable-extra-ldpath=$PKG_BUILD_DIR/lib --enable-debug
83 `make -n xmgrace | grep '^gcc' | head -1 | \
84 sed -e 's/\([ \t]\|^\)-lnetcdf\b/\1-Wl,-Bstatic,-lnetcdf,-Bdynamic/g'`
85 mv xmgrace xmgrace.dynamic
86 `make -n xmgrace | grep '^gcc' | head -1 | \
87 sed -e 's/\([ \t]\|^\)-lXm\b/\1-Wl,-Bstatic,-lXm,-Bdynamic/g' \
88 -e 's/\([ \t]\|^\)-lXbae\b/\1-Wl,-Bstatic,-lXbae,-Bdynamic/g' \
89 -e 's/\([ \t]\|^\)-lnetcdf\b/\1-Wl,-Bstatic,-lnetcdf,-Bdynamic/g'`
93 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
96 %{__make} PREFIX=$RPM_BUILD_ROOT%{_prefix}/X11R6 \
97 GRACE_HOME=$RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/grace \
99 strip $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/grace/bin/xmgrace
100 mv $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/grace/bin/xmgrace \
101 $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/grace/bin/xmgrace.semistatic
102 strip $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/grace/bin/grconvert
103 install -s src/xmgrace.dynamic $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/grace/bin
104 rm -f $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/xmgrace
105 rm -f $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gracebat
106 install -m755 $RPM_SOURCE_DIR/xmgrace $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/xmgrace
107 ln -sf %{_prefix}/X11R6/bin/xmgrace $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gracebat
108 install -d $RPM_BUILD_ROOT%{_includedir}
109 ln -sf %{_prefix}/X11R6/lib/X11/grace/include/grace_np.h \
110 $RPM_BUILD_ROOT%{_includedir}/grace_np.h
111 install -d $RPM_BUILD_ROOT%{_libdir}
112 ln -sf %{_prefix}/X11R6/lib/X11/grace/lib/libgrace_np.a \
113 $RPM_BUILD_ROOT%{_libdir}/libgrace_np.a
116 find .%{_prefix}/X11R6/lib/X11/grace -type d \
117 | sed 's,^\.,\%attr(-\,root\,root) \%dir ,' \
118 > $RPM_BUILD_DIR/file.list.%{name}
120 | egrep -v 'xmgrace\.(dynamic|semistatic)' \
121 | sed 's,^\.,\%attr(-\,root\,root) ,' \
122 >> $RPM_BUILD_DIR/file.list.%{name}
124 | sed 's,^\.,\%attr(-\,root\,root) ,' \
125 >> $RPM_BUILD_DIR/file.list.%{name}
128 if [ "x$RPM_BUILD_ROOT" != "x/" ]; then
129 rm -rf $RPM_BUILD_ROOT
131 rm -f $RPM_BUILD_DIR/file.list.%{name}
133 %files dynamic -f ../file.list.%{name}
134 %defattr(644,root,root,755)
135 %{_prefix}/X11R6/lib/X11/grace/bin/xmgrace.dynamic
137 %files semistatic -f ../file.list.%{name}
138 %defattr(644,root,root,755)
139 %{_prefix}/X11R6/lib/X11/grace/bin/xmgrace.semistatic