Commit b3c90460 authored by Klaus Zimmermann's avatar Klaus Zimmermann

Initial commit

dir = $(shell pwd)
pkg = $(notdir $(dir))
spec_file = $(pkg).spec
sources: $(spec_file)
spectool -g $^
%global packname stringr
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
Version: 1.2.0
Release: 1%{?dist}
Summary: Simple, Consistent Wrappers for Common String Operations
Group: Applications/Engineering
License: GPLv2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Here's the R view of the dependencies world:
# Depends:
# Imports: R-stringi R-magrittr
# Suggests: R-testthat R-knitr R-htmltools R-htmlwidgets R-rmarkdown R-covr
# LinkingTo:
# Enhances:
BuildArch: noarch
Requires: R-core
Requires: R-stringi R-magrittr
BuildRequires: R-devel tex(latex)
BuildRequires: R-stringi R-magrittr
BuildRequires: R-testthat
A consistent, simple and easy to use set of wrappers around the fantastic
'stringi' package. All function and argument names (and positions) are
consistent, all functions deal with "NA"s and zero length vectors in the
same way, and the output from one function is easy to feed into the input
of another.
%setup -q -c -n %{packname}
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
_R_CHECK_FORCE_SUGGESTS_=False %{_bindir}/R CMD check %{packname}
rm -rf %{buildroot}
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/LICENSE
%doc %{rlibdir}/%{packname}/
* Wed May 17 2017 Klaus Zimmermann <> 1.2.0-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