R-rprojroot/R-rprojroot.spec

91 lines
2.3 KiB
RPMSpec
Raw Normal View History

2017-11-11 00:16:57 +00:00
%global packname rprojroot
%global rlibdir %{_datadir}/R/library
2018-04-26 07:33:24 +00:00
%global packver 1.3-2
2017-11-11 00:16:57 +00:00
# Dependency lops.
%global with_doc 0
Name: R-%{packname}
2018-04-26 07:33:24 +00:00
Version: 1.3.2
Release: 2%{?dist}
2017-11-11 00:16:57 +00:00
Summary: Finding Files in Project Subdirectories
License: GPLv3
2019-01-23 00:55:27 +00:00
URL: https://CRAN.R-project.org/package=%{packname}
2018-04-26 07:33:24 +00:00
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
2017-11-11 00:16:57 +00:00
# Here's the R view of the dependencies world:
# Depends:
# Imports: R-backports
2018-04-26 07:33:24 +00:00
# Suggests: R-testthat, R-mockr, R-knitr, R-withr, R-rmarkdown
2017-11-11 00:16:57 +00:00
# LinkingTo:
# Enhances:
BuildArch: noarch
Requires: R-core
Requires: R-backports
2018-04-26 07:33:24 +00:00
BuildRequires: R-devel
BuildRequires: tex(latex)
2017-11-11 00:16:57 +00:00
BuildRequires: R-backports
BuildRequires: R-testthat
2018-04-26 07:33:24 +00:00
BuildRequires: R-mockr
2017-11-11 00:16:57 +00:00
%if %{with_doc}
BuildRequires: R-knitr
BuildRequires: R-withr
BuildRequires: R-rmarkdown
%endif
%description
Robust, reliable and flexible paths to files below a project root. The
'root' of a project is defined as a directory that matches a certain
criterion, e.g., it contains a certain regular file.
%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 %{with_doc}
%{_bindir}/R CMD check %{packname}
%else
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} --ignore-vignettes
%endif
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.md
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%changelog
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-04-26 07:33:24 +00:00
* Thu Apr 26 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.2-1
- Update to latest version
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2017-11-11 00:16:57 +00:00
* Thu Nov 09 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 1.2-1
- initial package for Fedora