summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-08-15 15:11:22 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-08-15 15:11:22 +0000
commit16026cc5bcd59ad0e43cfeb045c8eb444a16aabb (patch)
tree768da93d1bcfdceb3904ca0770a858bdb4f95894
parent6023926e4e511b8cfa7b04ac8bf83da4e6e5b873 (diff)
automatic import of R-CRAN-pokemonf39
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-pokemon.spec52
-rw-r--r--sources1
3 files changed, 54 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b87f4b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pokemon_0.1.3.tar.gz
diff --git a/R-CRAN-pokemon.spec b/R-CRAN-pokemon.spec
new file mode 100644
index 0000000..999afab
--- /dev/null
+++ b/R-CRAN-pokemon.spec
@@ -0,0 +1,52 @@
+%global __brp_check_rpaths %{nil}
+%global __requires_exclude ^libmpi
+%global packname pokemon
+%global packver 0.1.3
+%global rlibdir /usr/local/lib/R/library
+
+Name: R-CRAN-%{packname}
+Version: 0.1.3
+Release: 1%{?dist}%{?buildtag}
+Summary: Pokemon Data in English and Brazilian Portuguese
+
+License: MIT + file LICENSE
+URL: https://cran.r-project.org/package=%{packname}
+Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
+
+
+BuildRequires: R-devel >= 2.10
+Requires: R-core >= 2.10
+BuildArch: noarch
+
+%description
+Provides a dataset of Pokemon information in both English and Brazilian
+Portuguese. The dataset contains 949 rows and 22 columns, including
+information such as the Pokemon's name, ID, height, weight, stats, type,
+and more.
+
+%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}
diff --git a/sources b/sources
new file mode 100644
index 0000000..4d553ce
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+9c6d69ae08433f6fb210bb487892a4fc pokemon_0.1.3.tar.gz