Commit 7803bb8f 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 shinyjs
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.9
Release: 1%{?dist}
Summary: Easily Improve the User Experience of Your Shiny Apps in Seconds
Group: Applications/Engineering
License: MIT
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-digest R-htmltools R-jsonlite R-miniUI R-shiny R-stats
# Suggests: R-knitr R-rmarkdown R-rstudioapi R-shinyAce R-testthat R-V8
# LinkingTo:
# Enhances:
Requires: R-digest R-htmltools R-jsonlite R-miniUI R-shiny
BuildRequires: R-devel tex(latex)
BuildRequires: R-digest R-htmltools R-jsonlite R-miniUI R-shiny
%description
Perform common useful JavaScript operations in Shiny apps that will
greatly improve your apps without having to know any JavaScript. Examples
include: hiding an element, disabling an input, resetting an input back to
its original value, delaying code execution by a few seconds, and many
more useful functions for both the end user and the developer. 'shinyjs'
can also be used to easily call your own custom JavaScript functions from
%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
_R_CHECK_FORCE_SUGGESTS_=False %{_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}/LICENSE
%doc %{rlibdir}/%{packname}/NEWS.md
%doc %{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/gadgets
%{rlibdir}/%{packname}/img
%{rlibdir}/%{packname}/rstudio
%{rlibdir}/%{packname}/srcjs
%{rlibdir}/%{packname}/www
%changelog
* Thu May 18 2017 Klaus Zimmermann <klaus.zimmermann@smhi.se> 0.9-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