File R-TUGLab.spec of Package R-TUGLab
# Automatically generated by CRAN2OBS
#
# Spec file for package TUGLab
# This file is auto-generated using information in the package source,
# esp. Description and Summary. Improvements in that area should be
# discussed with upstream.
#
# Copyright (c) 2026 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global packname TUGLab
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.0.1
Release: 0
Summary: A Laboratory for TU Games
Group: Development/Libraries/Other
License: GPL-3
URL: http://cran.r-project.org/web/packages/%{packname}
Source: TUGLab_0.0.1.tar.gz
Requires: R-base
Requires: R-geometry
Requires: R-plotly
Requires: R-rcdd
Requires: R-stringr
Requires: R-volesti
Requires: R-magic
Requires: R-Rcpp
Requires: R-lpSolve
Requires: R-linprog
Requires: R-RcppProgress
Requires: R-ggplot2
Requires: R-scales
Requires: R-httr
Requires: R-jsonlite
Requires: R-magrittr
Requires: R-digest
Requires: R-viridisLite
Requires: R-base64enc
Requires: R-htmltools
Requires: R-htmlwidgets
Requires: R-tidyr
Requires: R-RColorBrewer
Requires: R-dplyr
Requires: R-vctrs
Requires: R-tibble
Requires: R-lazyeval
Requires: R-rlang
Requires: R-crosstalk
Requires: R-purrr
Requires: R-data.table
Requires: R-promises
Requires: R-cli
Requires: R-glue
Requires: R-lifecycle
Requires: R-stringi
Requires: R-RcppEigen
Requires: R-BH
Requires: R-R6
Requires: R-generics
Requires: R-pillar
Requires: R-tidyselect
Requires: R-gtable
Requires: R-isoband
Requires: R-S7
Requires: R-withr
Requires: R-fastmap
Requires: R-knitr
Requires: R-rmarkdown
Requires: R-yaml
Requires: R-curl
Requires: R-mime
Requires: R-openssl
Requires: R-abind
Requires: R-later
Requires: R-otel
Requires: R-farver
Requires: R-labeling
Requires: R-pkgconfig
Requires: R-cpp11
Requires: R-evaluate
Requires: R-highr
Requires: R-xfun
Requires: R-askpass
Requires: R-utf8
Requires: R-bslib
Requires: R-fontawesome
Requires: R-jquerylib
Requires: R-tinytex
Requires: R-sys
Requires: R-cachem
Requires: R-memoise
Requires: R-sass
Requires: R-fs
Requires: R-rappdirs
# %%if 0%%{?sle_version} > 120400 || 0%%{?is_opensuse}
# # Three others commonly needed
# BuildRequires: tex(ae.sty)
# BuildRequires: tex(fancyvrb.sty)
# BuildRequires: tex(inconsolata.sty)
# BuildRequires: tex(natbib.sty)
# %else
# BuildRequires: texlive
# %endif
# BuildRequires: texinfo
BuildRequires: fdupes
BuildRequires: R-base
BuildRequires: R-geometry
BuildRequires: R-plotly
BuildRequires: R-rcdd
BuildRequires: R-stringr
BuildRequires: R-volesti
BuildRequires: R-magic
BuildRequires: R-Rcpp-devel
BuildRequires: R-lpSolve
BuildRequires: R-linprog
BuildRequires: R-RcppProgress
BuildRequires: R-ggplot2
BuildRequires: R-scales
BuildRequires: R-httr
BuildRequires: R-jsonlite
BuildRequires: R-magrittr
BuildRequires: R-digest
BuildRequires: R-viridisLite
BuildRequires: R-base64enc
BuildRequires: R-htmltools
BuildRequires: R-htmlwidgets
BuildRequires: R-tidyr
BuildRequires: R-RColorBrewer
BuildRequires: R-dplyr
BuildRequires: R-vctrs
BuildRequires: R-tibble
BuildRequires: R-lazyeval
BuildRequires: R-rlang
BuildRequires: R-crosstalk
BuildRequires: R-purrr
BuildRequires: R-data.table
BuildRequires: R-promises
BuildRequires: R-cli
BuildRequires: R-glue
BuildRequires: R-lifecycle
BuildRequires: R-stringi
BuildRequires: R-RcppEigen-devel
BuildRequires: R-BH-devel
BuildRequires: R-R6
BuildRequires: R-generics
BuildRequires: R-pillar
BuildRequires: R-tidyselect
BuildRequires: R-gtable
BuildRequires: R-isoband
BuildRequires: R-S7
BuildRequires: R-withr
BuildRequires: R-fastmap
BuildRequires: R-knitr
BuildRequires: R-rmarkdown
BuildRequires: R-yaml
BuildRequires: R-curl
BuildRequires: R-mime
BuildRequires: R-openssl
BuildRequires: R-abind
BuildRequires: R-later
BuildRequires: R-otel
BuildRequires: R-farver
BuildRequires: R-labeling
BuildRequires: R-pkgconfig
BuildRequires: R-cpp11-devel
BuildRequires: R-evaluate
BuildRequires: R-highr
BuildRequires: R-xfun
BuildRequires: R-askpass
BuildRequires: R-utf8
BuildRequires: R-bslib
BuildRequires: R-fontawesome
BuildRequires: R-jquerylib
BuildRequires: R-tinytex
BuildRequires: R-sys
BuildRequires: R-cachem
BuildRequires: R-memoise
BuildRequires: R-sass
BuildRequires: R-fs
BuildRequires: R-rappdirs
%description
Cooperative game theory models decision-making situations in which a
group of agents, called players, may achieve certain benefits by
cooperating to reach an optimal outcome. It has great potential in
different fields, since it offers a scenario to analyze and solve
problems in which cooperation is essential to achieve a common goal.
The 'TUGLab' (Transferable Utility Games Laboratory) R package contains
a set of scripts that could serve as a helpful complement to the books
and other materials used in courses on cooperative game theory, and
also as a practical tool for researchers working in this field. The
'TUGLab' project was born in 2006 trying to highlight the geometrical
aspects of the theory of cooperative games for 3 and 4 players.
'TUGlabWeb' is an online platform on which the basic functions of
'TUGLab' are implemented, and it is being used all over the world as a
resource in degree, master's and doctoral programs. This package is an
extension of the first versions and enables users to work with games in
general (computational restrictions aside). The user can check
properties of games, compute well-known games and calculate several
set-valued and single-valued solutions such as the core, the Shapley
value, the nucleolus or the core-center. The package also illustrates
how the Shapley value flexibly adapts to various cooperative game
settings, including weighted players and coalitions, a priori unions,
and restricted communication structures. In keeping with the original
philosophy of the first versions, special emphasis is placed on the
graphical representation of the solution concepts for 3 and 4 players.
%prep
%setup -q -c -n %{packname}
# the next line is needed, because we build without --clean in between two packages
rm -rf ~/.R
%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
%fdupes -s %{buildroot}%{rlibdir}
#%%check
#%%{_bindir}/R CMD check %%{packname}
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%doc %{rlibdir}/%{packname}/NEWS.md
%{rlibdir}/%{packname}/R
%doc %{rlibdir}/%{packname}/help
%doc %{rlibdir}/%{packname}/html
%changelog