From 80c569e61f7bba3c59a3a5d2f2c45014001bb6e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 29 Nov 2013 12:58:11 +0100 Subject: [PATCH 1/1] - new --- R-cran-gtable.spec | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 R-cran-gtable.spec diff --git a/R-cran-gtable.spec b/R-cran-gtable.spec new file mode 100644 index 0000000..7b9923d --- /dev/null +++ b/R-cran-gtable.spec @@ -0,0 +1,39 @@ +%define fversion %(echo %{version} |tr r -) +%define modulename gtable +Summary: Arrange grobs in tables +Name: R-cran-%{modulename} +Version: 0.1.2 +Release: 1 +License: GPL v2 +Group: Applications/Math +Source0: ftp://stat.ethz.ch/R-CRAN/src/contrib/%{modulename}_%{fversion}.tar.gz +# Source0-md5: be491aa5220f0059a0e1cb04679b6563 +URL: http://cran.fhcrc.org/web/packages/gtable/index.html +BuildRequires: R >= 2.8.1 +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 +Tools to make it easier to work with "tables" of grobs. + +%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 + +%files +%defattr(644,root,root,755) +%doc %{modulename}/DESCRIPTION +%{_libdir}/R/library/%{modulename} -- 2.43.0