Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Dec 10, 2024
1 parent 4fcbe5a commit 7b56952
Show file tree
Hide file tree
Showing 36 changed files with 810 additions and 101 deletions.
76 changes: 76 additions & 0 deletions specs/R-CRAN-AuxSurvey.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname AuxSurvey
%global packver 0.9
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.9
Release: 1%{?dist}%{?buildtag}
Summary: Survey Analysis with Auxiliary Discretized Variables

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


BuildRequires: R-devel
Requires: R-core
BuildArch: noarch
BuildRequires: R-CRAN-mgcv
BuildRequires: R-CRAN-rstanarm
BuildRequires: R-stats
BuildRequires: R-CRAN-survey
BuildRequires: R-CRAN-gtools
BuildRequires: R-CRAN-coda
BuildRequires: R-CRAN-BART
BuildRequires: R-CRAN-dplyr
BuildRequires: R-CRAN-stringr
BuildRequires: R-CRAN-gridExtra
BuildRequires: R-CRAN-rlang
Requires: R-CRAN-mgcv
Requires: R-CRAN-rstanarm
Requires: R-stats
Requires: R-CRAN-survey
Requires: R-CRAN-gtools
Requires: R-CRAN-coda
Requires: R-CRAN-BART
Requires: R-CRAN-dplyr
Requires: R-CRAN-stringr
Requires: R-CRAN-gridExtra
Requires: R-CRAN-rlang

%description
Probability surveys often use auxiliary continuous data from
administrative records, but the utility of this data is diminished when it
is discretized for confidentiality. We provide a set of survey estimators
to make full use of information from the discretized variables. See
Williams, S.Z., Zou, J., Liu, Y., Si, Y., Galea, S. and Chen, Q. (2024)
<doi:10.1002/sim.10270> for details.

%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}
4 changes: 2 additions & 2 deletions specs/R-CRAN-BFS.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 BFS
%global packver 0.5.11
%global packver 0.5.12
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.5.11
Version: 0.5.12
Release: 1%{?dist}%{?buildtag}
Summary: Get Data from the Swiss Federal Statistical Office

Expand Down
4 changes: 2 additions & 2 deletions specs/R-CRAN-ClusterVAR.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 ClusterVAR
%global packver 0.0.7
%global packver 0.0.8
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.0.7
Version: 0.0.8
Release: 1%{?dist}%{?buildtag}
Summary: Fitting Latent Class Vector-Autoregressive (VAR) Models

Expand Down
4 changes: 2 additions & 2 deletions specs/R-CRAN-CopernicusDEM.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 CopernicusDEM
%global packver 1.0.4
%global packver 1.0.5
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.0.4
Version: 1.0.5
Release: 1%{?dist}%{?buildtag}
Summary: Copernicus Digital Elevation Models

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

Name: R-CRAN-%{packname}
Version: 0.1.0
Release: 1%{?dist}%{?buildtag}
Summary: A Flexible Model for Record Linkage

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


BuildRequires: R-devel >= 4.4.0
Requires: R-core >= 4.4.0
BuildRequires: R-CRAN-Matrix >= 1.7
BuildRequires: R-CRAN-progress >= 1.2.3
BuildRequires: R-CRAN-Rcpp >= 1.0.13
BuildRequires: R-CRAN-testit >= 0.13
Requires: R-CRAN-Matrix >= 1.7
Requires: R-CRAN-progress >= 1.2.3
Requires: R-CRAN-Rcpp >= 1.0.13
Requires: R-CRAN-testit >= 0.13

%description
Implementation of the Stochastic Expectation Maximisation (StEM) approach
to Record Linkage described in the paper by K. Robach, S. L. van der Pas,
M. A. van de Wiel and M. H. Hof (2024, <doi:10.48550/arXiv.2407.06835>);
see 'citation("FlexRL")' for details. This is a record linkage method, for
finding the common set of records among 2 data sources based on Partially
Identifying Variables (PIVs) available in both sources. It includes
modelling of dynamic Partially Identifying Variables (e.g. postal code)
that may evolve over time and registration errors (missing values and
mistakes in the registration). Low memory footprint.

%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}
8 changes: 4 additions & 4 deletions specs/R-CRAN-GaussSuppression.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 GaussSuppression
%global packver 0.9.0
%global packver 0.9.2
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.9.0
Version: 0.9.2
Release: 1%{?dist}%{?buildtag}
Summary: Tabular Data Suppression using Gaussian Elimination

Expand All @@ -17,13 +17,13 @@ Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
BuildRequires: R-devel
Requires: R-core
BuildArch: noarch
BuildRequires: R-CRAN-SSBtools >= 1.5.4
BuildRequires: R-CRAN-SSBtools >= 1.6.0
BuildRequires: R-CRAN-RegSDC >= 0.7.0
BuildRequires: R-CRAN-Matrix
BuildRequires: R-stats
BuildRequires: R-methods
BuildRequires: R-utils
Requires: R-CRAN-SSBtools >= 1.5.4
Requires: R-CRAN-SSBtools >= 1.6.0
Requires: R-CRAN-RegSDC >= 0.7.0
Requires: R-CRAN-Matrix
Requires: R-stats
Expand Down
4 changes: 2 additions & 2 deletions specs/R-CRAN-PakPC.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 PakPC
%global packver 0.2.0
%global packver 0.3.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.2.0
Version: 0.3.0
Release: 1%{?dist}%{?buildtag}
Summary: 'shiny' App to Analyze Pakistan's Population Census Data

Expand Down
19 changes: 15 additions & 4 deletions specs/R-CRAN-PerformanceAnalytics.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname PerformanceAnalytics
%global packver 2.0.4
%global packver 2.0.8
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 2.0.4
Release: 3%{?dist}%{?buildtag}
Version: 2.0.8
Release: 1%{?dist}%{?buildtag}
Summary: Econometric Tools for Performance and Risk Analysis

License: GPL-2 | GPL-3
Expand Down Expand Up @@ -36,16 +37,26 @@ functions will work with P&L or price data where possible.
%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: 4 additions & 2 deletions specs/R-CRAN-REDCapTidieR.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 REDCapTidieR
%global packver 1.2.0
%global packver 1.2.1
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.2.0
Version: 1.2.1
Release: 1%{?dist}%{?buildtag}
Summary: Extract 'REDCap' Databases into Tidy 'Tibble's

Expand Down Expand Up @@ -36,6 +36,7 @@ BuildRequires: R-CRAN-pillar
BuildRequires: R-CRAN-vctrs
BuildRequires: R-CRAN-readr
BuildRequires: R-stats
BuildRequires: R-CRAN-forcats
Requires: R-CRAN-REDCapR >= 1.2.0
Requires: R-CRAN-checkmate
Requires: R-CRAN-cli
Expand All @@ -55,6 +56,7 @@ Requires: R-CRAN-pillar
Requires: R-CRAN-vctrs
Requires: R-CRAN-readr
Requires: R-stats
Requires: R-CRAN-forcats

%description
Convert 'REDCap' exports into tidy tables for easy handling of 'REDCap'
Expand Down
80 changes: 80 additions & 0 deletions specs/R-CRAN-SBMTrees.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname SBMTrees
%global packver 1.1
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.1
Release: 1%{?dist}%{?buildtag}
Summary: Sequential Imputation with Bayesian Trees Mixed-Effects Models for Longitudinal Data

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


BuildRequires: R-devel >= 4.1.0
Requires: R-core >= 4.1.0
BuildRequires: R-CRAN-Rcpp
BuildRequires: R-CRAN-lme4
BuildRequires: R-CRAN-Matrix
BuildRequires: R-CRAN-arm
BuildRequires: R-CRAN-dplyr
BuildRequires: R-CRAN-mvtnorm
BuildRequires: R-CRAN-sn
BuildRequires: R-CRAN-tidyr
BuildRequires: R-CRAN-mice
BuildRequires: R-CRAN-nnet
BuildRequires: R-CRAN-RcppArmadillo
BuildRequires: R-CRAN-RcppDist
BuildRequires: R-CRAN-RcppProgress
Requires: R-CRAN-Rcpp
Requires: R-CRAN-lme4
Requires: R-CRAN-Matrix
Requires: R-CRAN-arm
Requires: R-CRAN-dplyr
Requires: R-CRAN-mvtnorm
Requires: R-CRAN-sn
Requires: R-CRAN-tidyr
Requires: R-CRAN-mice
Requires: R-CRAN-nnet

%description
Implements a sequential imputation framework using Bayesian Mixed-Effects
Trees ('SBMTrees') for handling missing data in longitudinal studies. The
package supports a variety of models, including non-linear relationships
and non-normal random effects and residuals, leveraging Dirichlet Process
priors for increased flexibility. Key features include handling Missing at
Random (MAR) longitudinal data, imputation of both covariates and
outcomes, and generating posterior predictive samples for further
analysis. The methodology is designed for applications in epidemiology,
biostatistics, and other fields requiring robust handling of missing data
in longitudinal settings.

%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}
Loading

0 comments on commit 7b56952

Please sign in to comment.