1 %define fversion %(echo %{version} |tr r -)
2 %define modulename xgobi
3 Summary: Interface to the XGobi and XGvis programs for graphical data analysis
4 Summary(pl.UTF-8): Interfejsy do programów XGobi i XGvis do graficznej analizy danych
5 Name: R-cran-%{modulename}
8 License: Copyright (C) by Bellcore, non-profit use and redistribution permitted (see COPYING for details)
9 Group: Applications/Math
10 Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
11 # Source0-md5: 3edae689c69c12ef71df1ee269c1b1b8
12 BuildRequires: R-base >= 2.4.0
13 Requires(post,postun): R-base >= 2.4.0
14 Requires(post,postun): perl-base
15 Requires(post,postun): textutils
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Interface to the XGobi and XGvis programs for graphical data analysis.
21 %description -l pl.UTF-8
22 Interfejsy do programów XGobi i XGvis do graficznej analizy danych.
28 R CMD build %{modulename}
31 rm -rf $RPM_BUILD_ROOT
32 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
35 rm -rf $RPM_BUILD_ROOT
38 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
39 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
42 if [ -f %{_libdir}/R/bin/Rcmd ];then
43 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
44 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
48 %defattr(644,root,root,755)
49 %doc %{modulename}/{DESCRIPTION,README,COPYING,ChangeLog}
50 %{_libdir}/R/library/%{modulename}