File R-randomizeBE.spec of Package R-randomizeBE
#
# spec file for package R-randomizeBE
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%global packname randomizeBE
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 0.3.2
Release: 0
Summary: Function to Create a Random List for Crossover Studies
License: GPL-2.0+
Group: Development/Libraries/Other
Url: http://cran.r-project.org/web/packages/%{packname}
Source0: http://cran.r-project.org/src/contrib/%{packname}_0.3-2.tar.gz
BuildRequires: R-base-devel
BuildRequires: fdupes
BuildRequires: texinfo
# Package suggestions
BuildRequires: texlive
Requires: R-base
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#
%if 0%{?suse_version} <= 1220 && 0%{?suse_version} != 1110
BuildRequires: texlive-fonts-extra
%endif
# Package suggestions, not required to build
#BuildRequires:
%description
Contains a function to randomize subjects, patients in groups of sequences
(treatment sequences). If a blocksize is given, the randomization will be
done within blocks. The randomization may be controlled by a
Wald-Wolfowitz runs test. Functions to obtain the p-value of that test are
included. The package is mainly intended for randomization of
bioequivalence studies but may be used also for other clinical crossover
studies. Contains two helper functions sequences() and williams() to get
the sequences of commonly used designs in BE studies.
%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
%defattr(-, root, root, -)
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%changelog
%changelog