File R-rgeos.spec of Package R-rgeos

#
# spec file for package R-rgeos
#
# 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  rgeos
%global rlibdir   %{_libdir}/R/library
Name:           R-%{packname}
Version:        0.5.2
Release:        0
Summary:        Interface to Geometry Engine - Open Source ('GEOS')
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}_0.5-2.tar.gz
#BuildRequires:  R-XML
BuildRequires:  R-graphics
#BuildRequires:  R-maps
#BuildRequires:  R-maptools >= 0.8-5
BuildRequires:  R-methods
#BuildRequires:  R-rgdal
BuildRequires:  R-sp-devel >= 1.1-0
BuildRequires:  R-stats
#BuildRequires:  R-testthat
BuildRequires:  R-utils
BuildRequires:  fdupes
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  geos-devel
BuildRequires:  texinfo
BuildRequires:  texlive
%if 0%{?sle_version} > 120400 || 0%{?is_opensuse}
BuildRequires:  tex(inconsolata.sty)
%else
BuildRequires:  texlive
%endif
Requires:       R-graphics
Requires:       R-methods
Requires:       R-sp >= 1.1-0
Requires:       R-stats
Requires:       R-utils
Recommends:     R-maps
Recommends:     R-maptools >= 0.8-5
Recommends:     R-rgdal
Recommends:     R-XML

%description
Interface to Geometry Engine - Open Source ('GEOS') using the C 'API' for
topology operations on geometries. The 'GEOS' library is external to the
package, and, when installing the package from source, must be correctly
installed first. Windows and Mac Intel OS X binaries are provided on
'CRAN'. ('rgeos' >= 0.5-1): Up to and including 'GEOS' 3.7.1, topological
operations succeeded with some invalid geometries for which the same
operations fail from and including 'GEOS' 3.7.2. The 'checkValidity='
argument defaults and structure have been changed, from default FALSE to
integer default '0L' for 'GEOS' < 3.7.2 (no check), '1L' 'GEOS' >= 3.7.2
(check and warn). A value of '2L' is also provided that may be used,
assigned globally using 'set_RGEOS_CheckValidity(2L)', or locally using
the 'checkValidity=2L' argument, to attempt zero-width buffer repair if
invalid geometries are found. The previous default (FALSE, now '0L') is
fastest and used for 'GEOS' < 3.7.2, but will not warn users of possible
problems before the failure of topological operations that previously

%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

%fdupes %{buildroot}%{rlibdir}/%{packname}

%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/ChangeLog
%doc %{rlibdir}/%{packname}/README
%{rlibdir}/%{packname}/SVN_VERSION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/poly-ex-gpc
%{rlibdir}/%{packname}/test_cases
%{rlibdir}/%{packname}/wkts

%changelog
openSUSE Build Service is sponsored by