]> git.pld-linux.org Git - packages/R-cran-xgobi.git/blame - R-cran-xgobi.spec
- fixed install
[packages/R-cran-xgobi.git] / R-cran-xgobi.spec
CommitLineData
f7927196 1%define fversion %(echo %{version} |tr r -)
2%define modulename xgobi
3Summary: Interface to the XGobi and XGvis programs for graphical data analysis
2e2283d9 4Summary(pl.UTF-8): Interfejsy do programów XGobi i XGvis do graficznej analizy danych
f7927196 5Name: R-cran-%{modulename}
2261cc47 6Version: 1.2r15
522612f5 7Release: 2
f7927196 8License: Copyright (C) by Bellcore, non-profit use and redistribution permitted (see COPYING for details)
9Group: Applications/Math
10Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
2261cc47 11# Source0-md5: f940376554daab0cc17a0c0530bc9dfa
0acae8be
JR
12BuildRequires: R >= 2.8.1
13Requires(post,postun): R >= 2.8.1
f7927196 14Requires(post,postun): perl-base
15Requires(post,postun): textutils
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19Interface to the XGobi and XGvis programs for graphical data analysis.
20
1817400c
JR
21%description -l pl.UTF-8
22Interfejsy do programów XGobi i XGvis do graficznej analizy danych.
f7927196 23
24%prep
25%setup -q -c
26
27%build
28R CMD build %{modulename}
29
30%install
31rm -rf $RPM_BUILD_ROOT
522612f5 32install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
f7927196 33R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
34
35%clean
36rm -rf $RPM_BUILD_ROOT
37
38%post
39(cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
fc310466 40 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
f7927196 41
42%postun
43if [ -f %{_libdir}/R/bin/Rcmd ];then
44 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
fc310466 45 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
f7927196 46fi
47
48%files
49%defattr(644,root,root,755)
522612f5 50%doc %{modulename}/{DESCRIPTION,README,ChangeLog}
f7927196 51%{_libdir}/R/library/%{modulename}
This page took 0.062211 seconds and 4 git commands to generate.