Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Nov 27, 2024
1 parent 44fd3c2 commit 2d7c132
Show file tree
Hide file tree
Showing 47 changed files with 612 additions and 237 deletions.
4 changes: 2 additions & 2 deletions specs/R-CRAN-AIscreenR.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 AIscreenR
%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: AI Screening Tools in R for Systematic Reviewing

Expand Down
14 changes: 6 additions & 8 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 3.3.0
%global packver 3.3.1
%global rlibdir /usr/local/lib/R/library

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

Expand All @@ -19,7 +19,6 @@ Requires: R-core >= 3.5.0
BuildArch: noarch
BuildRequires: R-CRAN-cli >= 3.1.0
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-tidyselect >= 1.2.0
Expand All @@ -28,15 +27,14 @@ BuildRequires: R-CRAN-DBI >= 1.1.0
BuildRequires: R-CRAN-dplyr >= 1.1.0
BuildRequires: R-CRAN-PatientProfiles >= 1.1.0
BuildRequires: R-CRAN-rlang >= 1.0.0
BuildRequires: R-CRAN-visOmopResults >= 0.3.0
BuildRequires: R-CRAN-omopgenerics >= 0.2.2
BuildRequires: R-CRAN-visOmopResults >= 0.5.0
BuildRequires: R-CRAN-omopgenerics >= 0.4.0
BuildRequires: R-CRAN-purrr
BuildRequires: R-CRAN-lubridate
BuildRequires: R-CRAN-vctrs
BuildRequires: R-CRAN-RJSONIO
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-tidyselect >= 1.2.0
Expand All @@ -45,8 +43,8 @@ Requires: R-CRAN-DBI >= 1.1.0
Requires: R-CRAN-dplyr >= 1.1.0
Requires: R-CRAN-PatientProfiles >= 1.1.0
Requires: R-CRAN-rlang >= 1.0.0
Requires: R-CRAN-visOmopResults >= 0.3.0
Requires: R-CRAN-omopgenerics >= 0.2.2
Requires: R-CRAN-visOmopResults >= 0.5.0
Requires: R-CRAN-omopgenerics >= 0.4.0
Requires: R-CRAN-purrr
Requires: R-CRAN-lubridate
Requires: R-CRAN-vctrs
Expand Down
16 changes: 8 additions & 8 deletions specs/R-CRAN-CohortCharacteristics.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 CohortCharacteristics
%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: Summarise and Visualise Characteristics of Patients in the OMOP CDM

Expand All @@ -17,10 +17,10 @@ Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
BuildRequires: R-devel >= 2.10
Requires: R-core >= 2.10
BuildArch: noarch
BuildRequires: R-CRAN-CDMConnector >= 1.3.2
BuildRequires: R-CRAN-CDMConnector >= 1.6.0
BuildRequires: R-CRAN-PatientProfiles >= 1.2.0
BuildRequires: R-CRAN-visOmopResults >= 0.4.0
BuildRequires: R-CRAN-omopgenerics >= 0.3.0
BuildRequires: R-CRAN-visOmopResults >= 0.5.0
BuildRequires: R-CRAN-omopgenerics >= 0.4.0
BuildRequires: R-CRAN-dplyr
BuildRequires: R-CRAN-tidyr
BuildRequires: R-CRAN-rlang
Expand All @@ -29,10 +29,10 @@ BuildRequires: R-CRAN-stringr
BuildRequires: R-CRAN-snakecase
BuildRequires: R-CRAN-lifecycle
BuildRequires: R-CRAN-purrr
Requires: R-CRAN-CDMConnector >= 1.3.2
Requires: R-CRAN-CDMConnector >= 1.6.0
Requires: R-CRAN-PatientProfiles >= 1.2.0
Requires: R-CRAN-visOmopResults >= 0.4.0
Requires: R-CRAN-omopgenerics >= 0.3.0
Requires: R-CRAN-visOmopResults >= 0.5.0
Requires: R-CRAN-omopgenerics >= 0.4.0
Requires: R-CRAN-dplyr
Requires: R-CRAN-tidyr
Requires: R-CRAN-rlang
Expand Down
8 changes: 4 additions & 4 deletions specs/R-CRAN-CohortConstructor.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 CohortConstructor
%global packver 0.3.2
%global packver 0.3.3
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.3.2
Version: 0.3.3
Release: 1%{?dist}%{?buildtag}
Summary: Build and Manipulate Study Cohorts Using a Common Data Model

Expand All @@ -20,7 +20,7 @@ BuildArch: noarch
BuildRequires: R-CRAN-dbplyr >= 2.5.0
BuildRequires: R-CRAN-CDMConnector >= 1.3.1
BuildRequires: R-CRAN-PatientProfiles >= 1.2.0
BuildRequires: R-CRAN-omopgenerics >= 0.2.1
BuildRequires: R-CRAN-omopgenerics >= 0.4.0
BuildRequires: R-CRAN-checkmate
BuildRequires: R-CRAN-cli
BuildRequires: R-CRAN-clock
Expand All @@ -34,7 +34,7 @@ BuildRequires: R-utils
Requires: R-CRAN-dbplyr >= 2.5.0
Requires: R-CRAN-CDMConnector >= 1.3.1
Requires: R-CRAN-PatientProfiles >= 1.2.0
Requires: R-CRAN-omopgenerics >= 0.2.1
Requires: R-CRAN-omopgenerics >= 0.4.0
Requires: R-CRAN-checkmate
Requires: R-CRAN-cli
Requires: R-CRAN-clock
Expand Down
61 changes: 61 additions & 0 deletions specs/R-CRAN-DIRMR.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname DIRMR
%global packver 0.5.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.5.0
Release: 1%{?dist}%{?buildtag}
Summary: Distributed Imputation for Random Effects Models with Missing Responses

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
BuildRequires: R-CRAN-MASS
BuildRequires: R-CRAN-lava
BuildRequires: R-CRAN-mvtnorm
Requires: R-CRAN-MASS
Requires: R-CRAN-lava
Requires: R-CRAN-mvtnorm

%description
By adding over-relaxation factor to PXEM (Parameter Expanded Expectation
Maximization) method, the MOPXEM (Monotonically Overrelaxed Parameter
Expanded Expectation Maximization) method is obtained. Compare it with the
existing EM (Expectation-Maximization)-like methods. Then, distribute and
process five methods and compare them, achieving good performance in
convergence speed and result quality.The philosophy of the package is
described in Guo G. (2022) <doi:10.1007/s00180-022-01270-z>.

%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: 6 additions & 2 deletions specs/R-CRAN-DIZutils.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 DIZutils
%global packver 0.1.2
%global packver 0.1.3
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.1.2
Version: 0.1.3
Release: 1%{?dist}%{?buildtag}
Summary: Utilities for 'DIZ' R Package Development

Expand All @@ -21,19 +21,23 @@ BuildRequires: R-CRAN-DBI >= 1.1.0
BuildRequires: R-CRAN-data.table
BuildRequires: R-CRAN-DIZtools
BuildRequires: R-CRAN-Hmisc
BuildRequires: R-CRAN-httr
BuildRequires: R-CRAN-psych
BuildRequires: R-CRAN-RJDBC
BuildRequires: R-CRAN-RJSONIO
BuildRequires: R-CRAN-RPostgres
BuildRequires: R-CRAN-RPresto
BuildRequires: R-CRAN-xml2
Requires: R-CRAN-DBI >= 1.1.0
Requires: R-CRAN-data.table
Requires: R-CRAN-DIZtools
Requires: R-CRAN-Hmisc
Requires: R-CRAN-httr
Requires: R-CRAN-psych
Requires: R-CRAN-RJDBC
Requires: R-CRAN-RJSONIO
Requires: R-CRAN-RPostgres
Requires: R-CRAN-RPresto
Requires: R-CRAN-xml2

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

Name: R-CRAN-%{packname}
Version: 1.0.0
Version: 1.0.1
Release: 1%{?dist}%{?buildtag}
Summary: Gini Decomposition by Income Sources

Expand Down
8 changes: 4 additions & 4 deletions specs/R-CRAN-ILSAmerge.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 ILSAmerge
%global packver 1.2.5
%global packver 1.3.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.2.5
Version: 1.3.0
Release: 1%{?dist}%{?buildtag}
Summary: Merge and Download International Large-Scale Assessments (ILSA) Data

Expand All @@ -14,8 +14,8 @@ URL: https://cran.r-project.org/package=%{packname}
Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz


BuildRequires: R-devel
Requires: R-core
BuildRequires: R-devel >= 2.10
Requires: R-core >= 2.10
BuildArch: noarch
BuildRequires: R-CRAN-haven
Requires: R-CRAN-haven
Expand Down
75 changes: 75 additions & 0 deletions specs/R-CRAN-MultiTraits.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname MultiTraits
%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: Analyzing and Visualizing Multidimensional Plant Traits

License: GPL-3
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
BuildArch: noarch
BuildRequires: R-CRAN-ggplot2
BuildRequires: R-CRAN-ggtern
BuildRequires: R-CRAN-igraph
BuildRequires: R-CRAN-Hmisc
BuildRequires: R-CRAN-corrplot
BuildRequires: R-CRAN-scatterplot3d
BuildRequires: R-CRAN-vegan
BuildRequires: R-CRAN-ggrepel
Requires: R-CRAN-ggplot2
Requires: R-CRAN-ggtern
Requires: R-CRAN-igraph
Requires: R-CRAN-Hmisc
Requires: R-CRAN-corrplot
Requires: R-CRAN-scatterplot3d
Requires: R-CRAN-vegan
Requires: R-CRAN-ggrepel

%description
Implements analytical methods for multidimensional plant traits, including
Competitors-Stress tolerators-Ruderals strategy analysis using leaf
traits, Leaf-Height-Seed strategy analysis, Niche Periodicity Table
analysis, and Trait Network analysis. Provides functions for data
analysis, visualization, and network metrics calculation. Methods are
based on Grime (1974) <doi:10.1038/250026a0>, Pierce et al. (2017)
<doi:10.1111/1365-2435.12882>, Westoby (1998)
<doi:10.1023/A:1004327224729>, Yang et al. (2022)
<doi:10.1016/j.foreco.2022.120540>, Winemiller et al. (2015)
<doi:10.1111/ele.12462>, He et al. (2020)
<doi:10.1016/j.tree.2020.06.003>.

%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 2d7c132

Please sign in to comment.