Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: rgeos
Upstream-Contact: Roger Bivand <Roger.Bivand@nhh.no>
Source: https://cran.r-project.org/package=rgeos

Files: *
Copyright: 2009-2016 Roger Bivand, Colin Rundel, Edzer Pebesma, Rainer Stuetz, Karl Ove Hufthammer
License: GPL-2+

Files: R/Rgpc_funcs.R
Copyright: 2003-2010 Roger D. Peng <rpeng@jhsph.edu>
           2021 Alan Murta and the Advanced Interfaces Group, University of Manchester
License: MIT
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 .
 The above copyright notice and this permission notice shall be included in all
 copies or substantial portions of the Software.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
Comment: Recently GPC library was released under
  https://github.com/rickbrew/GeneralPolygonClipper
 .
  Date: Fri, 3 Feb 2017 10:58:09 +0100
  From: Roger Bivand <Roger.Bivand@nhh.no>
 .
   On Fri, 3 Feb 2017, Andreas Tille wrote:
   >
   > I intended to package rgeos for Debian since it would enable the test
   > suite of some other package.  Unfortunately rgeos contains
   > R/Rgpc_funcs.R which uses gpclib that has a license:
   >
   >   Free for non-commercial use; commercial use prohibited (see the files
   >   `gpc.c' and `gpc.h' for details)
   >
   > So how could this be GPL-2?
 .
   Obviously it is, because rgeos neither suggests, links to, imports or
   depends on the R gpclib package, nor does it load or attach that package.
 .
   The functions in R/gpc_geos.R convert sp objects to R gpclib classes,
   defined in R/Rgpc_funcs.R. The examples in man/gpc-new-generics.Rd
   expressly show how to use GEOS compiled code instead of gpclib compiled
   code to yield the same results. That is, when rgeos was first published in
   2011, one of its intentions was to show that nobody needed to use the
   R gpclib package with its awkward license, but that the code in
   R/Rgpc_funcs.R provided a drop-in replacement - load rgeos instead of
   gpclib and get the same output but without the gpclib license issue. The
   code copied from gpclib/R/Rgpc.R to rgeos/R is:
 .
   ## Copyright (C) 2003-2010 Roger D. Peng <rpeng@jhsph.edu>
 .
   Our understanding of the R gpclib LICENSE is that it only refers to the
   code written by Alan Murta and "taken" by this former employer - that is
   the files src/gpc.*. This is evidenced by the verbatim text of the package
   LICENSE file: Free for non-commercial use; commercial use prohibited (see
   the files `gpc.c' and `gpc.h' for details). Obviously C and R code written
   by the maintainer or contributed by others is not covered by this
   restriction.
 .
 .
 Summarising the content of the last paragraph which is not worth quoting:
 .
 The purposes of rgeos is to provide a substitute for gpclib,  The LICENSE
 file of the R gpclib package should have been drafted to state that only
 src/gpc.* are covered by the conditions stated therein.

Files: debian/*
Copyright: 2016 Andreas Tille <tille@debian.org>
License: GPL-2+

License: GPL-2+
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.
 .
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 .
 On Debian systems, the complete text of the GNU General Public
 License version 2 can be found in ‘/usr/share/common-licenses/GPL-2’.
