Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Nov 20, 2024
1 parent 9c6fade commit 8deca77
Show file tree
Hide file tree
Showing 52 changed files with 812 additions and 425 deletions.
4 changes: 2 additions & 2 deletions specs/R-CRAN-CDsampling.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 CDsampling
%global packver 0.1.1
%global packver 0.1.2
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.1.1
Version: 0.1.2
Release: 1%{?dist}%{?buildtag}
Summary: 'CDsampling': Constraint Sampling in Paid Research Studies

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

Name: R-CRAN-%{packname}
Version: 3.0.0
Release: 1%{?dist}%{?buildtag}
Summary: Covariate Specific Treatment Effect (CSTE) Curve

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.4
BuildRequires: R-CRAN-fda
BuildRequires: R-splines
BuildRequires: R-CRAN-survival
BuildRequires: R-CRAN-locpol
BuildRequires: R-CRAN-dfoptim
Requires: R-CRAN-Rcpp >= 1.0.4
Requires: R-CRAN-fda
Requires: R-splines
Requires: R-CRAN-survival
Requires: R-CRAN-locpol
Requires: R-CRAN-dfoptim

%description
A uniform statistical inferential tool in making individualized treatment
decisions, which implements the methods of Ma et al.
(2017)<DOI:10.1177/0962280214541724> and Guo et al.
(2021)<DOI:10.1080/01621459.2020.1865167>. It uses a flexible
semiparametric modeling strategy for heterogeneous treatment effect
estimation in high-dimensional settings and can gave valid confidence
bands. Based on it, one can find the subgroups of patients that benefit
from each treatment, thereby making individualized treatment selection.

%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-EFAfactors.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 EFAfactors
%global packver 1.1.0
%global packver 1.1.1
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.1.0
Version: 1.1.1
Release: 1%{?dist}%{?buildtag}
Summary: Determining the Number of Factors in Exploratory Factor Analysis

Expand Down
9 changes: 4 additions & 5 deletions specs/R-CRAN-HMMRel.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 HMMRel
%global packver 0.1.0
%global packver 0.1.1
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.1.0
Version: 0.1.1
Release: 1%{?dist}%{?buildtag}
Summary: Hidden Markov Models for Reliability and Maintenance

Expand All @@ -29,9 +29,8 @@ based on the Baum-Welch algorithm. Classical structures such as K-out-of-N
systems and Shock models are illustrated. Finally, the maintenance of the
system is considered in the HMM context and two functions for new
preventive maintenance strategies are considered. Maintenance efficiency
is measured in terms of expected cost. Maintenance efficiency is measured
in terms of expected cost. Methods are described in Gamiz, Limnios, and
Segovia-Garcia (2023) <doi:10.1016/j.ejor.2022.05.006>.
is measured in terms of expected cost. Methods are described in Gamiz,
Limnios, and Segovia-Garcia (2023) <doi:10.1016/j.ejor.2022.05.006>.

%prep
%setup -q -c -n %{packname}
Expand Down
4 changes: 2 additions & 2 deletions specs/R-CRAN-HelpersMG.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 HelpersMG
%global packver 6.2
%global packver 6.3
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 6.2
Version: 6.3
Release: 1%{?dist}%{?buildtag}
Summary: Tools for Environmental Analyses, Ecotoxicology and Various R Functions

Expand Down
70 changes: 70 additions & 0 deletions specs/R-CRAN-LFM.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname LFM
%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: Laplace Factor Model Analysis and Evaluation

License: MIT + file LICENSE
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
BuildRequires: R-stats
BuildRequires: R-CRAN-FarmTest
BuildRequires: R-CRAN-MASS
BuildRequires: R-CRAN-SOPC
BuildRequires: R-CRAN-LaplacesDemon
BuildRequires: R-CRAN-matrixcalc
BuildRequires: R-CRAN-relliptical
Requires: R-stats
Requires: R-CRAN-FarmTest
Requires: R-CRAN-MASS
Requires: R-CRAN-SOPC
Requires: R-CRAN-LaplacesDemon
Requires: R-CRAN-matrixcalc
Requires: R-CRAN-relliptical

%description
Enables the generation of Laplace factor models across diverse Laplace
distributions and facilitates the application of Sparse Online Principal
Component (SOPC), Incremental Principal Component (IPC), Parallel
Principal Component (PPC), Sparse Approximate Principal Component (SAPC),
Standard Principal Component (SPC), and Farm Test methods to these models.
Evaluates the efficacy of these methods within the context of Laplace
factor models by scrutinizing parameter estimation accuracy, mean square
error, and the degree of sparsity.

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

Name: R-CRAN-%{packname}
Version: 1.1.0
Version: 2.0.0
Release: 1%{?dist}%{?buildtag}
Summary: Land Surface Temperature Retrieval for Landsat 8

Expand All @@ -16,8 +17,8 @@ Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
BuildRequires: R-devel >= 3.5.0
Requires: R-core >= 3.5.0
BuildArch: noarch
BuildRequires: R-CRAN-raster
Requires: R-CRAN-raster
BuildRequires: R-CRAN-terra
Requires: R-CRAN-terra

%description
Calculates Land Surface Temperature from Landsat band 10 and 11. Revision
Expand Down Expand Up @@ -49,6 +50,8 @@ 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' {} \;

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

Name: R-CRAN-%{packname}
Version: 0.3.0
Version: 0.4.0
Release: 1%{?dist}%{?buildtag}
Summary: Synthesise and Correlate Rating-Scale Data
Summary: Synthesise and Correlate Likert Scale and Related Rating-Scale Data

License: MIT + file LICENSE
URL: https://cran.r-project.org/package=%{packname}
Expand All @@ -25,11 +25,12 @@ Requires: R-CRAN-gtools
Requires: R-CRAN-Rcpp

%description
Synthesise rating-scale data with predefined first & second moments (mean
& standard deviation) and, optionally, correlate multiple vectors with
predefined correlation matrix. Also generate synthetic rating-scale data
with predefined Cronbach's Alpha, or generate rating-scale items from a
predefined scale.
Synthesise Likert scale and related rating-scale data with predefined
first and second moments (mean and standard deviation), and, optionally,
correlate multiple vectors using a predefined correlation matrix.
Additionally, generate synthetic rating-scale items with a predefined
Cronbach's Alpha, or create rating-scale items based on a predefined
summated scale.

%prep
%setup -q -c -n %{packname}
Expand Down
4 changes: 2 additions & 2 deletions specs/R-CRAN-LongDat.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 LongDat
%global packver 1.1.2
%global packver 1.1.3
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.1.2
Version: 1.1.3
Release: 1%{?dist}%{?buildtag}
Summary: A Tool for 'Covariate'-Sensitive Longitudinal Analysis on 'omics' Data

Expand Down
Loading

0 comments on commit 8deca77

Please sign in to comment.