]>
Commit | Line | Data |
---|---|---|
e7649d63 | 1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename leaps | |
85eb8b47 | 3 | Summary: Regression subset selection |
a3f8c0bc | 4 | Summary(pl.UTF-8): Wybór podzbioru regresji |
e7649d63 | 5 | Name: R-cran-%{modulename} |
6 | Version: 2.7 | |
edced474 | 7 | Release: 2 |
407ac971 | 8 | License: GPL v2+ |
e7649d63 | 9 | Group: Applications/Math |
10 | Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{version}.tar.gz | |
11 | # Source0-md5: 551d8cd9a53d2eee7c13108577910a44 | |
edced474 | 12 | BuildRequires: R-base >= 2.4.0 |
61e382a4 | 13 | BuildRequires: gcc-g77 |
edced474 | 14 | Requires(post,postun): R-base >= 2.4.0 |
e7649d63 | 15 | Requires(post,postun): perl-base |
16 | Requires(post,postun): textutils | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Regression subset selection including exhaustive search. | |
21 | ||
1d91e1d2 JR |
22 | %description -l pl.UTF-8 |
23 | Wybór podzbioru regresji obejmujący wyczerpujące wyszukiwanie. | |
e7649d63 | 24 | |
25 | %prep | |
26 | %setup -q -c | |
27 | ||
28 | %build | |
29 | R CMD build %{modulename} | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
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 | |
edced474 | 40 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
e7649d63 | 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 | |
edced474 | 45 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
e7649d63 | 46 | fi |
47 | ||
48 | %files | |
49 | %defattr(644,root,root,755) | |
50 | %doc %{modulename}/{DESCRIPTION,README} | |
51 | %{_libdir}/R/library/%{modulename} |