diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-08-15 19:25:19 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-08-15 19:25:19 +0000 |
commit | a84f007fca40f2645377f2748ddb7c59628c0774 (patch) | |
tree | 647b57b3ca15cbfeab9760919dcfb0b72e47753a | |
parent | fafdfa9fb378758b4b6c71f75e01d920cc279cad (diff) |
automatic import of R-CRAN-dagitty
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-dagitty.spec | 70 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 72 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..495329f --- /dev/null +++ b/R-CRAN-dagitty.spec @@ -0,0 +1,70 @@ +%global __brp_check_rpaths %{nil} +%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 |