]>
Commit | Line | Data |
---|---|---|
63c1bbca | 1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename sma | |
3 | Summary: Statistical Microarray Analysis | |
23360631 | 4 | Summary(pl.UTF-8): Statystyczne analizy mikrotablicowe |
63c1bbca | 5 | Name: R-cran-%{modulename} |
6 | Version: 0.5.14 | |
ea9a185d | 7 | Release: 2 |
dac3f471 | 8 | License: GPL v2+ |
63c1bbca | 9 | Group: Applications/Math |
10 | Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz | |
11 | # Source0-md5: b669496897c520eb0a78ff62c647f3ef | |
12 | URL: http://www.stat.berkeley.edu/users/terry/zarray/Html/smacode.html | |
c2e9862f JR |
13 | BuildRequires: R >= 2.8.1 |
14 | Requires(post,postun): R >= 2.8.1 | |
63c1bbca | 15 | Requires(post,postun): perl-base |
16 | Requires(post,postun): textutils | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | The package contains some simple functions for exploratory microarray | |
21 | analysis. | |
22 | ||
bf726252 JR |
23 | %description -l pl.UTF-8 |
24 | Pakiet zawiera proste funkcje do wstępnej analizy mikrotablicowej. | |
63c1bbca | 25 | |
26 | %prep | |
27 | %setup -q -c | |
28 | ||
29 | %build | |
30 | R CMD build %{modulename} | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %post | |
40 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
ea9a185d | 41 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
63c1bbca | 42 | |
43 | %postun | |
44 | if [ -f %{_libdir}/R/bin/Rcmd ];then | |
45 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
ea9a185d | 46 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
63c1bbca | 47 | fi |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc %{modulename}/DESCRIPTION | |
52 | %{_libdir}/R/library/%{modulename} |