Commit e2d6691c authored by Klaus Zimmermann's avatar Klaus Zimmermann
Browse files

Initial commit

parents
dir = $(shell pwd)
pkg = $(notdir $(dir))
spec_file = $(pkg).spec
sources: $(spec_file)
spectool -g $^
%global packname leaflet
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 1.1.0
Release: 1%{?dist}
Summary: Create Interactive Web Maps with the JavaScript 'Leaflet' Library
Group: Applications/Engineering
License: GPLv3
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-base64enc R-crosstalk R-htmlwidgets R-htmltools R-magrittr R-markdown R-methods R-png R-RColorBrewer R-raster R-scales R-sp R-stats R-viridis
# Suggests: R-knitr R-maps R-sf R-shiny R-testit R-rgdal R-rgeos R-R6 R-RJSONIO R-purrr R-testthat
# LinkingTo:
# Enhances:
Requires: R-base64enc R-crosstalk R-htmlwidgets R-htmltools R-magrittr R-markdown R-methods R-png R-RColorBrewer R-raster R-scales R-sp R-viridis
BuildRequires: R-devel tex(latex)
BuildRequires: R-base64enc R-crosstalk R-htmlwidgets R-htmltools R-magrittr R-markdown R-methods R-png R-RColorBrewer R-raster R-scales R-sp R-viridis
%description
Create and customize interactive maps using the 'Leaflet' JavaScript
library and the 'htmlwidgets' package. These maps can be used directly
from the R console, from 'RStudio', in Shiny apps and R Markdown
%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
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%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
%{rlibdir}/%{packname}/data/Rdata.rdb
%{rlibdir}/%{packname}/data/Rdata.rds
%{rlibdir}/%{packname}/data/Rdata.rdx
%{rlibdir}/%{packname}/htmlwidgets
%doc %{rlibdir}/%{packname}/legacy/examples
%{rlibdir}/%{packname}/legacy/www
%changelog
* Thu May 18 2017 Klaus Zimmermann <klaus.zimmermann@smhi.se> 1.1.0-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