%global __brp_check_rpaths %{nil}
%global packname MOQA
%global packver 2.0.0
%global rlibdir /usr/local/lib/R/library
Name: R-CRAN-%{packname}
Version: 2.0.0
Release: 2%{?dist}%{?buildtag}
Summary: Basic Quality Data Assurance for Epidemiological Research
License: AGPL-3
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-psych
BuildRequires: R-CRAN-gplots
BuildRequires: R-grid
BuildRequires: R-CRAN-readr
Requires: R-CRAN-psych
Requires: R-CRAN-gplots
Requires: R-grid
Requires: R-CRAN-readr
%description
With the provision of several tools and templates the MOSAIC project
(DFG-Grant Number HO 1937/2-1) supports the implementation of a central
data management in epidemiological research projects. The 'MOQA' package
enables epidemiologists with none or low experience in R to generate basic
data quality reports for a wide range of application scenarios. See
for more information. Please read and cite
the corresponding open access publication (using the former package-name)
in METHODS OF INFORMATION IN MEDICINE by M. Bialke, H. Rau, T.
Schwaneberg, R. Walk, T. Bahls and W. Hoffmann (2017)
.
.
%prep
%setup -q -c -n %{packname}
find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
[ -d %{packname}/src ] && find %{packname}/src -type f -exec \
sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true
%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}