Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Jul 28, 2024
1 parent 503eeab commit 44197c7
Show file tree
Hide file tree
Showing 23 changed files with 825 additions and 27 deletions.
69 changes: 69 additions & 0 deletions specs/R-CRAN-ATQ.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname ATQ
%global packver 0.2.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.2.0
Release: 1%{?dist}%{?buildtag}
Summary: Alert Time Quality - Evaluating Timely Epidemic Metrics

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


BuildRequires: R-devel >= 2.10
Requires: R-core >= 2.10
BuildArch: noarch
BuildRequires: R-CRAN-dplyr
BuildRequires: R-CRAN-purrr
BuildRequires: R-CRAN-zoo
BuildRequires: R-CRAN-ggplot2
BuildRequires: R-CRAN-gridExtra
BuildRequires: R-CRAN-rlang
BuildRequires: R-CRAN-scales
Requires: R-CRAN-dplyr
Requires: R-CRAN-purrr
Requires: R-CRAN-zoo
Requires: R-CRAN-ggplot2
Requires: R-CRAN-gridExtra
Requires: R-CRAN-rlang
Requires: R-CRAN-scales

%description
Provides tools for evaluating timely epidemic detection models within
school absenteeism-based surveillance systems. Introduces the concept of
alert time quality as an evaluation metric. Includes functions to simulate
populations, epidemics, and alert metrics associated with epidemic spread
using population census data. The methods are based on research published
in Vanderkruk et al. (2023) <doi:10.1186/s12889-023-15747-z> and Jarvis et
al. (2019) <doi:10.1186/s12889-019-7521-7>.

%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}
78 changes: 78 additions & 0 deletions specs/R-CRAN-BEAMR.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname BEAMR
%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: Bootstrap Evaluation of Association Matrices

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


BuildRequires: R-devel >= 2.10
Requires: R-core >= 2.10
BuildArch: noarch
BuildRequires: R-CRAN-dplyr
BuildRequires: R-CRAN-ggmosaic
BuildRequires: R-CRAN-ggplot2
BuildRequires: R-CRAN-ggpubr
BuildRequires: R-CRAN-logistf
BuildRequires: R-CRAN-magrittr
BuildRequires: R-CRAN-MASS
BuildRequires: R-CRAN-purrr
BuildRequires: R-CRAN-rlist
BuildRequires: R-stats
BuildRequires: R-CRAN-stringr
BuildRequires: R-CRAN-survival
BuildRequires: R-CRAN-survminer
Requires: R-CRAN-dplyr
Requires: R-CRAN-ggmosaic
Requires: R-CRAN-ggplot2
Requires: R-CRAN-ggpubr
Requires: R-CRAN-logistf
Requires: R-CRAN-magrittr
Requires: R-CRAN-MASS
Requires: R-CRAN-purrr
Requires: R-CRAN-rlist
Requires: R-stats
Requires: R-CRAN-stringr
Requires: R-CRAN-survival
Requires: R-CRAN-survminer

%description
A bootstrap-based approach to integrate multiple forms of high dimensional
genomic data with multiple clinical endpoints. This method is used to
find clinically meaningful groups of genomic features, such as genes or
pathways. A manuscript describing this method is in preparation.

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

Name: R-CRAN-%{packname}
Version: 1.0.1
Release: 1%{?dist}%{?buildtag}
Summary: EAP Scoring in Exploratory FA Solutions with Correlated Residuals

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


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

%description
Obtaining Bayes Expected A Posteriori (EAP) individual score estimates
based on linear and non-linear extended Exploratoy Factor Analysis
solutions that include a correlated-residual structure.

%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-Require.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 Require
%global packver 0.3.1
%global packver 1.0.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.3.1
Version: 1.0.0
Release: 1%{?dist}%{?buildtag}
Summary: Installing and Loading R Packages for Reproducible Workflows

Expand All @@ -19,10 +19,12 @@ Requires: R-core >= 4.0
BuildArch: noarch
BuildRequires: R-CRAN-data.table >= 1.10.4
BuildRequires: R-methods
BuildRequires: R-CRAN-sys
BuildRequires: R-tools
BuildRequires: R-utils
Requires: R-CRAN-data.table >= 1.10.4
Requires: R-methods
Requires: R-CRAN-sys
Requires: R-tools
Requires: R-utils

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

Name: R-CRAN-%{packname}
Version: 0.2.0
Version: 0.2.1
Release: 1%{?dist}%{?buildtag}
Summary: Utilities for Parsing and Plotting Activities

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

Name: R-CRAN-%{packname}
Version: 1.1
Release: 1%{?dist}%{?buildtag}
Summary: Bagging Bandwidth Selection in Kernel Density and Regression Estimation

License: GPL-3
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-mclust
BuildRequires: R-CRAN-foreach
BuildRequires: R-parallel
BuildRequires: R-CRAN-doParallel
BuildRequires: R-CRAN-kedd
BuildRequires: R-stats
BuildRequires: R-CRAN-sm
BuildRequires: R-CRAN-nor1mix
BuildRequires: R-CRAN-misc3d
Requires: R-CRAN-Rcpp >= 1.0.3
Requires: R-CRAN-mclust
Requires: R-CRAN-foreach
Requires: R-parallel
Requires: R-CRAN-doParallel
Requires: R-CRAN-kedd
Requires: R-stats
Requires: R-CRAN-sm
Requires: R-CRAN-nor1mix
Requires: R-CRAN-misc3d

%description
Bagging bandwidth selection methods for the Parzen-Rosenblatt and
Nadaraya-Watson estimators. These bandwidth selectors can achieve greater
statistical precision than their non-bagged counterparts while being
computationally fast. See Barreiro-Ures et al. (2020)
<doi:10.1093/biomet/asaa092> and Barreiro-Ures et al. (2021)
<doi:10.48550/arXiv.2105.04134>.

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

Name: R-CRAN-%{packname}
Version: 0.1.10
Release: 1%{?dist}%{?buildtag}
Summary: Easily Compile and Call Inline C Functions

License: MIT + file LICENSE
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-methods
Requires: R-methods

%description
Compile inline 'C' code and easily call with automatically generated
wrapper functions. By allowing user-defined headers and compilation flags
(preprocessor, compiler and linking flags) the user can configure
optimization options and linking to third party libraries. Multiple
functions may be defined in a single block of code - which may be defined
in a string or a path to a source file.

%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 44197c7

Please sign in to comment.