diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-09-19 14:14:54 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2022-09-19 14:14:54 +0000 |
commit | eb6784c61d4ef93525e75a7449742b12523aa222 (patch) | |
tree | a6d530fdf43395830e846f2d19fcf350d4f62cca | |
parent | cd74197a95a939c578797e8a3908377cf3ee8f04 (diff) |
automatic import of R-CRAN-CPGLIB
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-CPGLIB.spec | 52 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 54 insertions, 0 deletions
@@ -0,0 +1 @@ +/CPGLIB_1.1.0.tar.gz diff --git a/R-CRAN-CPGLIB.spec b/R-CRAN-CPGLIB.spec new file mode 100644 index 0000000..484ed13 --- /dev/null +++ b/R-CRAN-CPGLIB.spec @@ -0,0 +1,52 @@ +%global __brp_check_rpaths %{nil} +%global packname CPGLIB +%global packver 1.1.0 +%global rlibdir /usr/local/lib/R/library + +Name: R-CRAN-%{packname} +Version: 1.1.0 +Release: 1%{?dist}%{?buildtag} +Summary: Competing Proximal Gradients Library + +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 +BuildRequires: R-CRAN-Rcpp >= 1.0.3 +BuildRequires: R-CRAN-RcppArmadillo +Requires: R-CRAN-Rcpp >= 1.0.3 + +%description +Functions to generate ensembles of generalized linear models using +competing proximal gradients. The optimal sparsity and diversity tuning +parameters are selected via an alternating grid search. + +%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} @@ -0,0 +1 @@ +0f8af1e91574948e7ce5fd49f277573d CPGLIB_1.1.0.tar.gz |