%global __brp_check_rpaths %{nil}
%global packname  EffectStars
%global packver   1.9-1
%global rlibdir   /usr/local/lib/R/library

Name:             R-CRAN-%{packname}
Version:          1.9.1
Release:          3%{?dist}%{?buildtag}
Summary:          Visualization of Categorical Response Models

License:          GPL-2
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-VGAM 
Requires:         R-CRAN-VGAM 

%description
Notice: The package EffectStars2 provides a more up-to-date implementation
of effect stars! EffectStars provides functions to visualize regression
models with categorical response as proposed by Tutz and Schauberger
(2013) <doi:10.1080/10618600.2012.701379>. The effects of the variables
are plotted with star plots in order to allow for an optical impression of
the fitted model.

%prep
%setup -q -c -n %{packname}


%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

%files
%{rlibdir}/%{packname}