2017-08-29 23:41:05 +00:00
|
|
|
%global packname highr
|
|
|
|
%global rlibdir %{_datadir}/R/library
|
|
|
|
|
|
|
|
# Needs knitr (build loop)
|
|
|
|
%global with_doc 0
|
|
|
|
|
|
|
|
|
|
|
|
Name: R-%{packname}
|
2018-06-10 02:10:44 +00:00
|
|
|
Version: 0.7
|
2018-07-12 19:28:39 +00:00
|
|
|
Release: 2%{?dist}
|
2017-08-29 23:41:05 +00:00
|
|
|
Summary: Syntax Highlighting for R Source Code
|
|
|
|
|
|
|
|
License: GPLv2+
|
2019-01-23 00:55:21 +00:00
|
|
|
URL: https://CRAN.R-project.org/package=%{packname}
|
2017-08-29 23:41:05 +00:00
|
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
|
|
|
|
|
|
|
# Here's the R view of the dependencies world:
|
|
|
|
# Depends:
|
|
|
|
# Imports:
|
|
|
|
# Suggests: R-knitr R-testit
|
|
|
|
# LinkingTo:
|
|
|
|
# Enhances:
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: R-core
|
|
|
|
|
|
|
|
BuildRequires: R-devel tex(latex)
|
2017-11-08 01:39:55 +00:00
|
|
|
BuildRequires: R-testit
|
2017-08-29 23:41:05 +00:00
|
|
|
%if 0%{?with_doc}
|
2017-11-08 01:39:55 +00:00
|
|
|
BuildRequires: R-knitr
|
2017-08-29 23:41:05 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
Provides syntax highlighting for R source code. Currently it supports
|
|
|
|
LaTeX and HTML output. Source code of other languages is supported via
|
|
|
|
Andre Simon's highlight package (http://www.andre-simon.de).
|
|
|
|
|
2017-11-08 01:39:55 +00:00
|
|
|
|
2017-08-29 23:41:05 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -c -n %{packname}
|
|
|
|
|
2017-11-08 01:39:55 +00:00
|
|
|
|
2017-08-29 23:41:05 +00:00
|
|
|
%build
|
|
|
|
|
2017-11-08 01:39:55 +00:00
|
|
|
|
2017-08-29 23:41:05 +00:00
|
|
|
%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
|
|
|
|
|
2017-11-08 01:39:55 +00:00
|
|
|
|
2017-08-29 23:41:05 +00:00
|
|
|
%check
|
|
|
|
%if 0%{?with_doc}
|
|
|
|
%{_bindir}/R CMD check %{packname}
|
|
|
|
%endif
|
|
|
|
|
2017-11-08 01:39:55 +00:00
|
|
|
|
2017-08-29 23:41:05 +00:00
|
|
|
%files
|
|
|
|
%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
|
2018-07-12 19:28:39 +00:00
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-06-10 02:10:44 +00:00
|
|
|
* Sat Jun 09 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.7-1
|
|
|
|
- Update to latest veresion
|
|
|
|
|
2018-02-07 01:16:17 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-06-10 02:10:44 +00:00
|
|
|
* Tue Nov 07 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.6-3
|
2017-11-08 01:39:55 +00:00
|
|
|
- Enable tests during build.
|
|
|
|
- Cleanup BRs.
|
|
|
|
|
2018-06-10 02:10:44 +00:00
|
|
|
* Thu Aug 24 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.6-2
|
2017-08-29 23:41:05 +00:00
|
|
|
- Fix license and use https links.
|
|
|
|
|
|
|
|
* Fri Feb 17 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.6-1
|
|
|
|
- initial package for Fedora
|