From 0ebf088c7c5403c3d23555acc6aba6061b89468c Mon Sep 17 00:00:00 2001
From: pluskalm <>
Date: Apr 15 2025 14:56:01 +0000
Subject: Update python-Fiona to version 1.10.1 / rev 5 via SR 1269491


https://build.opensuse.org/request/show/1269491
by user pluskalm + anag_factory

---

diff --git a/.files b/.files
index 974b441..4e921ab 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index d53eb8c..d536521 100644
--- a/.rev
+++ b/.rev
@@ -33,4 +33,12 @@ Notable dependencies of geopandas includes several commonly used OpenStreetMap l
     <comment></comment>
     <requestid>1184097</requestid>
   </revision>
+  <revision rev="5" vrev="1">
+    <srcmd5>9b6190a984df9f0b126f83437f0c4812</srcmd5>
+    <version>1.10.1</version>
+    <time>1744728452</time>
+    <user>anag_factory</user>
+    <comment></comment>
+    <requestid>1269491</requestid>
+  </revision>
 </revisionlist>
diff --git a/1314.patch b/1314.patch
deleted file mode 100644
index 26f11b1..0000000
--- a/1314.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From b6d6d9d7f11ba9ff6e3778832c4306ac0a8fab06 Mon Sep 17 00:00:00 2001
-From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
-Date: Sat, 2 Dec 2023 04:49:36 -0500
-Subject: [PATCH] Fix leak in set_proj_search_path
-
-The `CSLAddString` function takes a `char *`, not a `const char *`,
-which may turn into an error on new GCC. It also allocates a new array
-when given `NULL`, which is _copied_ by `OSRSetPROJSearchPaths`, so it
-is leaked.
----
- fiona/_env.pyx | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/fiona/_env.pyx b/fiona/_env.pyx
-index f33f44e9f..af0603cc6 100644
---- a/fiona/_env.pyx
-+++ b/fiona/_env.pyx
-@@ -64,12 +64,13 @@ except ImportError:
- cdef bint is_64bit = sys.maxsize > 2 ** 32
- 
- cdef void set_proj_search_path(object path):
--    cdef const char **paths = NULL
-+    cdef char **paths = NULL
-     cdef const char *path_c = NULL
-     path_b = path.encode("utf-8")
-     path_c = path_b
-     paths = CSLAddString(paths, path_c)
--    OSRSetPROJSearchPaths(paths)
-+    OSRSetPROJSearchPaths(<const char *const *>paths)
-+    CSLDestroy(paths)
- 
- 
- cdef _safe_osr_release(OGRSpatialReferenceH srs):
diff --git a/fiona-1.10.1.tar.gz b/fiona-1.10.1.tar.gz
new file mode 120000
index 0000000..deee123
--- /dev/null
+++ b/fiona-1.10.1.tar.gz
@@ -0,0 +1 @@
+/ipfs/bafybeic23jnr6jabroxbqjft5sj75uw55qs324ihvra4hweparxxmjqyji
\ No newline at end of file
diff --git a/fiona-1.9.6.tar.gz b/fiona-1.9.6.tar.gz
deleted file mode 120000
index 3a3a164..0000000
--- a/fiona-1.9.6.tar.gz
+++ /dev/null
@@ -1 +0,0 @@
-/ipfs/bafybeigh3w3hcze2lzb7pd6acaa5lgzcrnvasbmsbqhyvgbqes2izijc4e
\ No newline at end of file
diff --git a/python-Fiona.changes b/python-Fiona.changes
index 2145a79..a0002ed 100644
--- a/python-Fiona.changes
+++ b/python-Fiona.changes
@@ -1,4 +1,39 @@
 -------------------------------------------------------------------
+Thu Apr 10 06:40:53 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
+
+- Update to 1.10.1:
+  * Bug fixes:
+    + Logging in the CRS class no longer tries to print representations of
+      objects that may be NULL when searching for authority matches.
+    + The truncate VSI plugin callback has been implemented.
+    + The Pyopener registry and VSI plugin have been rewritten to avoid
+      filename conflicts and to be compatible with multithreading.
+    + A CSLConstList ctypedef has been added and is used where appropriate.
+    + Fiona model objects have a informative, printable representation again.
+    + Fiona can again set fields with values that are instances of classes
+      derived from date, time, and datetime.
+    + Fiona's python opener VSI plugin prefix has been changed to
+      "vsifiopener"
+    + Add a 16-bit integer type "int16" based on OGR's OSFTInt16 integer
+      sub-type.
+    + Allow a GeoJSON collection's layer name to be set on opening in
+      write mode
+    + An implementation of the VSI flush callback has been added to
+      _vsiopener.pyx.
+    + Openers are now registered only by urlpath. The mode is no longer
+      considered as OGR drivers may use a mix of modes when creating a
+      new dataset.
+  * New features:
+   + All supported Fiona field types are now represented by classes in
+     fiona.schema.
+   + The filter, map, and reduce CLI commands from the public domain
+     version 1.1.0 of fio-planet have been incorporated into Fiona's core
+     set of commands
+   + Python openers can now support discovery of auxiliary "sidecar" files
+     like .aux.xml, .msk, and .tfw files for GeoTIFFs.
+- Drop patch 1314.patch, now included upstream.
+
+-------------------------------------------------------------------
 Wed Jun 19 19:49:34 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
 
 - Update to 1.9.6
diff --git a/python-Fiona.spec b/python-Fiona.spec
index 21f20f6..d6ff7de 100644
--- a/python-Fiona.spec
+++ b/python-Fiona.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package python-Fiona
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,17 +18,14 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-Fiona
-Version:        1.9.6
+Version:        1.10.1
 Release:        0
 Summary:        Module for reading and writing spatial data files
 License:        BSD-3-Clause
-Group:          Development/Languages/Python
 URL:            https://github.com/Toblerity/Fiona
 Source:         https://files.pythonhosted.org/packages/source/f/fiona/fiona-%{version}.tar.gz
-# PATCH-FIX-UPSTREAM - Fix leak in set_proj_search_path
-Patch:          https://github.com/Toblerity/Fiona/pull/1314.patch
 BuildRequires:  %{python_module Cython}
-BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module devel >= 3.9}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
@@ -38,27 +35,27 @@ BuildRequires:  libgdal-devel
 BuildRequires:  proj
 BuildRequires:  proj-devel
 BuildRequires:  python-rpm-macros
-Requires:       python-attrs >= 17
-Requires:       python-click >= 4.0
-Requires:       python-click-plugins >= 1.0
-Requires:       python-cligj
-Requires:       python-munch
-Requires:       python-six >= 1.7
+Requires:       python-attrs >= 19.2
+Requires:       python-certifi
+Requires:       python-click >= 8.0
+Requires:       python-click-plugins
+Requires:       python-cligj >= 0.5
 Recommends:     python-Shapely
 Recommends:     python-boto3
-Recommends:     python-certifi
+Recommends:     python-pyparsing
 # SECTION test requirements
 BuildRequires:  %{python_module Shapely}
-BuildRequires:  %{python_module attrs >= 17}
+BuildRequires:  %{python_module aiohttp}
+BuildRequires:  %{python_module attrs >= 19.2}
 BuildRequires:  %{python_module boto3}
-BuildRequires:  %{python_module click >= 4.0}
-BuildRequires:  %{python_module click-plugins >= 1.0}
-BuildRequires:  %{python_module cligj}
-BuildRequires:  %{python_module munch}
+BuildRequires:  %{python_module click >= 8.0}
+BuildRequires:  %{python_module click-plugins}
+BuildRequires:  %{python_module cligj >= 0.5}
+BuildRequires:  %{python_module fsspec}
+BuildRequires:  %{python_module pyparsing}
 BuildRequires:  %{python_module pyproj}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module pytz}
-BuildRequires:  %{python_module six >= 1.7}
 # /SECTION
 Recommends:     fiona-fio
 %python_subpackages
@@ -89,7 +86,7 @@ using OGR's Fiona package.
 
 %check
 # The following require network
-skiptests="wheel or test_open_zip_https or test_open_http or test_collection_http or test_collection_zip_http"
+skiptests="wheel or test_open_zip_https or test_open_http or test_collection_http or test_collection_zip_http or test_opener_fsspec_zip_http_fs"
 # Reason for this failure not recorded
 skiptests="$skiptests or GPSTrackMaker"
 # December 2022: test_no_append_driver_cannot_append has started failing for FlatGeobuf and GeoJSONSeq only
@@ -106,7 +103,7 @@ mv fiona_temp fiona
 %doc CHANGES.txt CREDITS.txt README.rst
 %license LICENSE.txt
 %{python_sitearch}/fiona
-%{python_sitearch}/fiona-%{version}*-info
+%{python_sitearch}/fiona-%{version}.dist-info
 
 %files -n fiona-fio
 %license LICENSE.txt