]>
Commit | Line | Data |
---|---|---|
7c688922 | 1 | %define fversion %(echo %{version} |tr r -) |
2 | %define modulename rgl | |
3 | Summary: 3D visualization device system (OpenGL) | |
c32e43c6 | 4 | Summary(pl.UTF-8): Sterownik wyświetlania 3D (OpenGL) |
7c688922 | 5 | Name: R-cran-%{modulename} |
6 | Version: 0.64r13 | |
4efe71bf | 7 | Release: 2 |
7c688922 | 8 | License: GPL |
9 | Group: Applications/Math | |
10 | Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz | |
11 | # Source0-md5: bbbae92de0e3127cec4e8fd9d794d096 | |
12 | URL: http://wsopuppenkiste.wiso.uni-goettingen.de/~dadler/rgl | |
4efe71bf | 13 | BuildRequires: R-base >= 2.4.0 |
7c688922 | 14 | BuildRequires: XFree86-OpenGL-devel |
15 | BuildRequires: libpng-devel | |
16 | BuildRequires: libstdc++-devel | |
4efe71bf | 17 | Requires(post,postun): R-base >= 2.4.0 |
7c688922 | 18 | Requires(post,postun): perl-base |
19 | Requires(post,postun): textutils | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | 3D visualization device (OpenGL). | |
24 | ||
c32e43c6 JR |
25 | %description -l pl.UTF-8 |
26 | Sterownik wyświetlania 3D (OpenGL). | |
7c688922 | 27 | |
28 | %prep | |
29 | %setup -q -c | |
30 | ||
31 | %build | |
32 | R CMD build %{modulename} | |
33 | ||
34 | %install | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/ | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %post | |
42 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
4efe71bf | 43 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
7c688922 | 44 | |
45 | %postun | |
46 | if [ -f %{_libdir}/R/bin/Rcmd ];then | |
47 | (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt | |
4efe71bf | 48 | R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index) |
7c688922 | 49 | fi |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %doc %{modulename}/{DESCRIPTION,README,README-X11} | |
54 | %{_libdir}/R/library/%{modulename} |