diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-02-19 23:04:43 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2021-02-19 23:04:43 +0000 |
commit | baf8aaf53c46dfc51da92bfa1a60333ff771cc0d (patch) | |
tree | 567cb8a6a79ca9d7cb3f8f49db0ac4bd0804f3bc | |
parent | fafdfa9fb378758b4b6c71f75e01d920cc279cad (diff) |
automatic import of R-CRAN-dagittyf34
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-dagitty.spec | 69 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 71 insertions, 0 deletions
@@ -0,0 +1 @@ +/dagitty_0.3-1.tar.gz diff --git a/R-CRAN-dagitty.spec b/R-CRAN-dagitty.spec new file mode 100644 index 0000000..586af0b --- /dev/null +++ b/R-CRAN-dagitty.spec @@ -0,0 +1,69 @@ +%global packname dagitty +%global packver 0.3-1 +%global rlibdir /usr/local/lib/R/library + +Name: R-CRAN-%{packname} +Version: 0.3.1 +Release: 1%{?dist}%{?buildtag} +Summary: Graphical Analysis of Structural Causal Models + +License: GPL-2 +URL: https://cran.r-project.org/package=%{packname} +Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz + + +BuildRequires: R-devel >= 3.0.0 +Requires: R-core >= 3.0.0 +BuildArch: noarch +BuildRequires: R-CRAN-V8 +BuildRequires: R-CRAN-jsonlite +BuildRequires: R-CRAN-boot +BuildRequires: R-CRAN-MASS +BuildRequires: R-methods +BuildRequires: R-grDevices +BuildRequires: R-stats +BuildRequires: R-utils +BuildRequires: R-graphics +Requires: R-CRAN-V8 +Requires: R-CRAN-jsonlite +Requires: R-CRAN-boot +Requires: R-CRAN-MASS +Requires: R-methods +Requires: R-grDevices +Requires: R-stats +Requires: R-utils +Requires: R-graphics + +%description +A port of the web-based software 'DAGitty', available at +<http://dagitty.net>, for analyzing structural causal models (also known +as directed acyclic graphs or DAGs). This package computes covariate +adjustment sets for estimating causal effects, enumerates instrumental +variables, derives testable implications (d-separation and vanishing +tetrads), generates equivalent models, and includes a simple facility for +data simulation. + +%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 +# 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} @@ -0,0 +1 @@ +fd7c152d2dd743ec50f65c6b82522ca6 dagitty_0.3-1.tar.gz |