Accepting request 942907 from Application:Geo

- 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/request/show/942907
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/geos?expand=0&rev=17
This commit is contained in:
Dominique Leuenberger 2021-12-28 11:26:32 +00:00 committed by Git OBS Bridge
commit ff165d5f38
5 changed files with 58 additions and 67 deletions

3
geos-3.10.1.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a8148eec9636814c8ab0f8f5266ce6f9b914ed65b0d083fc43bb0bbb01f83648
size 6714713

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7e630507dcac9dc07565d249a26f06a15c9f5b0c52dd29129a0e3d381d7e382a
size 4761372

View File

@ -1,31 +0,0 @@
.TH "geos-config" "1" "October 25, 2004" "geos-config" "User Commands"
.SH "NAME"
geos\-config \- returns information about installed GEOS libraries and binaries
.SH "SYNOPSIS"
.PP
.B geos\-config
[OPTIONS]
.SH "DESCRIPTION"
.PP
The \fIgeos\-config\fP shell script displays configuration information for installed GEOS libraries and binaries.
.SH "OPTIONS"
.TP
\fB\-\-prefix\fR
print the prefix used by geos
.TP
\fB\-\-version\fR
print the GEOS version
.TP
\fB\-\-libs\fR
print the linker flags that are necessary to link to GEOS
.TP
\fB\-\-cflags\fR
print the compiler flags that are necessary to compile a
plug\-in
.TP
\fB\-\-includes\fR
show location of C++ header files
.TP
\fB\-\-jtsport\fR
show the version of the Java Topology Suite this version of GEOS was ported from

View File

@ -1,3 +1,33 @@
-------------------------------------------------------------------
Tue Dec 28 08:59:59 UTC 2021 - Martin Pluskal <mpluskal@suse.com>
- 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
-------------------------------------------------------------------
Tue Nov 16 07:45:45 UTC 2021 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -16,17 +16,16 @@
#
%define uver 3_9_1
%define uver 3_10_1
Name: geos
Version: 3.9.1
Version: 3.10.1
Release: 0
Summary: Geometry Engine - Open Source
License: LGPL-2.1-only
Group: Development/Libraries/C and C++
URL: https://trac.osgeo.org/geos/
URL: https://libgeos.org
Source0: https://download.osgeo.org/%{name}/%{name}-%{version}.tar.bz2
Source1: %{name}-config.1
BuildRequires: fdupes
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig
@ -37,11 +36,11 @@ 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}
%package -n libgeos%{uver}
Summary: Geometry Engine library
Group: System/Libraries
%description -n libgeos-%{uver}
%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
@ -61,7 +60,7 @@ 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%{uver} = %{version}
Requires: libgeos_c1 = %{version}
Provides: lib%{name}-devel = %{version}
@ -79,37 +78,29 @@ use GEOS.
%setup -q
%build
# Disable inline for armv6/7 - https://trac.osgeo.org/geos/ticket/993
%configure \
%ifarch %{arm}
--disable-inline \
%endif
--disable-static
make %{?_smp_mflags}
%cmake
%cmake_build
# tests fail with older releases and non-intel architectures
# while this was reported to upstream, there has been no reply
%ifarch %{ix86} x86_64
%check
make %{?_smp_mflags} check
%endif
# path needs to be exported otherwise unit tests will fail
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
%ctest
%install
%make_install
install -Dpm 0644 %{SOURCE1} \
%{buildroot}%{_mandir}/man1/geos-config.1
# do not ship static libraries or la files
find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print
%fdupes %{buildroot}%{python_sitelib}
%cmake_install
%post -n libgeos-%{uver} -p /sbin/ldconfig
%postun -n libgeos-%{uver} -p /sbin/ldconfig
%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 -n libgeos-%{uver}
%files
%license COPYING
%{_libdir}/libgeos-%{version}.so
%{_bindir}/geosop
%files -n libgeos%{uver}
%license COPYING
%{_libdir}/libgeos.so.*
%files -n libgeos_c1
%license COPYING
@ -117,11 +108,12 @@ find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print
%files devel
%license COPYING
%doc AUTHORS NEWS README.md ChangeLog
%{_mandir}/man1/%{name}-config.1%{ext_man}
%{_bindir}/%{name}-config
%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