%global packname maps %global rlibdir %{_libdir}/R/library %global __suggests_exclude ^R\\((mapdata|maptools|rnaturalearth)\\) # When we are bootstrapping, we drop some dependencies, and/or build time tests. %{?_with_bootstrap: %global bootstrap 1} # Disable things for review. %global bootstrap 1 Name: R-%{packname} Version: 3.4.0 Release: 1%{?dist} Summary: Draw Geographical Maps License: GPLv2 URL: https://CRAN.R-project.org/package=%{packname} Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz # Here's the R view of the dependencies world: # Depends: # Imports: R-graphics, R-utils # Suggests: R-mapproj >= 1.2-0, R-mapdata >= 2.3.0, R-sp, R-maptools, R-rnaturalearth # LinkingTo: # Enhances: BuildRequires: R-devel BuildRequires: tex(latex) BuildRequires: R-graphics BuildRequires: R-utils BuildRequires: R-sp %if ! 0%{?bootstrap} BuildRequires: R-mapproj >= 1.2.0 BuildRequires: R-mapdata >= 2.3.0 BuildRequires: R-maptools BuildRequires: R-rnaturalearth %endif %description Display of maps. Projection code and larger maps are in separate packages ('mapproj' and 'mapdata'). %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 ! 0%{?bootstrap} %{_bindir}/R CMD check %{packname} %else _R_CHECK_FORCE_SUGGESTS_=0 %{_bindir}/R CMD check %{packname} %endif %files %dir %{rlibdir}/%{packname} %doc %{rlibdir}/%{packname}/README.md %doc %{rlibdir}/%{packname}/html %{rlibdir}/%{packname}/DESCRIPTION %doc %{rlibdir}/%{packname}/NEWS.Rd %{rlibdir}/%{packname}/INDEX %{rlibdir}/%{packname}/NAMESPACE %{rlibdir}/%{packname}/Meta %{rlibdir}/%{packname}/R %{rlibdir}/%{packname}/help %dir %{rlibdir}/%{packname}/libs %{rlibdir}/%{packname}/libs/%{packname}.so %{rlibdir}/%{packname}/data %{rlibdir}/%{packname}/mapdata %changelog * Fri Aug 19 2022 Tom Callaway - 3.4.0-1 - update to 3.4.0 - rebuild for R 4.2.1 * Wed Jul 20 2022 Fedora Release Engineering - 3.3.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jan 19 2022 Fedora Release Engineering - 3.3.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 3.3.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jun 14 2021 Tom Callaway - 3.3.0-9 - Rebuilt for R 4.1.0 * Mon Jan 25 2021 Fedora Release Engineering - 3.3.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sat Aug 01 2020 Fedora Release Engineering - 3.3.0-7 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 3.3.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 5 2020 Tom Callaway - 3.3.0-5 - rebuild for R 4 * Tue Jan 28 2020 Fedora Release Engineering - 3.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sun Aug 11 2019 Elliott Sales de Andrade - 3.3.0-3 - Remove explicit dependencies provided by automatic dependency generator * Wed Jul 24 2019 Fedora Release Engineering - 3.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Mar 06 2019 Elliott Sales de Andrade - 3.3.0-1 - initial package for Fedora