[packages/R-cran-lattice] - new

baggins baggins at pld-linux.org
Thu Oct 18 12:47:22 CEST 2012


commit b51147e339126597dd6fab1826836d5b0c2eb267
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Oct 18 12:47:10 2012 +0200

    - new

 R-cran-lattice.spec | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
---
diff --git a/R-cran-lattice.spec b/R-cran-lattice.spec
new file mode 100644
index 0000000..91afd0a
--- /dev/null
+++ b/R-cran-lattice.spec
@@ -0,0 +1,52 @@
+%define		fversion	0.20-10
+%define		modulename	lattice
+Summary:	Lattice Graphics
+Name:		R-cran-%{modulename}
+Version:	0.20.10
+Release:	1
+License:	GPL v2+
+Group:		Applications/Math
+Source0:	ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
+# Source0-md5:	948b52c4effa4d0db6b0701f20f13239
+URL:		http://lattice.r-forge.r-project.org/
+BuildRequires:	R >= 2.8.1
+Requires(post,postun):	R >= 2.8.1
+Requires(post,postun):	perl-base
+Requires(post,postun):	textutils
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Lattice is a powerful and elegant high-level data visualization
+system, with an emphasis on multivariate data, that is sufficient
+for typical graphics needs, and is also flexible enough to handle
+most nonstandard requirements. See ?Lattice for an introduction.
+
+%prep
+%setup -q -c
+
+%build
+R CMD build %{modulename}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/R/library
+
+R CMD INSTALL %{modulename} --library=$RPM_BUILD_ROOT%{_libdir}/R/library/
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+(cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
+ R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
+
+%postun
+if [ -f %{_libdir}/R/bin/Rcmd ];then
+	(cd %{_libdir}/R/library; umask 022; cat */CONTENTS > ../doc/html/search/index.txt
+	R_HOME=%{_libdir}/R ../bin/Rcmd perl ../share/perl/build-help.pl --index)
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc %{modulename}/DESCRIPTION
+%{_libdir}/R/library/%{modulename}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/R-cran-lattice.git/commitdiff/b51147e339126597dd6fab1826836d5b0c2eb267



More information about the pld-cvs-commit mailing list