103 lines
2.8 KiB
RPMSpec
103 lines
2.8 KiB
RPMSpec
%global packname glue
|
|
%global rlibdir %{_libdir}/R/library
|
|
|
|
# Not all available yet.
|
|
%global with_suggests 0
|
|
|
|
Name: R-%{packname}
|
|
Version: 1.3.0
|
|
Release: 1%{?dist}
|
|
Summary: Interpreted String Literals
|
|
|
|
License: MIT
|
|
URL: https://cran.r-project.org/web/packages/%{packname}/index.html
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
|
|
|
# Here's the R view of the dependencies world:
|
|
# Depends:
|
|
# Imports: R-methods
|
|
# Suggests: R-testthat, R-covr, R-magrittr, R-crayon, R-knitr, R-rmarkdown, R-DBI, R-RSQLite, R-R.utils, R-forcats, R-microbenchmark, R-rprintf, R-stringr, R-ggplot2, R-dplyr, R-withr
|
|
# LinkingTo:
|
|
# Enhances:
|
|
|
|
Requires: R-methods
|
|
Suggests: R-crayon
|
|
Suggests: R-knitr
|
|
Suggests: R-DBI
|
|
BuildRequires: R-devel
|
|
BuildRequires: tex(latex)
|
|
BuildRequires: R-methods
|
|
BuildRequires: R-testthat
|
|
BuildRequires: R-magrittr
|
|
BuildRequires: R-crayon
|
|
BuildRequires: R-knitr
|
|
BuildRequires: R-rmarkdown
|
|
BuildRequires: R-DBI
|
|
BuildRequires: R-RSQLite
|
|
BuildRequires: R-R.utils
|
|
BuildRequires: R-rprintf
|
|
BuildRequires: R-stringr
|
|
BuildRequires: R-withr
|
|
%if %{with_suggests}
|
|
BuildRequires: R-forcats
|
|
BuildRequires: R-microbenchmark
|
|
BuildRequires: R-ggplot2
|
|
BuildRequires: R-dplyr
|
|
%endif
|
|
|
|
%description
|
|
An implementation of interpreted string literals, inspired by Python's
|
|
Literal String Interpolation <https://www.python.org/dev/peps/pep-0498/>
|
|
and Docstrings <https://www.python.org/dev/peps/pep-0257/> and Julia's
|
|
Triple-Quoted String Literals
|
|
|
|
|
|
%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
|
|
|
|
|
|
%check
|
|
export LANG=C.UTF-8
|
|
%if %{with_suggests}
|
|
%{_bindir}/R CMD check %{packname}
|
|
%else
|
|
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname}
|
|
%endif
|
|
|
|
|
|
%files
|
|
%dir %{rlibdir}/%{packname}
|
|
%doc %{rlibdir}/%{packname}/doc
|
|
%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
|
|
|
|
|
|
%changelog
|
|
* Sun Jul 22 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.0-1
|
|
- Update to latest version
|
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
* Wed Apr 25 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.0-1
|
|
- initial package for Fedora
|