diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-02-20 13:52:53 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-02-20 13:52:53 +0000 |
commit | d59de5a201750048dd3c9e6441f61c01698b5ede (patch) | |
tree | 24d6f5d69487a3deb088718609c6ca1a35bc534b | |
parent | 7aec597aff5128d6872bddf166619bd265a6ecb6 (diff) |
automatic import of R-CRAN-logmult
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-logmult.spec | 68 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 70 insertions, 0 deletions
@@ -0,0 +1 @@ +/logmult_0.7.3.tar.gz diff --git a/R-CRAN-logmult.spec b/R-CRAN-logmult.spec new file mode 100644 index 0000000..8f01b29 --- /dev/null +++ b/R-CRAN-logmult.spec @@ -0,0 +1,68 @@ +%global packname logmult +%global packver 0.7.3 +%global rlibdir /usr/local/lib/R/library + +Name: R-CRAN-%{packname} +Version: 0.7.3 +Release: 1%{?dist}%{?buildtag} +Summary: Log-Multiplicative Models, Including Association Models + +License: GPL (>= 2) +URL: https://cran.r-project.org/package=%{packname} +Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz + + +BuildRequires: R-devel +Requires: R-core +BuildArch: noarch +BuildRequires: R-CRAN-gnm >= 1.0.5 +BuildRequires: R-stats +BuildRequires: R-utils +BuildRequires: R-graphics +BuildRequires: R-grDevices +BuildRequires: R-CRAN-qvcalc +Requires: R-CRAN-gnm >= 1.0.5 +Requires: R-stats +Requires: R-utils +Requires: R-graphics +Requires: R-grDevices +Requires: R-CRAN-qvcalc + +%description +Functions to fit log-multiplicative models using 'gnm', with support for +convenient printing, plots, and jackknife/bootstrap standard errors. For +complex survey data, models can be fitted from design objects from the +'survey' package. Currently supported models include UNIDIFF (Erikson & +Goldthorpe), a.k.a. log-multiplicative layer effect model (Xie), and +several association models: Goodman's row-column association models of the +RC(M) and RC(M)-L families with one or several dimensions; two +skew-symmetric association models proposed by Yamaguchi and by van der +Heijden & Mooijaart. Functions allow computing the intrinsic association +coefficient (and therefore the Altham index), including via the Bayes +shrinkage estimator proposed by Zhou; and the RAS/IPF/Deming-Stephan +algorithm. + +%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} @@ -0,0 +1 @@ +3abf789c5a6108356e44466654b0fd2b logmult_0.7.3.tar.gz |