]> git.pld-linux.org Git - packages/R-cran-xgobi.git/blob - R-cran-xgobi.spec
c631a5655608733a5873600ba7c1aeb3e47c38ca
[packages/R-cran-xgobi.git] / R-cran-xgobi.spec
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}
6 Version:        1.2r15
7 Release:        1
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:  f940376554daab0cc17a0c0530bc9dfa
12 BuildRequires:  R >= 2.8.1
13 Requires(post,postun):  R >= 2.8.1
14 Requires(post,postun):  perl-base
15 Requires(post,postun):  textutils
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Interface to the XGobi and XGvis programs for graphical data analysis.
20
21 %description -l pl.UTF-8
22 Interfejsy do programów XGobi i XGvis do graficznej analizy danych.
23
24 %prep
25 %setup -q -c
26
27 %build
28 R CMD build %{modulename}
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
33
34 %clean
35 rm -rf $RPM_BUILD_ROOT
36
37 %post
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)
40
41 %postun
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)
45 fi
46
47 %files
48 %defattr(644,root,root,755)
49 %doc %{modulename}/{DESCRIPTION,README,COPYING,ChangeLog}
50 %{_libdir}/R/library/%{modulename}
This page took 0.042161 seconds and 2 git commands to generate.