File R-quantreg.spec of Package R-quantreg
#
# spec file for package R-quantreg
#
# Copyright (c) 2018 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 https://bugs.opensuse.org/
#
%global packname quantreg
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 5.36
Release: 0
Summary: Quantile Regression
License: GPL-2.0-or-later
Group: Development/Libraries/Other
URL: https://cran.r-project.org/package=%{packname}
Source: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildRequires: R-Matrix
BuildRequires: R-MatrixModels
BuildRequires: R-SparseM
BuildRequires: R-base-devel >= 2.6
BuildRequires: R-graphics
BuildRequires: R-methods
BuildRequires: R-stats
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gcc-fortran
BuildRequires: texinfo
BuildRequires: texlive
Requires: R-Matrix
Requires: R-MatrixModels
Requires: R-SparseM
Requires: R-base >= 2.6
Requires: R-graphics
Requires: R-methods
Requires: R-stats
%description
Estimation and inference methods for models of conditional quantiles:
Linear and nonlinear parametric and non-parametric (total variation
penalized) models for conditional quantiles of a univariate response and
several methods for handling censored survival data. Portfolio selection
methods based on expected shortfall risk are also included.
%package doc
Summary: Documentation for %{name}
Group: Documentation/Other
Requires: %{name} = %{version}
%description doc
Documentation, help files, and demos for %{name}.
%prep
%setup -q -c -n %{packname}
# fix wrong-file-end-of-line-encoding
sed -i 's/\r$//' quantreg/demo/*.R
%build
#Not needed
%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
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/ChangeLog
%doc %{rlibdir}/%{packname}/FAQ
%doc %{rlibdir}/%{packname}/TODO
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/chlog
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta/
%{rlibdir}/%{packname}/R/
%{rlibdir}/%{packname}/data/
%{rlibdir}/%{packname}/help/
%{rlibdir}/%{packname}/libs/
%files doc
%doc %{rlibdir}/%{packname}/doc/
%doc %{rlibdir}/%{packname}/html/
%doc %{rlibdir}/%{packname}/demo/
%changelog