Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Oct 22, 2024
1 parent 1cf5609 commit acdb65a
Show file tree
Hide file tree
Showing 46 changed files with 1,473 additions and 156 deletions.
4 changes: 2 additions & 2 deletions specs/R-CRAN-AccelStab.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 AccelStab
%global packver 2.0.1
%global packver 2.0.2
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 2.0.1
Version: 2.0.2
Release: 1%{?dist}%{?buildtag}
Summary: Accelerated Stability Kinetic Modelling

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

Name: R-CRAN-%{packname}
Version: 1.0.4
Release: 1%{?dist}%{?buildtag}
Summary: Clustering with Overlaps

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


BuildRequires: R-devel >= 3.2.3
Requires: R-core >= 3.2.3

%description
Provide functions for overlaps clustering, fuzzy clustering and
interval-valued data manipulation. The package implement the following
algorithms: OKM (Overlapping Kmeans) from Cleuziou, G. (2007)
<doi:10.1109/icpr.2008.4761079> ; NEOKM (Non-exhaustive overlapping
Kmeans) from Whang, J. J., Dhillon, I. S., and Gleich, D. F. (2015)
<doi:10.1137/1.9781611974010.105> ; Fuzzy Cmeans from Bezdek, J. C. (1981)
<doi:10.1007/978-1-4757-0450-1> ; Fuzzy I-Cmeans from de A.T. De Carvalho,
F. (2005) <doi:10.1016/j.patrec.2006.08.014>.

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

Name: R-CRAN-%{packname}
Version: 1.1.4.2
Release: 1%{?dist}%{?buildtag}
Summary: "Risk Model Regression and Analysis with Complex Non-Linear Models"

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
BuildRequires: R-CRAN-data.table
BuildRequires: R-parallel
BuildRequires: R-stats
BuildRequires: R-utils
BuildRequires: R-CRAN-rlang
BuildRequires: R-CRAN-callr
BuildRequires: R-CRAN-stringr
BuildRequires: R-CRAN-processx
BuildRequires: R-CRAN-RcppEigen
BuildRequires: R-CRAN-testthat
Requires: R-CRAN-Rcpp
Requires: R-CRAN-data.table
Requires: R-parallel
Requires: R-stats
Requires: R-utils
Requires: R-CRAN-rlang
Requires: R-CRAN-callr
Requires: R-CRAN-stringr
Requires: R-CRAN-processx

%description
Performs survival analysis using general non-linear models. Risk models
can be the sum or product of terms. Each term is the product of
exponential/linear functions of covariates. Additionally sub-terms can be
defined as a sum of exponential, linear threshold, and step functions. Cox
Proportional hazards
<https://en.wikipedia.org/wiki/Proportional_hazards_model>, Poisson
<https://en.wikipedia.org/wiki/Poisson_regression>, and Fine-Grey
competing risks
<https://www.publichealth.columbia.edu/research/population-health-methods/competing-risk-analysis>
regression are supported. This work was sponsored by NASA Grant
80NSSC19M0161 through a subcontract from the National Council on Radiation
Protection and Measurements (NCRP). The computing for this project was
performed on the Beocat Research Cluster at Kansas State University, which
is funded in part by NSF grants CNS-1006860, EPS-1006860, EPS-0919443,
ACI-1440548, CHE-1726332, and NIH P20GM113109.

%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-FuzzyPovertyR.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 FuzzyPovertyR
%global packver 3.0.1
%global packver 3.0.2
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 3.0.1
Version: 3.0.2
Release: 1%{?dist}%{?buildtag}
Summary: Estimation of Fuzzy Poverty Measures

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

Name: R-CRAN-%{packname}
Version: 0.1.1
Release: 1%{?dist}%{?buildtag}
Summary: Interface for Large Language Model APIs in R

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-CRAN-httr2
BuildRequires: R-CRAN-purrr
BuildRequires: R-CRAN-rlang
Requires: R-CRAN-httr2
Requires: R-CRAN-purrr
Requires: R-CRAN-rlang

%description
A unified interface to interact with various Large Language Model (LLM)
APIs such as 'OpenAI' (see <https://platform.openai.com/docs/quickstart>
for details), 'Anthropic' (see
<https://docs.anthropic.com/en/api/getting-started> for details), 'Groq'
(see <https://console.groq.com/docs/api-reference> for details), and
'Together AI' (see <https://docs.together.ai/docs/quickstart> for
details). Allows users to configure API parameters, send messages, and
retrieve responses seamlessly within R.

%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}
87 changes: 87 additions & 0 deletions specs/R-CRAN-MECfda.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname MECfda
%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: Scalar-on-Function Regression with Measurement Error Correction

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-stats
BuildRequires: R-CRAN-stringr
BuildRequires: R-CRAN-lme4
BuildRequires: R-CRAN-quantreg
BuildRequires: R-splines
BuildRequires: R-CRAN-dplyr
BuildRequires: R-CRAN-MASS
BuildRequires: R-CRAN-Matrix
BuildRequires: R-CRAN-gss
BuildRequires: R-CRAN-corpcor
BuildRequires: R-CRAN-fda
BuildRequires: R-CRAN-magrittr
BuildRequires: R-methods
BuildRequires: R-CRAN-nlme
BuildRequires: R-CRAN-glme
BuildRequires: R-CRAN-mgcv
Requires: R-stats
Requires: R-CRAN-stringr
Requires: R-CRAN-lme4
Requires: R-CRAN-quantreg
Requires: R-splines
Requires: R-CRAN-dplyr
Requires: R-CRAN-MASS
Requires: R-CRAN-Matrix
Requires: R-CRAN-gss
Requires: R-CRAN-corpcor
Requires: R-CRAN-fda
Requires: R-CRAN-magrittr
Requires: R-methods
Requires: R-CRAN-nlme
Requires: R-CRAN-glme
Requires: R-CRAN-mgcv

%description
Solve scalar-on-function linear models, including generalized linear mixed
effect model and quantile linear regression model, and bias correction
estimation methods due to measurement error. Details about the measurement
error bias correction methods, see Luan et al. (2023)
<doi:10.48550/arXiv.2305.12624>, Tekwe et al. (2022)
<doi:10.1093/biostatistics/kxac017>, Zhang et al. (2023)
<doi:10.5705/ss.202021.0246>, Tekwe et al. (2019) <doi:10.1002/sim.8179>.

%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 acdb65a

Please sign in to comment.