diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-09-20 16:30:15 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-09-20 16:30:15 +0000 |
commit | d2bd33d16c0772a435581896559e0c3d5008b35a (patch) | |
tree | a02e776f6bf6fbf52a5bcce5a14f16979be3d4ad | |
parent | 392efccc9f4783f8deb9fa8c17b0795367e0c37d (diff) |
automatic import of R-CRAN-unheadrf37
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-unheadr.spec | 70 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 72 insertions, 0 deletions
@@ -0,0 +1 @@ +/unheadr_0.3.3.tar.gz diff --git a/R-CRAN-unheadr.spec b/R-CRAN-unheadr.spec new file mode 100644 index 0000000..dbbf26e --- /dev/null +++ b/R-CRAN-unheadr.spec @@ -0,0 +1,70 @@ +%global __brp_check_rpaths %{nil} +%global __requires_exclude ^libmpi +%global packname unheadr +%global packver 0.3.3 +%global rlibdir /usr/local/lib/R/library + +Name: R-CRAN-%{packname} +Version: 0.3.3 +Release: 1%{?dist}%{?buildtag} +Summary: Handle Data with Messy Header Rows and Broken Values + +License: MIT + file LICENSE +URL: https://cran.r-project.org/package=%{packname} +Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz + + +BuildRequires: R-devel >= 3.1.0 +Requires: R-core >= 3.1.0 +BuildArch: noarch +BuildRequires: R-CRAN-dplyr >= 0.8.4 +BuildRequires: R-CRAN-rlang >= 0.2.1 +BuildRequires: R-CRAN-forcats +BuildRequires: R-CRAN-stringr +BuildRequires: R-CRAN-tidyr +BuildRequires: R-CRAN-magrittr +BuildRequires: R-CRAN-tidyxl +BuildRequires: R-CRAN-readxl +BuildRequires: R-CRAN-tibble +Requires: R-CRAN-dplyr >= 0.8.4 +Requires: R-CRAN-rlang >= 0.2.1 +Requires: R-CRAN-forcats +Requires: R-CRAN-stringr +Requires: R-CRAN-tidyr +Requires: R-CRAN-magrittr +Requires: R-CRAN-tidyxl +Requires: R-CRAN-readxl +Requires: R-CRAN-tibble + +%description +Verb-like functions to work with messy data, often derived from +spreadsheets or parsed PDF tables. Includes functions for unwrapping +values broken up across rows, relocating embedded grouping values, and to +annotate meaningful formatting in spreadsheet files. + +%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} @@ -0,0 +1 @@ +e3f0c286ef03051e5443a3716dce8450 unheadr_0.3.3.tar.gz |