]>
Commit | Line | Data |
---|---|---|
b04e130a | 1 | %define fversion %(echo %{version} |tr r -) |
eca5418e | 2 | %define modulename acepack |
b04e130a | 3 | Summary: ace() and avas() for selecting regression transformations |
222382d5 | 4 | Summary(pl.UTF-8): ace() i avas() do wyboru przekształceń regresji |
b04e130a | 5 | Name: R-cran-%{modulename} |
6 | Version: 1.3r2.1 | |
cf194220 | 7 | Release: 2 |
b04e130a | 8 | License: avas is public domain, ace is on Statlib |
9 | Group: Applications/Math | |
10 | Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz | |
11 | # Source0-md5: eb75cab587664b58df4a14c65f450b62 | |
c42c4d96 JR |
12 | BuildRequires: R >= 2.8.1 |
13 | BuildRequires: gcc-fortran | |
14 | Requires(post,postun): R >= 2.8.1 | |
b04e130a | 15 | Requires(post,postun): perl-base |
16 | Requires(post,postun): textutils | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | ACE and AVAS methods for choosing regression transformations. | |
21 | ||
1ab5fe95 JR |
22 | %description -l pl.UTF-8 |
23 | Metody ACE i AVAS do wyboru przekształceń regresji. | |
b04e130a | 24 | |
25 | %prep | |
26 | %setup -q -c | |
27 | ||
28 | %build | |
29 | R CMD build %{modulename} | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33748078 | 33 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library |
b04e130a | 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 | |
cf194220 | 40 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
b04e130a | 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 | |
cf194220 | 45 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
b04e130a | 46 | fi |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc %{modulename}/DESCRIPTION %{modulename}/README* %{modulename}/ace.doc | |
51 | %{_libdir}/R/library/%{modulename} |