Fixup BRs and enable tests during build.

This commit is contained in:
Elliott Sales de Andrade 2017-11-07 20:39:55 -05:00
parent 31702340db
commit 41d93d157e

View File

@ -7,7 +7,7 @@
Name: R-%{packname}
Version: 0.6
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Syntax Highlighting for R Source Code
License: GPLv2+
@ -25,9 +25,9 @@ BuildArch: noarch
Requires: R-core
BuildRequires: R-devel tex(latex)
BuildRequires: R-testit
%if 0%{?with_doc}
Requires: R-knitr R-testit
BuildRequires: R-knitr R-testit
BuildRequires: R-knitr
%endif
@ -36,22 +36,27 @@ 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).
%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
%if 0%{?with_doc}
%{_bindir}/R CMD check %{packname}
%endif
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
@ -66,6 +71,10 @@ rm -f %{buildroot}%{rlibdir}/R.css
%changelog
* Tue Nov 07 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.6-3
- Enable tests during build.
- Cleanup BRs.
* Thu Aug 24 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 0.6-2
- Fix license and use https links.