Release: 1
License: GPL
Group: Applications/Math
+Group(pl): Aplikacje/Matematyczne
Source0: ftp://plasma-gate.weizmann.ac.il/pub/grace/src/%{name}-%{version}.tar.gz
Source1: xmgrace
Source2: fftw.tar.gz
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-Grace is a Motif application for two-dimensional data visualization. Grace
-can transform the data using free equations, FFT, cross- and
-auto-correlation, differences, integrals, histograms, and much more. The
-generated figures are of high quality. Grace is a very convenient tool for
-data inspection, data transformation, and and for making figures for
-publications.
+Grace is a Motif application for two-dimensional data visualization.
+Grace can transform the data using free equations, FFT, cross- and
+auto-correlation, differences, integrals, histograms, and much more.
+The generated figures are of high quality. Grace is a very convenient
+tool for data inspection, data transformation, and and for making
+figures for publications.
%description -l pl
-Grace jest Motiffow± aplikacj± s³u¿±c± do dwuwymiarowej wizualizacji danych.
-Mo¿e przejszta³caæ dane za pomoc± wolnych równañ, FFT, autokorelacji,
-ró¿niczek, ca³ek, histogramów itd. Powsta³e wykresy maj± wysok± jako¶æ.
-Grace jest bardzo u¿ytecznym narzêdziem je¶li chodzi o monitorowanie i
-transformacjê danych oraz tworzenie wykresów do publikacji.
+Grace jest Motiffow± aplikacj± s³u¿±c± do dwuwymiarowej wizualizacji
+danych. Mo¿e przejszta³caæ dane za pomoc± wolnych równañ, FFT,
+autokorelacji, ró¿niczek, ca³ek, histogramów itd. Powsta³e wykresy
+maj± wysok± jako¶æ. Grace jest bardzo u¿ytecznym narzêdziem je¶li
+chodzi o monitorowanie i transformacjê danych oraz tworzenie wykresów
+do publikacji.
%package dynamic
Group: Applications/Math
+Group(pl): Aplikacje/Matematyczne
Summary: Numerical Data Processing and Visualization Tool (grace)
Provides: %{name}
Conflicts: %{name}-semistatic
%description dynamic
-Grace is a Motif application for two-dimensional data visualization. Grace
-can transform the data using free equations, FFT, cross- and
-auto-correlation, differences, integrals, histograms, and much more. The
-generated figures are of high quality. Grace is a very convenient tool for
-data inspection, data transformation, and and for making figures for
-publications.
+Grace is a Motif application for two-dimensional data visualization.
+Grace can transform the data using free equations, FFT, cross- and
+auto-correlation, differences, integrals, histograms, and much more.
+The generated figures are of high quality. Grace is a very convenient
+tool for data inspection, data transformation, and and for making
+figures for publications.
%package semistatic
Group: Applications/Math
+Group(pl): Aplikacje/Matematyczne
Summary: grace with statically linked Motif libraries
Provides: %{name}
Conflicts: %{name}-dynamic
%description semistatic
-Grace is a Motif application for two-dimensional data visualization. Grace
-can transform the data using free equations, FFT, cross- and
-auto-correlation, differences, integrals, histograms, and much more. The
-generated figures are of high quality. Grace is a very convenient tool for
-data inspection, data transformation, and and for making figures for
-publications.
+Grace is a Motif application for two-dimensional data visualization.
+Grace can transform the data using free equations, FFT, cross- and
+auto-correlation, differences, integrals, histograms, and much more.
+The generated figures are of high quality. Grace is a very convenient
+tool for data inspection, data transformation, and and for making
+figures for publications.
-In this package the Motif libraries are linked statically for users who have
-no Motif runtime libraries.
+In this package the Motif libraries are linked statically for users
+who have no Motif runtime libraries.
%prep
%setup -q
cd ..
%install
-if [ "x$RPM_BUILD_ROOT" != "x/" ]; then
- rm -rf $RPM_BUILD_ROOT
-fi
-mkdir -p $RPM_BUILD_ROOT/usr/X11R6/bin
-make PREFIX=$RPM_BUILD_ROOT/usr/X11R6 \
- GRACE_HOME=$RPM_BUILD_ROOT/usr/X11R6/lib/X11/grace \
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_prefix}/X11R6/bin
+make PREFIX=$RPM_BUILD_ROOT%{_prefix}/X11R6 \
+GRACE_HOME=$RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/grace \
install
-strip $RPM_BUILD_ROOT/usr/X11R6/lib/X11/grace/bin/xmgrace
-mv $RPM_BUILD_ROOT/usr/X11R6/lib/X11/grace/bin/xmgrace \
- $RPM_BUILD_ROOT/usr/X11R6/lib/X11/grace/bin/xmgrace.semistatic
-strip $RPM_BUILD_ROOT/usr/X11R6/lib/X11/grace/bin/grconvert
-install -s src/xmgrace.dynamic $RPM_BUILD_ROOT/usr/X11R6/lib/X11/grace/bin
-rm -f $RPM_BUILD_ROOT/usr/X11R6/bin/xmgrace
-rm -f $RPM_BUILD_ROOT/usr/X11R6/bin/gracebat
-install -m755 $RPM_SOURCE_DIR/xmgrace $RPM_BUILD_ROOT/usr/X11R6/bin/xmgrace
-ln -sf /usr/X11R6/bin/xmgrace $RPM_BUILD_ROOT/usr/X11R6/bin/gracebat
-mkdir -p $RPM_BUILD_ROOT/usr/include
-ln -sf /usr/X11R6/lib/X11/grace/include/grace_np.h \
- $RPM_BUILD_ROOT/usr/include/grace_np.h
-mkdir -p $RPM_BUILD_ROOT/usr/lib
-ln -sf /usr/X11R6/lib/X11/grace/lib/libgrace_np.a \
- $RPM_BUILD_ROOT/usr/lib/libgrace_np.a
+strip $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/grace/bin/xmgrace
+mv $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/grace/bin/xmgrace \
+$RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/grace/bin/xmgrace.semistatic
+strip $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/grace/bin/grconvert
+install -s src/xmgrace.dynamic $RPM_BUILD_ROOT%{_prefix}/X11R6/lib/X11/grace/bin
+rm -f $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/xmgrace
+rm -f $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gracebat
+install -m755 $RPM_SOURCE_DIR/xmgrace $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/xmgrace
+ln -sf %{_prefix}/X11R6/bin/xmgrace $RPM_BUILD_ROOT%{_prefix}/X11R6/bin/gracebat
+install -d $RPM_BUILD_ROOT%{_includedir}
+ln -sf %{_prefix}/X11R6/lib/X11/grace/include/grace_np.h \
+ $RPM_BUILD_ROOT%{_includedir}/grace_np.h
+install -d $RPM_BUILD_ROOT%{_libdir}
+ln -sf %{_prefix}/X11R6/lib/X11/grace/lib/libgrace_np.a \
+ $RPM_BUILD_ROOT%{_libdir}/libgrace_np.a
cd $RPM_BUILD_ROOT
-find ./usr/X11R6/lib/X11/grace -type d \
+find .%{_prefix}/X11R6/lib/X11/grace -type d \
| sed 's,^\.,\%attr(-\,root\,root) \%dir ,' \
> $RPM_BUILD_DIR/file.list.%{name}
find . -type f \
rm -f $RPM_BUILD_DIR/file.list.%{name}
%files dynamic -f ../file.list.%{name}
-/usr/X11R6/lib/X11/grace/bin/xmgrace.dynamic
+%defattr(644,root,root,755)
+%{_prefix}/X11R6/lib/X11/grace/bin/xmgrace.dynamic
%files semistatic -f ../file.list.%{name}
-/usr/X11R6/lib/X11/grace/bin/xmgrace.semistatic
+%defattr(644,root,root,755)
+%{_prefix}/X11R6/lib/X11/grace/bin/xmgrace.semistatic