diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-04-17 04:28:24 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-04-17 04:28:24 +0000 |
commit | 7e0b975d23dc203e880016d328231e20caafb633 (patch) | |
tree | a489b3fcf2cefa5021205ba009c32a9837da4683 | |
parent | abc525ae9a3ac781bccc26b23766b2a29731dcf9 (diff) |
automatic import of R-CRAN-awsf36
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-aws.spec | 60 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 62 insertions, 0 deletions
@@ -0,0 +1 @@ +/aws_2.5-1.tar.gz diff --git a/R-CRAN-aws.spec b/R-CRAN-aws.spec new file mode 100644 index 0000000..e06b301 --- /dev/null +++ b/R-CRAN-aws.spec @@ -0,0 +1,60 @@ +%global __brp_check_rpaths %{nil} +%global packname aws +%global packver 2.5-1 +%global rlibdir /usr/local/lib/R/library + +Name: R-CRAN-%{packname} +Version: 2.5.1 +Release: 1%{?dist}%{?buildtag} +Summary: Adaptive Weights Smoothing + +License: GPL (>= 2) +URL: https://cran.r-project.org/package=%{packname} +Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz + + +BuildRequires: R-devel >= 3.4.0 +Requires: R-core >= 3.4.0 +BuildRequires: R-CRAN-awsMethods >= 1.1.1 +BuildRequires: R-methods +BuildRequires: R-CRAN-gsl +Requires: R-CRAN-awsMethods >= 1.1.1 +Requires: R-methods +Requires: R-CRAN-gsl + +%description +We provide a collection of R-functions implementing adaptive smoothing +procedures in 1D, 2D and 3D. This includes the Propagation-Separation +Approach to adaptive smoothing, the Intersecting Confidence Intervals +(ICI), variational approaches and a non-local means filter. The package is +described in detail in Polzehl J, Papafitsoros K, Tabelow K (2020). +Patch-Wise Adaptive Weights Smoothing in R. Journal of Statistical +Software, 95(6), 1-27. <doi:10.18637/jss.v095.i06>, Usage of the package +in neuroimaging is illustrated in Polzehl and Tabelow (2019), Magnetic +Resonance Brain Imaging, Appendix A, Springer, Use R! Series. +<doi:10.1007/978-3-030-29184-6_6>. + +%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 +test $(gcc -dumpversion) -ge 10 && mkdir -p ~/.R && echo "FFLAGS=$(R CMD config FFLAGS) -fallow-argument-mismatch" > ~/.R/Makevars +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 @@ +2fe05990b8b6f97e40848f9239ee52a2 aws_2.5-1.tar.gz |