]>
Commit | Line | Data |
---|---|---|
5ef0ee6b JR |
1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename xtable | |
3 | Summary: Coerce data to LaTeX and HTML tables | |
4 | Name: R-cran-%{modulename} | |
5 | Version: 1.7r0 | |
6 | Release: 1 | |
7 | License: GPL v2+ | |
8 | Group: Applications/Math | |
9 | Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz | |
10 | # Source0-md5: d830304efcf6e1985366064cb3f83639 | |
11 | BuildRequires: R >= 2.8.1 | |
12 | BuildRequires: texlive-latex-ae | |
13 | BuildRequires: texlive-latex-booktabs | |
14 | Requires: R >= 2.8.1 | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | Coerce data to LaTeX and HTML tables. | |
19 | ||
20 | %prep | |
21 | %setup -q -c | |
22 | ||
23 | %build | |
24 | R CMD build %{modulename} | |
25 | ||
26 | %install | |
27 | rm -rf $RPM_BUILD_ROOT | |
28 | install -d $RPM_BUILD_ROOT%{_libdir}/R/library | |
29 | ||
30 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
31 | ||
32 | %clean | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | ||
35 | %files | |
36 | %defattr(644,root,root,755) | |
37 | %doc %{modulename}/DESCRIPTION | |
38 | %doc %{modulename}/NEWS | |
39 | %{_libdir}/R/library/%{modulename} |