]>
Commit | Line | Data |
---|---|---|
f7927196 | 1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename xgobi | |
3 | Summary: Interface to the XGobi and XGvis programs for graphical data analysis | |
2e2283d9 | 4 | Summary(pl.UTF-8): Interfejsy do programów XGobi i XGvis do graficznej analizy danych |
f7927196 | 5 | Name: R-cran-%{modulename} |
2261cc47 | 6 | Version: 1.2r15 |
522612f5 | 7 | Release: 2 |
f7927196 | 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 | |
2261cc47 | 11 | # Source0-md5: f940376554daab0cc17a0c0530bc9dfa |
0acae8be JR |
12 | BuildRequires: R >= 2.8.1 |
13 | Requires(post,postun): R >= 2.8.1 | |
f7927196 | 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 | ||
1817400c JR |
21 | %description -l pl.UTF-8 |
22 | Interfejsy do programów XGobi i XGvis do graficznej analizy danych. | |
f7927196 | 23 | |
24 | %prep | |
25 | %setup -q -c | |
26 | ||
27 | %build | |
28 | R CMD build %{modulename} | |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
522612f5 | 32 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library/ |
f7927196 | 33 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ |
34 | ||
35 | %clean | |
36 | rm -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 | |
43 | if [ -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 | 46 | fi |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
522612f5 | 50 | %doc %{modulename}/{DESCRIPTION,README,ChangeLog} |
f7927196 | 51 | %{_libdir}/R/library/%{modulename} |