From 18625185e59535b424413a734f1037957530d8bc Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Nov 16 2017 03:38:10 +0000 Subject: Remove lattice from Requires. --- diff --git a/R-withr.spec b/R-withr.spec index 6b11751..3353902 100644 --- a/R-withr.spec +++ b/R-withr.spec @@ -4,12 +4,14 @@ Name: R-%{packname} Version: 2.1.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Run Code 'With' Temporarily Modified Global State License: GPLv2+ URL: http://cran.r-project.org/web/packages/%{packname}/index.html Source0: http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz +# https://github.com/r-lib/withr/issues/62 +Patch0001: move-lattice-to-Suggests.patch # Here's the R view of the dependencies world: # Depends: @@ -21,7 +23,7 @@ Source0: http://cran.r-project.org/src/contrib/%{packname}_%{version}.t BuildArch: noarch Requires: R-core -Requires: R-stats R-lattice R-graphics R-grDevices +Requires: R-stats R-graphics R-grDevices BuildRequires: R-devel tex(latex) BuildRequires: R-stats R-lattice R-graphics R-grDevices BuildRequires: R-testthat R-DBI R-RSQLite R-methods @@ -36,8 +38,11 @@ dependencies to provide access to these functions. %prep %setup -q -c -n %{packname} +pushd %{packname} +%patch0001 -p1 # Don't need coverage; it's not packaged either. -sed -i 's/covr, //g' %{packname}/DESCRIPTION +sed -i 's/covr, //g' DESCRIPTION +popd %build @@ -67,6 +72,9 @@ rm -f %{buildroot}%{rlibdir}/R.css %changelog +* Wed Nov 15 2017 Elliott Sales de Andrade 2.1.0-2 +- Remove lattice from Requires. + * Fri Nov 10 2017 Elliott Sales de Andrade 2.1.0-1 - Update to latest release. diff --git a/move-lattice-to-Suggests.patch b/move-lattice-to-Suggests.patch new file mode 100644 index 0000000..3e48fa5 --- /dev/null +++ b/move-lattice-to-Suggests.patch @@ -0,0 +1,14 @@ +diff -uPNr withr.orig/DESCRIPTION withr/DESCRIPTION +--- withr.orig/DESCRIPTION 2017-11-01 11:52:18.000000000 -0400 ++++ withr/DESCRIPTION 2017-11-15 22:29:48.532835328 -0500 +@@ -19,8 +19,8 @@ + Depends: R (>= 3.0.2) + License: GPL (>= 2) + LazyData: true +-Imports: stats, lattice, graphics, grDevices +-Suggests: testthat, covr, DBI, RSQLite, methods ++Imports: stats, graphics, grDevices ++Suggests: testthat, covr, lattice, DBI, RSQLite, methods + RoxygenNote: 6.0.1 + Collate: 'local_.R' 'with_.R' 'collate.R' 'connection.R' 'db.R' + 'defer.R' 'wrap.R' 'devices.R' 'dir.R' 'env.R' 'libpaths.R'