summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2021-01-12 01:30:53 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2021-01-12 01:30:54 +0000
commit2f0c2616795dc4acd9c08fc93c824825185d1150 (patch)
treede47b03407ca080886108ca980633515952d57d4
parent4c1df07f61bf9d522c7e9c163cd23f252a4d920a (diff)
automatic import of R-CRAN-aws
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-aws.spec11
-rw-r--r--sources2
3 files changed, 10 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 46b4dba..b5a7646 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
/aws_2.4-2.tar.gz
/aws_2.4-3.tar.gz
/aws_2.5.tar.gz
+/aws_2.5-1.tar.gz
diff --git a/R-CRAN-aws.spec b/R-CRAN-aws.spec
index 51b9805..a94915e 100644
--- a/R-CRAN-aws.spec
+++ b/R-CRAN-aws.spec
@@ -1,9 +1,9 @@
%global packname aws
-%global packver 2.5
+%global packver 2.5-1
%global rlibdir /usr/local/lib/R/library
Name: R-CRAN-%{packname}
-Version: 2.5
+Version: 2.5.1
Release: 1%{?dist}%{?buildtag}
Summary: Adaptive Weights Smoothing
@@ -29,16 +29,20 @@ Approach to adaptive smoothing, the Intersecting Confidence Intervals
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 MR imaging is illustrated in Polzehl and Tabelow (2019), Magnetic
+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
@@ -48,6 +52,7 @@ 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
diff --git a/sources b/sources
index 742ba6c..9a588b5 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-604984b64722813f5541560868550413 aws_2.5.tar.gz
+2fe05990b8b6f97e40848f9239ee52a2 aws_2.5-1.tar.gz