geos/geos.spec
Martin Pluskal 03ab9be6fd - Update to version 3.10.1:
* Fix mistake in constants used to select WKB flavor in C API (GH489, Paul Ramsey)
  * Fix crash when reducing precision on a LinearRing (#1135, Paul Ramsey)
  * Fix GeoJSON crash on invalid input (GH498, Even Rouault)
  * Use std::sqrt exclusively for Solaris build (Paul Ramsey)
  * Fix mistaken version numbers in some parts of 3.10.0 (Paul Ramsey)
- Changes for version 3.10.0:
  * Preserve ordering of lines in overlay results (Martin Davis)
  * Check for invalid geometry before fixing polygonal result in Densifier
    and DPSimplifier (Martin Davis)
  * Fix overlay handling of flat interior lines (JTS-685, Martin Davis)
  * Fix IsValidOp to correctly report invalid nested MultiPolygons (#1112, Martin Davis)
  * Fix BufferOp to avoid artifacts in certain polygon buffers (#1101, Martin Davis)
  * Fix IsValidOp to correctly report certain kinds of invalid LinearRings (Martin Davis)
  * Improve STRtree performance through TemplateSTRtree implementation (Daniel Baston)
  * Fix DiscreteFrechetDistance to use initial points of input lines (#1128, Martin Davis)
  * Autoconf build system is dropped in favour of CMake
    See README.md and INSTALL.md for examples of usage
  * Libtool is no longer used for in favour of CMake
    Therefor libgeos.la is no longer built/installed
  * #1094, #1090: Drop inlines.cpp to address duplicate symbols on many platforms
    (Regina Obe)
  * GH475: Do not return NaN from GEOSProjectNormalized_r (Paul Ramsey)
  * GH442: BufferOp now returns unique_ptr<Geometry> result (Paul Ramsey)
- Drop geos-config.1
- Update project and download URL

OBS-URL: https://build.opensuse.org/package/show/Application:Geo/geos?expand=0&rev=41
2021-12-28 09:39:39 +00:00

119 lines
3.5 KiB
RPMSpec

#
# spec file for package geos
#
# Copyright (c) 2021 SUSE LLC
#
# 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/
#
%define uver 3_10_1
Name: geos
Version: 3.10.1
Release: 0
Summary: Geometry Engine - Open Source
License: LGPL-2.1-only
Group: Development/Libraries/C and C++
URL: https://libgeos.org
Source0: https://download.osgeo.org/%{name}/%{name}-%{version}.tar.bz2
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
%description
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
Suite (JTS). As such, it aims to contain the complete functionality of JTS
in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
predicate functions and spatial operators, as well as specific JTS topology
functions such as IsValid().
%package -n libgeos-%{uver}
Summary: Geometry Engine library
Group: System/Libraries
%description -n libgeos-%{uver}
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
Suite (JTS). As such, it aims to contain the complete functionality of JTS
in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
predicate functions and spatial operators, as well as specific JTS topology
functions such as IsValid().
%package -n libgeos_c1
Summary: C language interface for the GEOS library
Group: System/Libraries
Provides: geos = %{version}-%{release}
Obsoletes: geos < %{version}-%{release}
%description -n libgeos_c1
This subpackage contains a shared library providing a C linkage
interface for the (C++) GEOS library.
%package devel
Summary: Development files for GEOS
Group: Development/Libraries/C and C++
Requires: libgeos-%{uver} = %{version}
Requires: libgeos_c1 = %{version}
Provides: lib%{name}-devel = %{version}
%description devel
GEOS (Geometry Engine - Open Source) is a C++ port of the Java Topology
Suite (JTS). As such, it aims to contain the complete functionality of
JTS in C++. This includes all the OpenGIS "Simple Features for SQL" spatial
predicate functions and spatial operators, as well as specific JTS topology
functions such as IsValid()
This package contains the development files to build applications that
use GEOS.
%prep
%setup -q
%build
%cmake
%cmake_build
%check
%ctest
%install
%cmake_install
%post -n libgeos-%{uver} -p /sbin/ldconfig
%postun -n libgeos-%{uver} -p /sbin/ldconfig
%post -n libgeos_c1 -p /sbin/ldconfig
%postun -n libgeos_c1 -p /sbin/ldconfig
%files
%license COPYING
%{_bindir}/geosop
%files -n libgeos-%{uver}
%license COPYING
%{_libdir}/libgeos.so.*
%files -n libgeos_c1
%license COPYING
%{_libdir}/libgeos_c.so.*
%files devel
%license COPYING
%doc AUTHORS NEWS README.md
%{_bindir}/geos-config
%{_includedir}/*
%{_libdir}/pkgconfig/%{name}.pc
%dir %{_libdir}/cmake/GEOS
%{_libdir}/cmake/GEOS/geos-*
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}_c.so
%changelog