Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Jun 1, 2024
1 parent 146f9f6 commit 69570b1
Show file tree
Hide file tree
Showing 45 changed files with 725 additions and 218 deletions.
20 changes: 10 additions & 10 deletions specs/R-CRAN-CodelistGenerator.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname CodelistGenerator
%global packver 2.2.3
%global packver 3.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 2.2.3
Version: 3.0
Release: 1%{?dist}%{?buildtag}
Summary: Identify Relevant Clinical Codes and Evaluate Their Use

Expand All @@ -22,37 +22,37 @@ BuildRequires: R-CRAN-checkmate >= 2.0.0
BuildRequires: R-CRAN-magrittr >= 2.0.0
BuildRequires: R-CRAN-glue >= 1.5.0
BuildRequires: R-CRAN-stringr >= 1.4.0
BuildRequires: R-CRAN-CDMConnector >= 1.3.0
BuildRequires: R-CRAN-tidyselect >= 1.2.0
BuildRequires: R-CRAN-tidyr >= 1.2.0
BuildRequires: R-CRAN-DBI >= 1.1.0
BuildRequires: R-CRAN-dplyr >= 1.1.0
BuildRequires: R-CRAN-rlang >= 1.0.0
BuildRequires: R-CRAN-PatientProfiles >= 0.3.0
BuildRequires: R-CRAN-omopgenerics >= 0.0.2
BuildRequires: R-CRAN-duckdb
BuildRequires: R-CRAN-PatientProfiles >= 1.0.0
BuildRequires: R-CRAN-visOmopResults >= 0.3.0
BuildRequires: R-CRAN-omopgenerics >= 0.2.0
BuildRequires: R-CRAN-purrr
BuildRequires: R-CRAN-lubridate
BuildRequires: R-CRAN-RJSONIO
BuildRequires: R-CRAN-vctrs
BuildRequires: R-CRAN-lifecycle
Requires: R-CRAN-cli >= 3.1.0
Requires: R-CRAN-checkmate >= 2.0.0
Requires: R-CRAN-magrittr >= 2.0.0
Requires: R-CRAN-glue >= 1.5.0
Requires: R-CRAN-stringr >= 1.4.0
Requires: R-CRAN-CDMConnector >= 1.3.0
Requires: R-CRAN-tidyselect >= 1.2.0
Requires: R-CRAN-tidyr >= 1.2.0
Requires: R-CRAN-DBI >= 1.1.0
Requires: R-CRAN-dplyr >= 1.1.0
Requires: R-CRAN-rlang >= 1.0.0
Requires: R-CRAN-PatientProfiles >= 0.3.0
Requires: R-CRAN-omopgenerics >= 0.0.2
Requires: R-CRAN-duckdb
Requires: R-CRAN-PatientProfiles >= 1.0.0
Requires: R-CRAN-visOmopResults >= 0.3.0
Requires: R-CRAN-omopgenerics >= 0.2.0
Requires: R-CRAN-purrr
Requires: R-CRAN-lubridate
Requires: R-CRAN-RJSONIO
Requires: R-CRAN-vctrs
Requires: R-CRAN-lifecycle

%description
Generate a candidate code list for the Observational Medical Outcomes
Expand Down
4 changes: 2 additions & 2 deletions specs/R-CRAN-Kira.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname Kira
%global packver 1.0.1
%global packver 1.0.2
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.0.1
Version: 1.0.2
Release: 1%{?dist}%{?buildtag}
Summary: Machine Learning

Expand Down
77 changes: 77 additions & 0 deletions specs/R-CRAN-MSTest.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname MSTest
%global packver 0.1.2
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.1.2
Release: 1%{?dist}%{?buildtag}
Summary: Hypothesis Testing for Markov Switching Models

License: GPL (>= 2)
URL: https://cran.r-project.org/package=%{packname}
Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz


BuildRequires: R-devel >= 4.0.0
Requires: R-core >= 4.0.0
BuildRequires: R-CRAN-Rcpp >= 1.0.1
BuildRequires: R-stats
BuildRequires: R-CRAN-rlang
BuildRequires: R-CRAN-nloptr
BuildRequires: R-CRAN-numDeriv
BuildRequires: R-CRAN-pracma
BuildRequires: R-CRAN-foreach
BuildRequires: R-CRAN-GenSA
BuildRequires: R-CRAN-pso
BuildRequires: R-CRAN-GA
BuildRequires: R-graphics
BuildRequires: R-CRAN-RcppArmadillo
Requires: R-CRAN-Rcpp >= 1.0.1
Requires: R-stats
Requires: R-CRAN-rlang
Requires: R-CRAN-nloptr
Requires: R-CRAN-numDeriv
Requires: R-CRAN-pracma
Requires: R-CRAN-foreach
Requires: R-CRAN-GenSA
Requires: R-CRAN-pso
Requires: R-CRAN-GA
Requires: R-graphics

%description
Implementation of hypothesis testing procedures described in Hansen (1992)
<doi:10.1002/jae.3950070506>, Carrasco, Hu, & Ploberger (2014)
<doi:10.3982/ECTA8609>, Dufour & Luger (2017)
<doi:10.1080/07474938.2017.1307548>, and Rodriguez Rondon & Dufour (2022)
<https://grodriguezrondon.com/files/RodriguezRondon_Dufour_MonteCarlo_LikelihoodRatioTest_MarkovSwitchingModels.pdf>
that can be used to identify the number of regimes in Markov switching
models.

%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}
6 changes: 2 additions & 4 deletions specs/R-CRAN-MacBehaviour.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname MacBehaviour
%global packver 1.1.3
%global packver 1.2.1
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.1.3
Version: 1.2.1
Release: 1%{?dist}%{?buildtag}
Summary: Behavioural Studies of Large Language Models

Expand All @@ -19,11 +19,9 @@ Requires: R-core >= 3.5.0
BuildArch: noarch
BuildRequires: R-CRAN-openxlsx
BuildRequires: R-CRAN-httr
BuildRequires: R-CRAN-dplyr
BuildRequires: R-CRAN-rjson
Requires: R-CRAN-openxlsx
Requires: R-CRAN-httr
Requires: R-CRAN-dplyr
Requires: R-CRAN-rjson

%description
Expand Down
4 changes: 2 additions & 2 deletions specs/R-CRAN-Petersen.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname Petersen
%global packver 2023.12.1
%global packver 2024.6.1
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 2023.12.1
Version: 2024.6.1
Release: 1%{?dist}%{?buildtag}
Summary: Estimators for Two-Sample Capture-Recapture Studies

Expand Down
65 changes: 65 additions & 0 deletions specs/R-CRAN-QGA.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname QGA
%global packver 1.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.0
Release: 1%{?dist}%{?buildtag}
Summary: Quantum Genetic Algorithm

License: GPL (>= 2)
URL: https://cran.r-project.org/package=%{packname}
Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz


BuildRequires: R-devel >= 3.5.0
Requires: R-core >= 3.5.0
BuildArch: noarch

%description
Function that implements the Quantum Genetic Algorithm, first proposed by
Han and Kim in 2000. This is an R implementation of the 'python'
application developed by Lahoz-Beltra
(<https://github.com/ResearchCodesHub/QuantumGeneticAlgorithms>). Each
optimization problem is represented as a maximization one, where each
solution is a sequence of (qu)bits. Following the quantum paradigm, these
qubits are in a superposition state: when measuring them, they collapse in
a 0 or 1 state. After measurement, the fitness of the solution is
calculated as in usual genetic algorithms. The evolution at each iteration
is oriented by the application of two quantum gates to the amplitudes of
the qubits: (1) a rotation gate (always); (2) a Pauli-X gate (optionally).
The rotation is based on the theta angle values: higher values allow a
quicker evolution, and lower values avoid local maxima. The Pauli-X gate
is equivalent to the classical mutation operator and determines the swap
between alfa and beta amplitudes of a given qubit. The package has been
developed in such a way as to permit a complete separation between the
engine, and the particular problem subject to combinatorial optimization.

%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}
16 changes: 5 additions & 11 deletions specs/R-CRAN-QuickJSR.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname QuickJSR
%global packver 1.1.3
%global packver 1.2.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.1.3
Version: 1.2.0
Release: 1%{?dist}%{?buildtag}
Summary: Interface for the 'QuickJS' Lightweight 'JavaScript' Engine

Expand All @@ -16,17 +16,11 @@ Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz

BuildRequires: R-devel
Requires: R-core
BuildRequires: R-CRAN-jsonlite
BuildRequires: R-CRAN-R6
BuildRequires: R-CRAN-Rcpp
Requires: R-CRAN-jsonlite
Requires: R-CRAN-R6
Requires: R-CRAN-Rcpp

%description
An 'R' interface to the 'QuickJS' portable 'JavaScript' engine. The engine
is bundled entirely within the package, requiring no external system
dependencies beyond a 'C' compiler.
An 'R' interface to the 'QuickJS' portable 'JavaScript' engine. The
engine and all 'R' to 'JavaScript' interopability is bundled within the
package, requiring no dependencies beyond a 'C' compiler.

%prep
%setup -q -c -n %{packname}
Expand Down
4 changes: 2 additions & 2 deletions specs/R-CRAN-RItools.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname RItools
%global packver 0.3-3
%global packver 0.3-4
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.3.3
Version: 0.3.4
Release: 1%{?dist}%{?buildtag}
Summary: Randomization Inference Tools

Expand Down
14 changes: 6 additions & 8 deletions specs/R-CRAN-ROCnReg.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname ROCnReg
%global packver 1.0-8
%global packver 1.0-9
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.0.8
Version: 1.0.9
Release: 1%{?dist}%{?buildtag}
Summary: ROC Curve Inference with and without Covariates

Expand All @@ -17,7 +17,6 @@ Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
BuildRequires: R-devel
Requires: R-core
BuildArch: noarch
BuildRequires: R-CRAN-spatstat >= 2.0.0
BuildRequires: R-stats
BuildRequires: R-grDevices
BuildRequires: R-graphics
Expand All @@ -26,12 +25,11 @@ BuildRequires: R-CRAN-np
BuildRequires: R-CRAN-Matrix
BuildRequires: R-CRAN-moments
BuildRequires: R-CRAN-nor1mix
BuildRequires: R-CRAN-spatstat.geom
BuildRequires: R-CRAN-spatstat.univar
BuildRequires: R-CRAN-lattice
BuildRequires: R-CRAN-MASS
BuildRequires: R-CRAN-pbivnorm
BuildRequires: R-parallel
Requires: R-CRAN-spatstat >= 2.0.0
Requires: R-stats
Requires: R-grDevices
Requires: R-graphics
Expand All @@ -40,7 +38,7 @@ Requires: R-CRAN-np
Requires: R-CRAN-Matrix
Requires: R-CRAN-moments
Requires: R-CRAN-nor1mix
Requires: R-CRAN-spatstat.geom
Requires: R-CRAN-spatstat.univar
Requires: R-CRAN-lattice
Requires: R-CRAN-MASS
Requires: R-CRAN-pbivnorm
Expand All @@ -56,12 +54,12 @@ optimal cutpoints utilizing several criteria. Based on Erkanli, A. et al.
<doi:10.1111/1467-9884.00350>; Gu, J. et al. (2008)
<doi:10.1002/sim.3366>; Inacio de Carvalho, V. et al. (2013)
<doi:10.1214/13-BA825>; Inacio de Carvalho, V., and Rodriguez-Alvarez,
M.X. (2018) <arXiv:1806.00473>; Janes, H., and Pepe, M.S. (2009)
M.X. (2022) <doi:10.1214/21-STS839>; Janes, H., and Pepe, M.S. (2009)
<doi:10.1093/biomet/asp002>; Pepe, M.S. (1998)
<http://www.jstor.org/stable/2534001?seq=1>; Rodriguez-Alvarez, M.X. et
al. (2011a) <doi:10.1016/j.csda.2010.07.018>; Rodriguez-Alvarez, M.X. et
al. (2011a) <doi:10.1007/s11222-010-9184-1>. Please see Rodriguez-Alvarez,
M.X. and Inacio, V. (20208) <arXiv:2003.13111> for more details.
M.X. and Inacio, V. (2021) <doi:10.32614/RJ-2021-066> for more details.

%prep
%setup -q -c -n %{packname}
Expand Down
8 changes: 4 additions & 4 deletions specs/R-CRAN-RcppArmadillo.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname RcppArmadillo
%global packver 0.12.8.3.0
%global packver 0.12.8.4.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.12.8.3.0
Version: 0.12.8.4.0
Release: 1%{?dist}%{?buildtag}
Summary: 'Rcpp' Integration for the 'Armadillo' Templated Linear Algebra Library

Expand All @@ -16,11 +16,11 @@ Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz

BuildRequires: R-devel >= 3.3.0
Requires: R-core >= 3.3.0
BuildRequires: R-CRAN-Rcpp >= 0.11.0
BuildRequires: R-CRAN-Rcpp >= 1.0.8
BuildRequires: R-stats
BuildRequires: R-utils
BuildRequires: R-methods
Requires: R-CRAN-Rcpp >= 0.11.0
Requires: R-CRAN-Rcpp >= 1.0.8
Requires: R-stats
Requires: R-utils
Requires: R-methods
Expand Down
Loading

0 comments on commit 69570b1

Please sign in to comment.