]>
Commit | Line | Data |
---|---|---|
7e0a21b2 | 1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename effects | |
3 | Summary: Effect Displays for Linear and Generalized Linear Models | |
470eaf45 | 4 | Summary(pl.UTF-8): Wyświetlanie efektów dla liniowych i uogólnionych modeli liniowych |
7e0a21b2 | 5 | Name: R-cran-%{modulename} |
6 | Version: 1.0r5 | |
37cb7cd6 | 7 | Release: 2 |
0ae80b16 | 8 | License: GPL v2+ |
7e0a21b2 | 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/ | |
37cb7cd6 JR |
13 | BuildRequires: R-base >= 2.4.0 |
14 | Requires(post,postun): R-base >= 2.4.0 | |
7e0a21b2 | 15 | Requires(post,postun): perl-base |
16 | Requires(post,postun): textutils | |
17 | Requires: R-cran-grid | |
18 | Requires: R-cran-lattice | |
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 | ||
7ce85e1a JR |
25 | %description -l pl.UTF-8 |
26 | Graficzne i tablicowe wyświetlanie efektów, np. interakcji, dla | |
27 | liniowych i uogólnionych modeli liniowych. | |
7e0a21b2 | 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 | |
37cb7cd6 | 44 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
7e0a21b2 | 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 | |
37cb7cd6 | 49 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
7e0a21b2 | 50 | fi |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc %{modulename}/DESCRIPTION | |
55 | %{_libdir}/R/library/%{modulename} |