summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2021-02-21 21:22:20 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2021-02-21 21:22:20 +0000
commit39d5aece76707050cc75acd72865b0584163d29f (patch)
treeede17c50d7e9b32e12e459c05fdf00d551ace1ab
parent6dbdf68477831109570d395eb64e3e229bf07ef6 (diff)
automatic import of R-CRAN-Rmstf34
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-Rmst.spec54
-rw-r--r--sources1
3 files changed, 56 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..036414e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Rmst_0.0.3.tar.gz
diff --git a/R-CRAN-Rmst.spec b/R-CRAN-Rmst.spec
new file mode 100644
index 0000000..abe6797
--- /dev/null
+++ b/R-CRAN-Rmst.spec
@@ -0,0 +1,54 @@
+%global packname Rmst
+%global packver 0.0.3
+%global rlibdir /usr/local/lib/R/library
+
+Name: R-CRAN-%{packname}
+Version: 0.0.3
+Release: 1%{?dist}%{?buildtag}
+Summary: Computerized Adaptive Multistage Testing
+
+License: GPL (>= 3)
+URL: https://cran.r-project.org/package=%{packname}
+Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
+
+
+BuildRequires: R-devel >= 3.6.0
+Requires: R-core >= 3.6.0
+BuildArch: noarch
+BuildRequires: R-CRAN-ggplot2
+BuildRequires: R-CRAN-Rata
+BuildRequires: R-CRAN-reshape2
+BuildRequires: R-CRAN-Rirt
+BuildRequires: R-stats
+Requires: R-CRAN-ggplot2
+Requires: R-CRAN-Rata
+Requires: R-CRAN-reshape2
+Requires: R-CRAN-Rirt
+Requires: R-stats
+
+%description
+Assemble the panels of computerized adaptive multistage testing by the
+bottom-up and the top-down approach, and simulate the administration of
+the assembled panels. The full documentation and tutorials are at
+<https://github.com/xluo11/Rmst>. Reference: Luo and Kim (2018)
+<doi:10.1111/jedm.12174>.
+
+%prep
+%setup -q -c -n %{packname}
+
+find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
+[ -d %{packname}/src ] && find %{packname}/src -type f -exec \
+ sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true
+
+%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
+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..128d11d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+f223184fbddc2714dc47b3bcc6784e6d Rmst_0.0.3.tar.gz