e5b86a4f1c299440eaf432f747e8eb3e09535b64
[packages/R-cran-acepack.git] / R-cran-acepack.spec
1 %define         fversion        %(echo %{version} |tr r -)
2 %define         modulename      acepack
3 Summary:        ace() and avas() for selecting regression transformations
4 Summary(pl):    ace() i avas() do wyboru regresji transformacji
5 Name:           R-cran-%{modulename}
6 Version:        1.3r2.1
7 Release:        1
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
12 BuildRequires:  R-base >= 2.0.0
13 Requires(post,postun):  R-base >= 2.0.0
14 Requires(post,postun):  perl-base
15 Requires(post,postun):  textutils
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 ACE and AVAS methods for choosing regression transformations.
20
21 %description -l pl
22 Metody ACE i AVAS do wyboru regresji transformacji.
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 --htmllist)
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 --htmllist)
45 fi
46
47 %files
48 %defattr(644,root,root,755)
49 %doc %{modulename}/DESCRIPTION %{modulename}/README* %{modulename}/ace.doc
50 %{_libdir}/R/library/%{modulename}
This page took 0.0770380000000001 seconds and 2 git commands to generate.