Commit 24c777c4 authored by Klaus Zimmermann's avatar Klaus Zimmermann
Browse files

Initial commit


Signed-off-by: Klaus Zimmermann's avatarKlaus Zimmermann <klaus.zimmermann@smhi.se>
parents
dir = $(shell pwd)
pkg = $(notdir $(dir))
spec_file = $(pkg).spec
sources: $(spec_file)
spectool -g $^
%global packname knitr
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 1.17
Release: 1%{?dist}
Summary: A General-Purpose Package for Dynamic Report Generation in R
Group: Applications/Engineering
License: GPL
URL: http://cran.r-project.org/web/packages/%{packname}/index.html
Source0: http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Here's the R view of the dependencies world:
# Depends:
# Imports: R-evaluate R-digest R-highr R-markdown R-stringr R-yaml R-methods R-tools
# Suggests: R-formatR R-testit R-rgl R-codetools R-rmarkdown R-htmlwidgets R-webshot R-tikzDevice R-png R-jpeg R-XML R-RCurl R-DBI R-tibble
# LinkingTo:
# Enhances:
Requires: R-evaluate R-digest R-highr R-markdown R-stringr R-yaml R-methods R-tools
Requires: R-formatR R-testit R-rgl R-codetools R-rmarkdown R-htmlwidgets R-webshot R-tikzDevice R-png R-jpeg R-XML R-RCurl R-DBI R-tibble
BuildRequires: R-devel tex(latex)
BuildRequires: R-evaluate R-digest R-highr R-markdown R-stringr R-yaml R-methods R-tools
BuildRequires: R-formatR R-testit R-rgl R-codetools R-rmarkdown R-htmlwidgets R-webshot R-tikzDevice R-png R-jpeg R-XML R-RCurl R-DBI R-tibble
%description
Provides a general-purpose tool for dynamic report generation in R using
Literate Programming techniques.
%prep
%setup -q -c -n %{packname}
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
%check
%{_bindir}/R CMD check %{packname}
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%changelog
* Mon Sep 18 2017 Klaus Zimmermann <klaus.zimmermann@smhi.se> 1.17-1
- initial package for Fedora
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment