]>
Commit | Line | Data |
---|---|---|
1 | %define fversion %(echo %{version} |tr r -) | |
2 | %define modulename effects | |
3 | Summary: Effect Displays for Linear and Generalized Linear Models | |
4 | Summary(pl.UTF-8): Wyświetlanie efektów dla liniowych i uogólnionych modeli liniowych | |
5 | Name: R-cran-%{modulename} | |
6 | Version: 1.0r5 | |
7 | Release: 2 | |
8 | License: GPL v2+ | |
9 | Group: Applications/Math | |
10 | Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz | |
11 | # Source0-md5: 79390a9807537b24e92956a0614c4ac7 | |
12 | URL: http://socserv.socsci.mcmaster.ca/jfox/ | |
13 | BuildRequires: R >= 2.8.1 | |
14 | Requires(post,postun): R >= 2.8.1 | |
15 | Requires(post,postun): perl-base | |
16 | Requires(post,postun): textutils | |
17 | Requires: R | |
18 | Requires: R-cran-grid | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Graphical and tabular effect displays, e.g., of interactions, for | |
23 | linear and generalised linear models. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Graficzne i tablicowe wyświetlanie efektów, np. interakcji, dla | |
27 | liniowych i uogólnionych modeli liniowych. | |
28 | ||
29 | %prep | |
30 | %setup -q -c | |
31 | ||
32 | %build | |
33 | R CMD build %{modulename} | |
34 | ||
35 | %install | |
36 | rm -rf $RPM_BUILD_ROOT | |
37 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
38 | ||
39 | %clean | |
40 | rm -rf $RPM_BUILD_ROOT | |
41 | ||
42 | %post | |
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 --index) | |
45 | ||
46 | %postun | |
47 | if [ -f %{_libdir}/R/bin/Rcmd ];then | |
48 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
49 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) | |
50 | fi | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc %{modulename}/DESCRIPTION | |
55 | %{_libdir}/R/library/%{modulename} |