Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Sep 16, 2024
1 parent a23f65f commit 91fcb93
Show file tree
Hide file tree
Showing 31 changed files with 832 additions and 129 deletions.
4 changes: 2 additions & 2 deletions specs/R-CRAN-CFtime.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 CFtime
%global packver 1.4.0
%global packver 1.4.1
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.4.0
Version: 1.4.1
Release: 1%{?dist}%{?buildtag}
Summary: Using CF-Compliant Calendars with Climate Projection Data

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

Name: R-CRAN-%{packname}
Version: 0.11.1
Release: 1%{?dist}%{?buildtag}
Summary: Cohort Generation for the OMOP Common Data Model

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


BuildRequires: R-devel >= 3.6.0
Requires: R-core >= 3.6.0
BuildArch: noarch
BuildRequires: R-CRAN-DatabaseConnector >= 5.0.0
BuildRequires: R-CRAN-ParallelLogger >= 3.0.0
BuildRequires: R-CRAN-readr >= 2.1.0
BuildRequires: R-CRAN-stringi >= 1.7.6
BuildRequires: R-CRAN-SqlRender >= 1.11.1
BuildRequires: R-CRAN-R6
BuildRequires: R-CRAN-checkmate
BuildRequires: R-CRAN-digest
BuildRequires: R-CRAN-dplyr
BuildRequires: R-CRAN-lubridate
BuildRequires: R-methods
BuildRequires: R-CRAN-rlang
BuildRequires: R-CRAN-RJSONIO
BuildRequires: R-CRAN-jsonlite
BuildRequires: R-CRAN-ResultModelManager
BuildRequires: R-CRAN-tibble
Requires: R-CRAN-DatabaseConnector >= 5.0.0
Requires: R-CRAN-ParallelLogger >= 3.0.0
Requires: R-CRAN-readr >= 2.1.0
Requires: R-CRAN-stringi >= 1.7.6
Requires: R-CRAN-SqlRender >= 1.11.1
Requires: R-CRAN-R6
Requires: R-CRAN-checkmate
Requires: R-CRAN-digest
Requires: R-CRAN-dplyr
Requires: R-CRAN-lubridate
Requires: R-methods
Requires: R-CRAN-rlang
Requires: R-CRAN-RJSONIO
Requires: R-CRAN-jsonlite
Requires: R-CRAN-ResultModelManager
Requires: R-CRAN-tibble

%description
Generate cohorts and subsets using an Observational Medical Outcomes
Partnership (OMOP) Common Data Model (CDM) Database. Cohorts are defined
using 'CIRCE' (<https://github.com/ohdsi/circe-be>) or SQL compatible with
'SqlRender' (<https://github.com/OHDSI/SqlRender>).

%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-IsoplotR.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 IsoplotR
%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: Statistical Toolbox for Radiometric Geochronology

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

Name: R-CRAN-%{packname}
Version: 3.2.1
Version: 3.2.2
Release: 1%{?dist}%{?buildtag}
Summary: Generalized Latent Markov Models

Expand Down
78 changes: 78 additions & 0 deletions specs/R-CRAN-PytrendsLongitudinalR.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 PytrendsLongitudinalR
%global packver 0.1.3
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.1.3
Release: 1%{?dist}%{?buildtag}
Summary: Create Longitudinal Google Trends Data

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-lubridate
BuildRequires: R-CRAN-jsonlite
BuildRequires: R-CRAN-reticulate
BuildRequires: R-utils
Requires: R-CRAN-lubridate
Requires: R-CRAN-jsonlite
Requires: R-CRAN-reticulate
Requires: R-utils

%description
'Google Trends' provides cross-sectional and time-series data on searches,
but lacks readily available longitudinal data. Researchers, who want to
create longitudinal 'Google Trends' on their own, face practical
challenges, such as normalized counts that make it difficult to combine
cross-sectional and time-series data and limitations in data formats and
timelines that limit data granularity over extended time periods. This
package addresses these issues and enables researchers to generate
longitudinal 'Google Trends' data. This package is built on 'pytrends', a
Python library that acts as the unofficial 'Google Trends API' to collect
'Google Trends' data. As long as the 'Google Trends API', 'pytrends' and
all their dependencies are working, this package will work. During
testing, we noticed that for the same input (keyword, topic, data_format,
timeline), the output index can vary from time to time. Besides, if the
keyword is not very popular, then the resulting dataset will contain a lot
of zeros, which will greatly affect the final result. While this package
has no control over the accuracy or quality of 'Google Trends' data, once
the data is created, this package coverts it to longitudinal data. In
addition, the user may encounter a 429 Too Many Requests error when using
cross_section() and time_series() to collect 'Google Trends' data. This
error indicates that the user has exceeded the rate limits set by the
'Google Trends API'. For more information about the 'Google Trends API' -
'pytrends', visit <https://pypi.org/project/pytrends/>.

%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}
65 changes: 65 additions & 0 deletions specs/R-CRAN-RandomWalker.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname RandomWalker
%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: Generate Random Walks Compatible with the 'tidyverse'

License: MIT + file LICENSE
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
BuildArch: noarch
BuildRequires: R-CRAN-dplyr
BuildRequires: R-CRAN-tidyr
BuildRequires: R-CRAN-purrr
BuildRequires: R-CRAN-rlang
BuildRequires: R-CRAN-patchwork
BuildRequires: R-CRAN-NNS
Requires: R-CRAN-dplyr
Requires: R-CRAN-tidyr
Requires: R-CRAN-purrr
Requires: R-CRAN-rlang
Requires: R-CRAN-patchwork
Requires: R-CRAN-NNS

%description
Generates random walks of various types by providing a set of functions
that are compatible with the 'tidyverse'. The functions provided in the
package make it simple to create random walks with a variety of
properties, such as how many simulations to run, how many steps to take,
and the distribution of random walk itself.

%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-RcppFastAD.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 RcppFastAD
%global packver 0.0.2
%global packver 0.0.3
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.0.2
Version: 0.0.3
Release: 1%{?dist}%{?buildtag}
Summary: 'Rcpp' Bindings to 'FastAD' Auto-Differentiation

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

Name: R-CRAN-%{packname}
Version: 1.2.6
Version: 1.2.7
Release: 1%{?dist}%{?buildtag}
Summary: Spacekime Analytics, Time Complexity and Inferential Uncertainty

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

Name: R-CRAN-%{packname}
Version: 0.1
Release: 1%{?dist}%{?buildtag}
Summary: The LIC for T Distribution Regression Analysis

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-stats
Requires: R-stats

%description
This comprehensive toolkit for T-distribution regression, known as the
analysis of "TLIC" (T-distribution Linear regression Integrated
Corrector), adopts ordinary least squares method and assumes that errors
follow a T-distribution. This approach gives it an advantage when dealing
with small samples or non-normal error distributions, and can provide more
robust parameter estimation and hypothesis testing results.The philosophy
of the package is described in Guo G. (2020)
<doi:10.1080/02664763.2022.2053949>.

%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}
10 changes: 8 additions & 2 deletions specs/R-CRAN-TestFunctions.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 TestFunctions
%global packver 0.2.1
%global packver 0.2.2
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.2.1
Version: 0.2.2
Release: 1%{?dist}%{?buildtag}
Summary: Test Functions for Simulation Experiments and Evaluating Optimization and Emulation Algorithms

Expand All @@ -17,6 +17,12 @@ Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz
BuildRequires: R-devel
Requires: R-core
BuildArch: noarch
BuildRequires: R-CRAN-ContourFunctions
BuildRequires: R-CRAN-numDeriv
BuildRequires: R-CRAN-rmarkdown
Requires: R-CRAN-ContourFunctions
Requires: R-CRAN-numDeriv
Requires: R-CRAN-rmarkdown

%description
Test functions are often used to test computer code. They are used in
Expand Down
Loading

0 comments on commit 91fcb93

Please sign in to comment.