Init package
This commit is contained in:
parent
98bb3f5e0a
commit
d52db064f5
108
R-sp.spec
Normal file
108
R-sp.spec
Normal file
@ -0,0 +1,108 @@
|
||||
%global packname sp
|
||||
%global packver 1.4-5
|
||||
%global rlibdir %{_libdir}/R/library
|
||||
|
||||
%global __suggests_exclude ^R\\((gstat|maptools)\\)
|
||||
|
||||
# Deps loop so not this time
|
||||
%global with_suggests 0
|
||||
%global with_loop 0
|
||||
|
||||
Name: R-%{packname}
|
||||
Version: 1.4.5
|
||||
Release: 1
|
||||
Summary: Classes and Methods for Spatial Data
|
||||
|
||||
License: GPLv2+
|
||||
URL: https://CRAN.R-project.org/package=%{packname}
|
||||
Source0: https://cran.r-project.org/src/contrib/%{packname}_%{packver}.tar.gz
|
||||
|
||||
BuildRequires: R-devel
|
||||
BuildRequires: tex(latex)
|
||||
BuildRequires: R-methods
|
||||
BuildRequires: R-utils
|
||||
BuildRequires: R-stats
|
||||
BuildRequires: R-graphics
|
||||
BuildRequires: R-grDevices
|
||||
BuildRequires: R-lattice
|
||||
BuildRequires: R-grid
|
||||
%if 0%{with_suggests}
|
||||
BuildRequires: R-RColorBrewer
|
||||
BuildRequires: R-rgdal >= 1.2.3
|
||||
BuildRequires: R-gstat
|
||||
BuildRequires: R-maptools
|
||||
BuildRequires: R-deldir
|
||||
%if 0%{with_loop}
|
||||
BuildRequires: R-rgeos >= 0.3.13
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%description
|
||||
Classes and methods for spatial data; the classes document where the spatial
|
||||
location information resides, for 2D or 3D data. Utility functions are
|
||||
provided, e.g. for plotting data as maps, spatial selection, as well as methods
|
||||
for retrieving coordinates, for subsetting, print, summary, etc.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
Development files for %{name}.
|
||||
|
||||
|
||||
%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
|
||||
%if %{with_suggests}
|
||||
%if %{with_loop}
|
||||
%{_bindir}/R CMD check %{packname}
|
||||
%else
|
||||
rm %{packname}/tests/agg.R* %{packname}/tests/over2.R*
|
||||
%{_bindir}/R CMD check %{packname} --no-examples
|
||||
%endif
|
||||
%else
|
||||
rm %{packname}/tests/agg.R* %{packname}/tests/over2.R*
|
||||
_R_CHECK_FORCE_SUGGESTS_=0 \
|
||||
%{_bindir}/R CMD check %{packname} --no-examples
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%dir %{rlibdir}/%{packname}
|
||||
%doc %{rlibdir}/%{packname}/doc
|
||||
%doc %{rlibdir}/%{packname}/html
|
||||
%doc %{rlibdir}/%{packname}/CITATION
|
||||
%{rlibdir}/%{packname}/DESCRIPTION
|
||||
%doc %{rlibdir}/%{packname}/NEWS.Rd
|
||||
%{rlibdir}/%{packname}/INDEX
|
||||
%{rlibdir}/%{packname}/NAMESPACE
|
||||
%{rlibdir}/%{packname}/Meta
|
||||
%{rlibdir}/%{packname}/R
|
||||
%{rlibdir}/%{packname}/data
|
||||
%{rlibdir}/%{packname}/demo
|
||||
%{rlibdir}/%{packname}/external
|
||||
%{rlibdir}/%{packname}/help
|
||||
%dir %{rlibdir}/%{packname}/libs
|
||||
%{rlibdir}/%{packname}/libs/%{packname}.so
|
||||
|
||||
%files devel
|
||||
%{rlibdir}/%{packname}/include
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Jun 16 2022 misaka00251 <misaka00251@misakanet.cn> - 1.4.5-1
|
||||
- Init package (Thanks to fedora team)
|
||||
BIN
sp_1.4-5.tar.gz
Normal file
BIN
sp_1.4-5.tar.gz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user