%global __brp_check_rpaths %{nil} %global __requires_exclude ^libmpi %global packname micromapST %global packver 3.0.4 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 3.0.4 Release: 1%{?dist}%{?buildtag} Summary: Linked Micromap Plots for U. S. and Other Geographic Areas License: GPL (>= 2) URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 4.0.0 Requires: R-core >= 4.0.0 BuildArch: noarch BuildRequires: R-methods BuildRequires: R-graphics BuildRequires: R-grDevices BuildRequires: R-utils BuildRequires: R-CRAN-stringr BuildRequires: R-CRAN-RColorBrewer BuildRequires: R-CRAN-labeling BuildRequires: R-CRAN-sf BuildRequires: R-CRAN-spdep BuildRequires: R-CRAN-rmapshaper BuildRequires: R-tools BuildRequires: R-CRAN-readxl BuildRequires: R-CRAN-writexl BuildRequires: R-stats Requires: R-methods Requires: R-graphics Requires: R-grDevices Requires: R-utils Requires: R-CRAN-stringr Requires: R-CRAN-RColorBrewer Requires: R-CRAN-labeling Requires: R-CRAN-sf Requires: R-CRAN-spdep Requires: R-CRAN-rmapshaper Requires: R-tools Requires: R-CRAN-readxl Requires: R-CRAN-writexl Requires: R-stats %description Provides the users with the ability to quickly create linked micromap plots for a collection of geographic areas. Linked micromap plots are visualizations of geo-referenced data that link statistical graphics to an organized series of small maps or graphic images. The Help description contains examples of how to use the 'micromapST' function. Contained in this package are border group datasets to support creating linked micromap plots for the 50 U.S. states and District of Columbia (51 areas), the U. S. 20 Seer Registries, the 105 counties in the state of Kansas, the 62 counties of New York, the 24 counties of Maryland, the 29 counties of Utah, the 32 administrative areas in China, the 218 administrative areas in the UK and Ireland (for testing only), the 25 districts in the city of Seoul South Korea, and the 52 counties on the Africa continent. A border group dataset contains the boundaries related to the data level areas, a second layer boundaries, a top or third layer boundary, a parameter list of run options, and a cross indexing table between area names, abbreviations, numeric identification and alias matching strings for the specific geographic area. By specifying a border group, the package create linked micromap plots for any geographic region. The user can create and provide their own border group dataset for any area beyond the areas contained within the package. In version 3.0.0, the 'BuildBorderGroup' function was upgraded to not use the retiring 'maptools', 'rgdal', and 'rgeos' packages. References: Carr and Pickle, Chapman and Hall/CRC, Visualizing Data Patterns with Micromaps, CRC Press, 2010. Pickle, Pearson, and Carr (2015), micromapST: Exploring and Communicating Geospatial Patterns in US State Data., Journal of Statistical Software, 63(3), 1-25., . Copyrighted 2013, 2014, 2015, 2016, 2022, 2023, and 2024 by Carr, Pearson and Pickle. %prep %setup -q -c -n %{packname} # fix end of executable files find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \; # prevent binary stripping [ -d %{packname}/src ] && find %{packname}/src -type f -exec \ sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true [ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \ sed -i 's@-g0@@g' {} \; || true # don't allow local prefix in executable scripts find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \; %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 # remove buildroot from installed files find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \; %files %{rlibdir}/%{packname}