%global __brp_check_rpaths %{nil} %global __requires_exclude ^libmpi %global packname cops %global packver 1.3-1 %global rlibdir /usr/local/lib/R/library Name: R-CRAN-%{packname} Version: 1.3.1 Release: 1%{?dist}%{?buildtag} Summary: Cluster Optimized Proximity Scaling License: GPL-2 | GPL-3 URL: https://cran.r-project.org/package=%{packname} Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz BuildRequires: R-devel >= 3.1.2 Requires: R-core >= 3.1.2 BuildArch: noarch BuildRequires: R-CRAN-smacof >= 1.10.4 BuildRequires: R-CRAN-cordillera >= 0.7.2 BuildRequires: R-CRAN-MASS BuildRequires: R-CRAN-minqa BuildRequires: R-CRAN-pso BuildRequires: R-CRAN-scatterplot3d BuildRequires: R-CRAN-NlcOptim BuildRequires: R-CRAN-Rsolnp BuildRequires: R-CRAN-dfoptim BuildRequires: R-CRAN-subplex BuildRequires: R-CRAN-cmaes BuildRequires: R-CRAN-crs BuildRequires: R-CRAN-nloptr BuildRequires: R-CRAN-rgenoud BuildRequires: R-CRAN-GenSA Requires: R-CRAN-smacof >= 1.10.4 Requires: R-CRAN-cordillera >= 0.7.2 Requires: R-CRAN-MASS Requires: R-CRAN-minqa Requires: R-CRAN-pso Requires: R-CRAN-scatterplot3d Requires: R-CRAN-NlcOptim Requires: R-CRAN-Rsolnp Requires: R-CRAN-dfoptim Requires: R-CRAN-subplex Requires: R-CRAN-cmaes Requires: R-CRAN-crs Requires: R-CRAN-nloptr Requires: R-CRAN-rgenoud Requires: R-CRAN-GenSA %description Multidimensional scaling (MDS) methods that aim at pronouncing the clustered appearance of the configuration (Rusch, Mair & Hornik, 2021, ). They achieve this by transforming proximities/distances with power functions and augment the fitting criterion with a clusteredness index, the OPTICS Cordillera (Rusch, Hornik & Mair, 2018, ). There are two variants: One for finding the configuration directly (COPS-C) for ratio, power, interval and non-metric MDS (Borg & Groenen, 2005, ISBN:978-0-387-28981-6), and one for using the augmented fitting criterion to find optimal parameters (P-COPS). The package contains various functions, wrappers, methods and classes for fitting, plotting and displaying different MDS models in a COPS framework like ratio, interval and non-metric MDS for COPS-C and P-COPS with Torgerson scaling (Torgerson, 1958, ISBN:978-0471879459), scaling by majorizing a complex function (SMACOF; de Leeuw, 1977, ), Sammon mapping (Sammon, 1969, ), elastic scaling (McGee, 1966, ), s-stress (Takane, Young & de Leeuw, 1977, ), r-stress (de Leeuw, Groenen & Mair, 2016, ), power stress (Buja & Swayne, 2002 ), restricted power stress, approximate power stress, power elastic scaling, power Sammon mapping (for all Rusch, Mair & Hornik, 2021, ). All of these models can also solely be fit as MDS with power transformations. The package further contains a function for pattern search optimization, the ``Adaptive Luus-Jaakola Algorithm'' (Rusch, Mair & Hornik, 2021,). %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}