R-rprojroot/R-rprojroot.spec

172 lines
5.7 KiB
RPMSpec
Raw Normal View History

%bcond_without bootstrap
2020-11-15 22:24:57 +00:00
%global packname rprojroot
2023-11-05 13:56:08 +00:00
%global packver 2.0.4
2017-11-11 00:16:57 +00:00
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
2023-11-05 13:56:08 +00:00
Version: %{packver}
Release: 5.0.riscv64%{?dist}
2017-11-11 00:16:57 +00:00
Summary: Finding Files in Project Subdirectories
2020-11-15 22:24:57 +00:00
License: MIT
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:
2020-11-15 22:24:57 +00:00
# Imports:
2023-11-05 13:56:08 +00:00
# Suggests: R-covr, R-knitr, R-lifecycle, R-mockr, R-rlang, R-rmarkdown, R-testthat >= 3.0.0, R-withr
2017-11-11 00:16:57 +00:00
# LinkingTo:
# Enhances:
BuildArch: noarch
2018-04-26 07:33:24 +00:00
BuildRequires: R-devel
BuildRequires: tex(latex)
2020-11-15 22:24:57 +00:00
%if %{without bootstrap}
2017-11-11 00:16:57 +00:00
BuildRequires: R-knitr
2020-11-15 22:24:57 +00:00
BuildRequires: R-lifecycle
BuildRequires: R-mockr
2023-11-05 13:56:08 +00:00
BuildRequires: R-rlang
2017-11-11 00:16:57 +00:00
BuildRequires: R-rmarkdown
2020-11-15 22:24:57 +00:00
BuildRequires: R-testthat >= 3.0.0
BuildRequires: R-withr
%endif
2017-11-11 00:16:57 +00:00
%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}
2020-11-15 22:24:57 +00:00
# Don't need coverage.
sed -i 's/covr, //' %{packname}/DESCRIPTION
2017-11-11 00:16:57 +00:00
%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
2020-11-15 22:24:57 +00:00
%if %{without bootstrap}
2019-03-06 08:42:51 +00:00
export NOT_CRAN=true
2023-04-27 20:43:46 +00:00
%{_bindir}/R CMD check --ignore-vignettes %{packname}
2017-11-11 00:16:57 +00:00
%else
2023-04-27 20:43:46 +00:00
_R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check --ignore-vignettes %{packname} --no-tests
%endif
2017-11-11 00:16:57 +00:00
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.md
2020-11-15 22:24:57 +00:00
%license %{rlibdir}/%{packname}/LICENSE
2017-11-11 00:16:57 +00:00
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
2020-11-15 22:24:57 +00:00
%{rlibdir}/%{packname}/WORDLIST
2017-11-11 00:16:57 +00:00
%changelog
* Wed Jul 17 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
2024-04-25 14:50:05 +00:00
* Thu Apr 25 2024 Iñaki Úcar <iucar@fedoraproject.org> - 2.0.4-4
- R-maint-sig mass rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2023-11-05 13:56:08 +00:00
* Sun Nov 5 2023 Tom Callaway <spot@fedoraproject.org> - 2.0.4-1
- update to 2.0.4
* Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
2023-04-27 20:43:46 +00:00
* Thu Apr 27 2023 Iñaki Úcar <iucar@fedoraproject.org> - 2.0.3-4
- Ignore vignettes
2023-04-21 12:18:25 +00:00
* Fri Apr 21 2023 Iñaki Úcar <iucar@fedoraproject.org> - 2.0.3-3
- R-maint-sig mass rebuild
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Aug 18 2022 Tom Callaway <spot@fedoraproject.org> - 2.0.3-1
- update to 2.0.3
- rebuild for R 4.2.1
- bootstrap on
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-06-17 21:36:04 +00:00
* Thu Jun 17 2021 Tom Callaway <spot@fedoraproject.org> - 2.0.2-4
- bootstrap off
2021-06-09 16:09:43 +00:00
* Wed Jun 9 2021 Tom Callaway <spot@fedoraproject.org> - 2.0.2-3
- Rebuilt for R 4.1.0
- bootstrap
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-11-15 22:24:57 +00:00
* Sun Nov 15 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.0.2-1
- Update to latest version (#1897908)
- Rename check and with_doc conditions to bootstrap
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jun 3 2020 Tom Callaway <spot@fedoraproject.org> - 1.3.2-8
- conditionalize check to break testthat loop
- rebuild for R 4
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sun Aug 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.2-6
- Remove explicit dependencies provided by automatic dependency generator
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-03-06 08:42:51 +00:00
* Wed Mar 06 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.2-4
- Enable docs and fuller test suite
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* 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