From f79271967b8693894e74c45d6ab2fe7de04aa048 Mon Sep 17 00:00:00 2001 From: undefine Date: Tue, 16 Nov 2004 23:44:11 +0000 Subject: [PATCH] - initital Changed files: R-cran-xgobi.spec -> 1.1 --- R-cran-xgobi.spec | 50 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 R-cran-xgobi.spec diff --git a/R-cran-xgobi.spec b/R-cran-xgobi.spec new file mode 100644 index 0000000..2fa4a42 --- /dev/null +++ b/R-cran-xgobi.spec @@ -0,0 +1,50 @@ +%define fversion %(echo %{version} |tr r -) +%define modulename xgobi +Summary: Interface to the XGobi and XGvis programs for graphical data analysis +Summary(pl): Interfejsy do programów XGobi i XGvis dla graficznej analizy danych +Name: R-cran-%{modulename} +Version: 1.2r12 +Release: 1 +License: Copyright (C) by Bellcore, non-profit use and redistribution permitted (see COPYING for details) +Group: Applications/Math +Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz +# Source0-md5: 3edae689c69c12ef71df1ee269c1b1b8 +BuildRequires: R-base >= 2.0.0 +Requires(post,postun): R-base >= 2.0.0 +Requires(post,postun): perl-base +Requires(post,postun): textutils +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Interface to the XGobi and XGvis programs for graphical data analysis. + +%description +Interfejsy do programów XGobi i XGvis dla graficznej analizy danych. + +%prep +%setup -q -c + +%build +R CMD build %{modulename} + +%install +rm -rf $RPM_BUILD_ROOT +R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +(cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt + R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist) + +%postun +if [ -f %{_libdir}/R/bin/Rcmd ];then + (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt + R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --htmllist) +fi + +%files +%defattr(644,root,root,755) +%doc %{modulename}/{DESCRIPTION,README,COPYING,ChangeLog} +%{_libdir}/R/library/%{modulename} -- 2.44.0