61 lines
1.6 KiB
RPMSpec
61 lines
1.6 KiB
RPMSpec
%global packname orcutt
|
|
%global rlibdir %{_datadir}/R/library
|
|
|
|
Name: R-%{packname}
|
|
Version: 2.3
|
|
Release: 1
|
|
Summary: Estimate Procedure in Case of First Order Autocorrelation
|
|
|
|
License: GPLv2
|
|
URL: https://CRAN.R-project.org/package=%{packname}
|
|
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
BuildRequires: R-devel
|
|
BuildRequires: tex(latex)
|
|
BuildRequires: R-lmtest
|
|
BuildRequires: R-stats
|
|
|
|
%description
|
|
Solve first order autocorrelation problems using an iterative method. This
|
|
procedure estimates both autocorrelation and beta coefficients recursively
|
|
until we reach the convergence (8th decimal as default). The residuals are
|
|
computed after estimating Beta using EGLS approach and Rho is estimated
|
|
using the previous residuals.
|
|
|
|
|
|
%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
|
|
|
|
|
|
%check
|
|
%{_bindir}/R CMD check %{packname}
|
|
|
|
|
|
%files
|
|
%dir %{rlibdir}/%{packname}
|
|
%doc %{rlibdir}/%{packname}/html
|
|
%{rlibdir}/%{packname}/DESCRIPTION
|
|
%doc %{rlibdir}/%{packname}/CITATION
|
|
%{rlibdir}/%{packname}/INDEX
|
|
%{rlibdir}/%{packname}/NAMESPACE
|
|
%{rlibdir}/%{packname}/Meta
|
|
%{rlibdir}/%{packname}/R
|
|
%{rlibdir}/%{packname}/help
|
|
%{rlibdir}/%{packname}/data
|
|
|
|
|
|
%changelog
|
|
* Thu Jun 16 2022 misaka00251 <misaka00251@misakanet.cn> - 2.3-1
|
|
- Init package (Thanks to fedora team)
|