Initial import (#1809908).

This commit is contained in:
Elliott Sales de Andrade 2020-03-04 17:37:32 -05:00
parent 552829b11a
commit baf439710d
3 changed files with 94 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/profvis_0.3.6.tar.gz

92
R-profvis.spec Normal file
View File

@ -0,0 +1,92 @@
%global packname profvis
%global packver 0.3.6
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.3.6
Release: 1%{?dist}
Summary: Interactive Visualizations for Profiling R Code
License: GPLv3
URL: https://CRAN.R-project.org/package=%{packname}
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
# Here's the R view of the dependencies world:
# Depends:
# Imports: R-htmlwidgets >= 0.3.2, R-stringr
# Suggests: R-knitr, R-ggplot2, R-rmarkdown, R-testthat, R-devtools, R-shiny, R-htmltools
# LinkingTo:
# Enhances:
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-htmlwidgets >= 0.3.2
BuildRequires: R-stringr
BuildRequires: R-knitr
BuildRequires: R-ggplot2
BuildRequires: R-rmarkdown
BuildRequires: R-testthat
BuildRequires: R-devtools
BuildRequires: R-shiny
BuildRequires: R-htmltools
# This is broken in Fedora.
Provides: bundled(js-highlight) = 6.2.0
BuildRequires: js-jquery1 >= 1.12.4
Requires: js-jquery1 >= 1.12.4
# Not available in Fedora.
Provides: bundled(js-d3) = 3.5.6
%description
Interactive visualizations for profiling R code.
%prep
%setup -q -c -n %{packname}
%build
%install
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
# Unbundle things; can't be done before install since it copies symlink targets.
# jQuery 1
rm %{buildroot}%{rlibdir}/%{packname}/htmlwidgets/lib/jquery/jquery.min.js
ln -s /usr/share/javascript/jquery/latest/jquery.min.js \
%{buildroot}%{rlibdir}/%{packname}/htmlwidgets/lib/jquery/jquery.min.js
%check
%{_bindir}/R CMD check %{packname}
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.md
%license %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%dir %{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/libs/%{packname}.so
%{rlibdir}/%{packname}/htmlwidgets
%license %{rlibdir}/%{packname}/htmlwidgets/lib/d3/LICENSE
%license %{rlibdir}/%{packname}/htmlwidgets/lib/highlight/LICENSE
%{rlibdir}/%{packname}/shinymodule
%changelog
* Mon Mar 02 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.3.6-1
- initial package for Fedora

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (profvis_0.3.6.tar.gz) = 342cb62cdedd4ebb9a562ed504f473f778af3822bb02d114c082f7b1c867f7a6bdc8651e9cbe0c1b21d874989a0af9fc74d52145b5cf6bb6840888db17a78a4d