File R-rgdal.spec of Package R-rgdal
#
# spec file for package R-rgdal
#
# Copyright (c) 2019 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 rgdal
%global rlibdir %{_libdir}/R/library
Name: R-%{packname}
Version: 1.4.9
Release: 0
Summary: Bindings for the 'Geospatial' Data Abstraction Library
License: GPL-2.0-or-later
Group: Development/Libraries/Other
URL: http://cran.r-project.org/web/packages/%{packname}
Source: http://cran.r-project.org/src/contrib/%{packname}_1.4-8.tar.gz
Patch0: ignore-versions.patch
BuildRequires: R-grDevices
BuildRequires: R-graphics
BuildRequires: R-maptools
BuildRequires: R-methods
BuildRequires: R-sp-devel >= 1.1-0
BuildRequires: R-stats
BuildRequires: R-utils
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gdal >= 1.11.4
BuildRequires: pkgconfig
BuildRequires: proj
BuildRequires: texinfo
BuildRequires: pkgconfig(gdal)
BuildRequires: pkgconfig(proj)
%if 0%{?sle_version} > 120400 || 0%{?is_opensuse}
BuildRequires: tex(ae.sty)
BuildRequires: tex(english.ldf)
BuildRequires: tex(fancyvrb.sty)
BuildRequires: tex(inconsolata.sty)
BuildRequires: tex(natbib.sty)
BuildRequires: tex(times.sty)
%endif
BuildRequires: texlive-collection-fontsrecommended
Requires: R-grDevices
Requires: R-graphics
Requires: R-methods
Requires: R-sp >= 1.1-0
Requires: R-stats
Requires: R-utils
Requires: gdal >= 1.11.4
Requires: proj
%description
Provides bindings to the 'Geospatial' Data Abstraction Library ('GDAL')
(>=1.11.4) and access to projection/transformation operations from the
'PROJ.4' library. The 'GDAL' and 'PROJ.4' libraries are external to the
package, and, when installing the package from source, must be correctly
installed first. From 'rgdal' 1.4.1, provision is made for 'PROJ6'
accommodation, with 'PROJ6' functionality to follow; from 1.4.1 'rgdal'
will build and function when 'PROJ' >= 6. Both 'GDAL' raster and 'OGR'
vector map data can be imported into R, and 'GDAL' raster data and 'OGR'
vector data exported. Use is made of classes defined in the 'sp' package.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/Other
Requires: %{name} = %{version}
%description devel
Development files and headers needed to build software using %{name}.
%prep
%setup -q -c -n %{packname}
%patch0 -p1
%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
rm %{buildroot}%{rlibdir}/%{packname}/OSGeo4W_test %{buildroot}%{rlibdir}/%{packname}/README.windows
%fdupes %{buildroot}%{rlibdir}/%{packname}
%check
#%{_bindir}/R CMD check %{packname}
%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/README
%doc %{rlibdir}/%{packname}/ChangeLog
%license %{rlibdir}/%{packname}/LICENSE.TXT
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/SVN_VERSION
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}%{_sysconfdir}
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/vectors
%{rlibdir}/%{packname}/pictures
%files devel
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/m4
%changelog