[packages/R-cran-Formula] - new

baggins baggins at pld-linux.org
Fri Nov 29 11:48:08 CET 2013


commit e1545ba58e35f5688bf4c866441c174870c18428
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Nov 29 11:47:53 2013 +0100

    - new

 R-cran-Formula.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
---
diff --git a/R-cran-Formula.spec b/R-cran-Formula.spec
new file mode 100644
index 0000000..79815c7
--- /dev/null
+++ b/R-cran-Formula.spec
@@ -0,0 +1,51 @@
+%define		fversion	%(echo %{version} |tr r -)
+%define		modulename	Formula
+Summary:	Extended Model Formulas
+Name:		R-cran-%{modulename}
+Version:	1.1r1
+Release:	1
+License:	GPL v2+
+Group:		Applications/Math
+Source0:	ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz
+# Source0-md5:	bf47f043979dc1587c442aca1d8ad4fa
+URL:		http://socserv.socsci.mcmaster.ca/jfox/
+BuildRequires:	R >= 2.8.1
+BuildRequires:	texlive-tex-thumbpdf
+Requires(post,postun):	R >= 2.8.1
+Requires(post,postun):	perl-base
+Requires(post,postun):	textutils
+Requires:	R
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Infrastructure for extended formulas with multiple parts on
+the right-hand side and/or multiple responses on the left-hand side.
+
+%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-Formula.git/commitdiff/e1545ba58e35f5688bf4c866441c174870c18428



More information about the pld-cvs-commit mailing list