summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2025-08-25 16:30:20 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2025-08-25 16:30:20 +0000
commit2bd3c483908029cd25dc57c00651031d068a1eaa (patch)
treee75753ec7d8398b91348cdde12fc823aff9a7b6a
parentfba0bb6acce26d6b2861f23b72c3930195840203 (diff)
automatic import of R-CRAN-RevSDf43
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-RevSD.spec53
-rw-r--r--sources1
3 files changed, 55 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3abbf29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/RevSD_0.1.1.tar.gz
diff --git a/R-CRAN-RevSD.spec b/R-CRAN-RevSD.spec
new file mode 100644
index 0000000..d03838e
--- /dev/null
+++ b/R-CRAN-RevSD.spec
@@ -0,0 +1,53 @@
+%global __brp_check_rpaths %{nil}
+%global __requires_exclude ^libmpi
+%global packname RevSD
+%global packver 0.1.1
+%global rlibdir /usr/local/lib/R/library
+
+Name: R-CRAN-%{packname}
+Version: 0.1.1
+Release: 1%{?dist}%{?buildtag}
+Summary: Visualizing the Standard Deviation via Revolution
+
+License: GPL-3
+URL: https://cran.r-project.org/package=%{packname}
+Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
+
+
+BuildRequires: R-devel
+Requires: R-core
+BuildArch: noarch
+
+%description
+We visualize the standard deviation of a data set as the radius of a
+cylinder whose volume equals the total volume of several cylinders made by
+revolving the empirical cumulative distribution function about the
+vertical line through the mean. For more details see Sarkar and Rashid
+(2016) <doi:10.1080/00031305.2016.1165734>.
+
+%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..c09122d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+5997b6058b9a66f73c17f2a88fee6515 RevSD_0.1.1.tar.gz