!1 Init package
From: @misaka00251 Reviewed-by: @laokz Signed-off-by: @laokz
This commit is contained in:
commit
e79e9a2696
57
R-lmodel2.spec
Normal file
57
R-lmodel2.spec
Normal file
@ -0,0 +1,57 @@
|
||||
%global packname lmodel2
|
||||
%global rlibdir %{_datadir}/R/library
|
||||
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 1.7.3
|
||||
Release: 1
|
||||
Summary: Model II Regression
|
||||
|
||||
License: GPLv2
|
||||
URL: https://CRAN.R-project.org/package=%{packname}
|
||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_1.7-3.tar.gz
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: R-devel tex(latex)
|
||||
BuildRequires: tex(sidecap.sty)
|
||||
|
||||
%description
|
||||
Computes model II simple linear regression using ordinary least squares
|
||||
(OLS), major axis (MA), standard major axis (SMA), and ranged major axis
|
||||
|
||||
|
||||
%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}/doc
|
||||
%doc %{rlibdir}/%{packname}/html
|
||||
%{rlibdir}/%{packname}/DESCRIPTION
|
||||
%{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> - 1.7.3-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
lmodel2_1.7-3.tar.gz
Normal file
BIN
lmodel2_1.7-3.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user