1 %define fversion %(echo %{version} |tr r -)
3 Summary: Plot the Australian coastline and states
4 Summary(pl.UTF-8): Rysowanie australijskiej linii brzegowej i stanów
5 Name: R-cran-%{modulename}
9 Group: Applications/Math
10 Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
11 # Source0-md5: 9a05f3152e456412d0cc649309f52ff6
12 BuildRequires: R >= 2.8.1
13 Requires(post,postun): R >= 2.8.1
14 Requires(post,postun): perl-base
15 Requires(post,postun): textutils
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Plot the Australian coastline and states.
21 %description -l pl.UTF-8
22 Rysowanie australijskiej linii brzegowej i stanów.
28 R CMD build %{modulename}
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT%{_libdir}/R/library/
33 R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
36 rm -rf $RPM_BUILD_ROOT
39 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
40 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
43 if [ -f %{_libdir}/R/bin/Rcmd ];then
44 (cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
45 R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
49 %defattr(644,root,root,755)
50 %doc %{modulename}/{DESCRIPTION,ChangeLog,README}
51 %{_libdir}/R/library/%{modulename}