R-withr/R-withr.spec

159 lines
5.0 KiB
RPMSpec
Raw Normal View History

2021-06-17 21:45:03 +00:00
%bcond_with bootstrap
2020-05-22 02:05:24 +00:00
%global packname withr
2021-04-24 07:15:25 +00:00
%global packver 2.4.2
2017-08-31 00:19:03 +00:00
%global rlibdir %{_datadir}/R/library
Name: R-%{packname}
2021-04-24 07:15:25 +00:00
Version: 2.4.2
2021-06-17 21:45:03 +00:00
Release: 3%{?dist}
2017-08-31 00:19:03 +00:00
Summary: Run Code 'With' Temporarily Modified Global State
2021-02-23 07:17:20 +00:00
License: MIT
2019-01-23 00:55:30 +00:00
URL: https://CRAN.R-project.org/package=%{packname}
2020-05-22 02:05:24 +00:00
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
2017-08-31 00:19:03 +00:00
# Here's the R view of the dependencies world:
# Depends:
2020-05-22 02:05:24 +00:00
# Imports: R-graphics, R-grDevices, R-stats
# Suggests: R-covr, R-DBI, R-knitr, R-lattice, R-methods, R-rmarkdown, R-RSQLite, R-testthat >= 2.1.0
2017-08-31 00:19:03 +00:00
# LinkingTo:
# Enhances:
BuildArch: noarch
2018-04-26 03:32:19 +00:00
BuildRequires: R-devel
BuildRequires: tex(latex)
BuildRequires: R-graphics
BuildRequires: R-grDevices
2020-05-22 02:05:24 +00:00
BuildRequires: R-stats
2020-09-23 09:43:43 +00:00
%if %{without bootstrap}
2018-04-26 03:32:19 +00:00
BuildRequires: R-DBI
2020-09-23 09:55:59 +00:00
BuildRequires: R-knitr
2020-05-22 02:05:24 +00:00
BuildRequires: R-lattice
2018-04-26 03:32:19 +00:00
BuildRequires: R-methods
2020-09-23 09:55:59 +00:00
BuildRequires: R-rmarkdown
2020-05-22 02:05:24 +00:00
BuildRequires: R-RSQLite
BuildRequires: R-testthat >= 2.1.0
%endif
2017-08-31 00:19:03 +00:00
%description
A set of functions to run code 'with' safely and temporarily modified
global state. Many of these functions were originally a part of the
'devtools' package, this provides a simple package with limited
dependencies to provide access to these functions.
2017-11-11 04:58:13 +00:00
2017-08-31 00:19:03 +00:00
%prep
%setup -q -c -n %{packname}
2017-11-11 06:34:43 +00:00
# Don't need coverage; it's not packaged either.
2018-01-02 23:22:22 +00:00
sed -i 's/covr, //g' %{packname}/DESCRIPTION
2017-11-11 06:34:43 +00:00
2017-11-11 04:58:13 +00:00
2017-08-31 00:19:03 +00:00
%build
2017-11-11 04:58:13 +00:00
2017-08-31 00:19:03 +00:00
%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
2017-11-11 04:58:13 +00:00
2017-08-31 00:19:03 +00:00
%check
2020-09-23 09:43:43 +00:00
%if %{without bootstrap}
2018-04-26 03:32:19 +00:00
export LANG=C.UTF-8
%{_bindir}/R CMD check %{packname}
%endif
2017-08-31 00:19:03 +00:00
2017-11-11 04:58:13 +00:00
2017-08-31 00:19:03 +00:00
%files
%dir %{rlibdir}/%{packname}
2018-01-02 23:22:22 +00:00
%doc %{rlibdir}/%{packname}/doc
2017-08-31 00:19:03 +00:00
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.md
2021-02-23 07:17:20 +00:00
%license %{rlibdir}/%{packname}/LICENSE
2017-08-31 00:19:03 +00:00
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%changelog
2021-06-17 21:45:03 +00:00
* Thu Jun 17 2021 Tom Callaway <spot@fedoraproject.org> - 2.4.2-3
- bootstrap off
2021-06-09 16:01:15 +00:00
* Wed Jun 9 2021 Tom Callaway <spot@fedoraproject.org> - 2.4.2-2
- bootstrap
- Rebuilt for R 4.1.0
2021-04-24 07:15:25 +00:00
* Sat Apr 24 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.2-1
- Update to latest version (#1950751)
2021-02-23 07:17:20 +00:00
* Sun Feb 07 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.1-1
- Update to latest version (#1916980)
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-09-23 09:43:32 +00:00
* Wed Sep 23 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.3.0-1
- Update to latest version (#1881624)
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jun 3 2020 Tom Callaway <spot@fedoraproject.org> - 2.2.0-2
- conditionalize check to break testthat loop
- rebuild for R 4
2020-05-22 02:05:24 +00:00
* Thu May 21 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.0-1
- Update to latest version
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sun Aug 11 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.1.2-5
- Remove explicit dependencies provided by automatic dependency generator
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-04-26 03:32:19 +00:00
* Wed Apr 25 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.1.2-1
- Update to latest version.
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2018-01-02 23:22:22 +00:00
* Tue Jan 02 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.1.1-1
- Update to latest release.
2017-11-16 03:38:10 +00:00
* Wed Nov 15 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.1.0-2
- Remove lattice from Requires.
2017-11-16 03:54:13 +00:00
- Minor fixes to spec internals.
2017-11-16 03:38:10 +00:00
2017-11-11 04:58:13 +00:00
* Fri Nov 10 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.1.0-1
- Update to latest release.
2017-11-08 04:04:25 +00:00
* Tue Nov 07 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.0.0-3
- Remove extra Requires.
2017-08-31 00:19:03 +00:00
* Tue Aug 29 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.0.0-2
- Clean up old stuff in spec.
* Thu Aug 24 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.0.0-1
- Update to latest release.
* Thu Aug 24 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.0.0-1
- New upstream release
* Fri Feb 17 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 1.0.2-1
- initial package for Fedora