Commit aa734712 authored by Klaus Zimmermann's avatar Klaus Zimmermann

Initial commit

parents
dir = $(shell pwd)
pkg = $(notdir $(dir))
spec_file = $(pkg).spec
sources: $(spec_file)
spectool -g $^
%global packname crayon
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
Version: 1.3.2
Release: 1%{?dist}
Summary: Colored Terminal Output
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-grDevices R-methods R-utils
# Suggests: R-testthat
# LinkingTo:
# Enhances:
BuildArch: noarch
Requires: R-core
BuildRequires: R-devel tex(latex)
%description
Colored terminal output on terminals that support 'ANSI' color and
highlight codes. It also works in 'Emacs' 'ESS'. 'ANSI' color support is
automatically detected. Colors and highlighting can be combined and
nested. New styles can also be created easily. This package was inspired
by the 'chalk' 'JavaScript' project.
%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}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/LICENSE
%doc %{rlibdir}/%{packname}/NEWS.md
%doc %{rlibdir}/%{packname}/README.markdown
%doc %{rlibdir}/%{packname}/ANSI-256-OSX.png
%doc %{rlibdir}/%{packname}/ANSI-8-OSX.png
%doc %{rlibdir}/%{packname}/logo.png
%doc %{rlibdir}/%{packname}/logo.svg.gz
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%changelog
* Tue May 16 2017 Klaus Zimmermann <klaus.zimmermann@smhi.se> 1.3.2-1
- initial package for Fedora
Markdown is supported
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