summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2021-10-01 15:16:34 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2021-10-01 15:16:34 +0000
commitcdd61cd4f2f3e5d77a24e943af7089e1ed164637 (patch)
tree5782ddd2e25d52507b5624626f0f401cfda99b73
parent392efccc9f4783f8deb9fa8c17b0795367e0c37d (diff)
automatic import of R-CRAN-unheadr
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-unheadr.spec67
-rw-r--r--sources1
3 files changed, 69 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..54a121f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/unheadr_0.3.2.tar.gz
diff --git a/R-CRAN-unheadr.spec b/R-CRAN-unheadr.spec
new file mode 100644
index 0000000..004bd93
--- /dev/null
+++ b/R-CRAN-unheadr.spec
@@ -0,0 +1,67 @@
+%global __brp_check_rpaths %{nil}
+%global packname unheadr
+%global packver 0.3.2
+%global rlibdir /usr/local/lib/R/library
+
+Name: R-CRAN-%{packname}
+Version: 0.3.2
+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
+# 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}
diff --git a/sources b/sources
new file mode 100644
index 0000000..422b2f9
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+79586a328bbde48c7d806ed47013da9a unheadr_0.3.2.tar.gz