{% set version = '2.3-0' %}
{% set posix = 'm2-' if win else '' %}
{% set native = 'm2w64-' if win else '' %}

package:
  name: r-spam
  version: {{ version|replace("-", "_") }}

source:
  url:
    - {{ cran_mirror }}/src/contrib/spam_{{ version }}.tar.gz
    - {{ cran_mirror }}/src/contrib/Archive/spam/spam_{{ version }}.tar.gz
  sha256: 7c2c8c4e99819c99a2160f5f8d678228c6abc68083f688e5644957bf5f2d96a4

build:
  merge_build_host: True  # [win]
  number: 0
  rpaths:
    - lib/R/lib/
    - lib/

requirements:
  build:
    - {{ compiler('c') }}              # [not win]
    - {{ compiler('m2w64_c') }}        # [win]
    - {{ compiler('fortran') }}        # [not win]
    - {{ compiler('m2w64_fortran') }}  # [win]
    - {{posix}}filesystem        # [win]
    - {{posix}}make
    - {{posix}}sed               # [win]
    - {{posix}}coreutils         # [win]
    - {{posix}}zip               # [win]
  host:
    - r-base
    - r-dotcall64
  run:
    - r-base
    - {{native}}gcc-libs         # [win]
    - r-dotcall64

test:
  commands:
    - $R -e "library('spam')"           # [not win]
    - "\"%R%\" -e \"library('spam')\""  # [win]

about:
  home: https://www.math.uzh.ch/pages/spam/
  license: LGPL-2 | BSD_3_clause
  summary: 'Set of functions for sparse matrix algebra. Differences with other sparse matrix
    packages are: (1) we only support (essentially) one sparse matrix format, (2) based
    on transparent and simple structure(s), (3) tailored for MCMC calculations within
    G(M)RF. (4) and it is fast and scalable (with the extension package spam64). Documentation
    about ''spam'' is provided by vignettes included in this package, see also Furrer
    and Sain (2010) <doi:10.18637/jss.v036.i10>; see ''citation("spam")'' for details.'
  license_family: LGPL
  license_file:
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/LGPL-2'
    - '{{ environ["PREFIX"] }}/lib/R/share/licenses/BSD_3_clause'
    - LICENSE

extra:
  recipe-maintainers:
    - conda-forge/r

# Package: spam
# Type: Package
# Title: SPArse Matrix
# Version: 2.3-0
# Date: 2019-09-13
# Authors@R: c(person("Reinhard", "Furrer", role = c("aut", "cre"), email = "reinhard.furrer@math.uzh.ch"), person("Florian", "Gerber", role = c("aut"), email = "florian.gerber@math.uzh.ch"), person("Roman", "Flury", role = c("aut"), email = "roman.flury@math.uzh.ch"), person("Daniel", "Gerber", role = "ctb", email = "daniel_gerber_2222@hotmail.com"), person("Kaspar", "Moesinger", role = "ctb", email = "kaspar.moesinger@gmail.com"), person("Youcef", "Saad", role = "ctb", comment = "SPARSEKIT http://www-users.cs.umn.edu/~saad/software/SPARSKIT/"), person(c("Esmond", "G."), "Ng", role = "ctb", comment = "Fortran Cholesky routines"), person(c("Barry", "W."), "Peyton", role = "ctb", comment = "Fortran Cholesky routines"), person(c("Joseph", "W.H."), "Liu", role = "ctb", comment = "Fortran Cholesky routines"), person(c("Alan", "D."), "George", role = "ctb", comment = "Fortran Cholesky routines"), person(c("Lehoucq", "B."), "Rich", role = "ctb", comment = "ARPACK"), person(c("Maschhoff"), "Kristi", role = "ctb", comment = "ARPACK"), person(c("Sorensen", "C."), "Danny", role = "ctb", comment = "ARPACK"), person(c("Yang"), "Chao", role = "ctb", comment = "ARPACK"))
# Depends: R (>= 3.1), dotCall64, grid, methods
# Suggests: spam64, fields, SparseM, Matrix, testthat, R.rsp, truncdist, knitr, rmarkdown
# VignetteBuilder: R.rsp, knitr
# Description: Set of functions for sparse matrix algebra. Differences with other sparse matrix packages are: (1) we only support (essentially) one sparse matrix format, (2) based on transparent and simple structure(s), (3) tailored for MCMC calculations within G(M)RF. (4) and it is fast and scalable (with the extension package spam64). Documentation about 'spam' is provided by vignettes included in this package, see also Furrer and Sain (2010) <doi:10.18637/jss.v036.i10>; see 'citation("spam")' for details.
# LazyData: true
# License: LGPL-2 | BSD_3_clause + file LICENSE
# URL: https://www.math.uzh.ch/pages/spam/
# BugReports: https://git.math.uzh.ch/reinhard.furrer/spam/issues
# NeedsCompilation: yes
# Packaged: 2019-09-13 12:28:00 UTC; furrer
# Author: Reinhard Furrer [aut, cre], Florian Gerber [aut], Roman Flury [aut], Daniel Gerber [ctb], Kaspar Moesinger [ctb], Youcef Saad [ctb] (SPARSEKIT http://www-users.cs.umn.edu/~saad/software/SPARSKIT/), Esmond G. Ng [ctb] (Fortran Cholesky routines), Barry W. Peyton [ctb] (Fortran Cholesky routines), Joseph W.H. Liu [ctb] (Fortran Cholesky routines), Alan D. George [ctb] (Fortran Cholesky routines), Lehoucq B. Rich [ctb] (ARPACK), Maschhoff Kristi [ctb] (ARPACK), Sorensen C. Danny [ctb] (ARPACK), Yang Chao [ctb] (ARPACK)
# Maintainer: Reinhard Furrer <reinhard.furrer@math.uzh.ch>
# Repository: CRAN
# Date/Publication: 2019-09-14 21:30:02 UTC
