| |
@@ -2,13 +2,15 @@
|
| |
%global Srcname Fiona
|
| |
|
| |
Name: python-%{srcname}
|
| |
- Version: 1.7.13
|
| |
- Release: 1%{?dist}
|
| |
+ Version: 1.8
|
| |
+ %global pre a2
|
| |
+ %global uversion %{version}%{?pre}
|
| |
+ Release: 0.2.%{pre}%{?dist}
|
| |
Summary: Fiona reads and writes spatial data files
|
| |
|
| |
License: BSD
|
| |
URL: https://pypi.python.org/pypi/%{srcname}
|
| |
- Source0: https://github.com/Toblerity/%{Srcname}/archive/%{version}/%{Srcname}-%{version}.tar.gz
|
| |
+ Source0: https://github.com/Toblerity/%{Srcname}/archive/%{uversion}/%{Srcname}-%{uversion}.tar.gz
|
| |
# https://github.com/Toblerity/Fiona/pull/610
|
| |
Patch0001: 0001-TST-Fix-flaky-listing-test.patch
|
| |
|
| |
@@ -16,55 +18,9 @@
|
| |
BuildRequires: gdal >= 1.8
|
| |
BuildRequires: gdal-devel >= 1.8
|
| |
|
| |
- %description
|
| |
- Fiona is designed to be simple and dependable. It focuses on reading and
|
| |
- writing data in standard Python IO style and relies upon familiar Python types
|
| |
- and protocols such as files, dictionaries, mappings, and iterators instead of
|
| |
- classes specific to OGR. Fiona can read and write real-world data using
|
| |
- multi-layered GIS formats and zipped virtual file systems and integrates
|
| |
- readily with other Python GIS packages such as pyproj, Rtree, and Shapely.
|
| |
-
|
| |
+ %{?python_enable_dependency_generator}
|
| |
|
| |
- %package -n python2-%{srcname}
|
| |
- Summary: %{summary}
|
| |
- %{?python_provide:%python_provide python2-%{srcname}}
|
| |
-
|
| |
- BuildRequires: python2-devel
|
| |
- BuildRequires: python2-Cython
|
| |
- BuildRequires: python2-six >= 1.7
|
| |
- %if %{fedora} > 27
|
| |
- BuildRequires: python2-munch
|
| |
- %else
|
| |
- BuildRequires: python-munch
|
| |
- %endif
|
| |
- BuildRequires: python2-cligj >= 0.4
|
| |
- BuildRequires: python2-click-plugins
|
| |
- %if %{fedora} > 27
|
| |
- BuildRequires: python2-shapely
|
| |
- %else
|
| |
- BuildRequires: python-shapely
|
| |
- %endif
|
| |
- BuildRequires: python2-enum34
|
| |
-
|
| |
- BuildRequires: python2-nose
|
| |
- BuildRequires: python2-pytest
|
| |
-
|
| |
- Requires: python2-six >= 1.7
|
| |
- %if %{fedora} > 27
|
| |
- Requires: python2-munch
|
| |
- %else
|
| |
- Requires: python-munch
|
| |
- %endif
|
| |
- Requires: python2-cligj >= 0.4
|
| |
- Requires: python2-click-plugins
|
| |
- %if %{fedora} > 27
|
| |
- Requires: python2-shapely
|
| |
- %else
|
| |
- Requires: python-shapely
|
| |
- %endif
|
| |
- Requires: python2-enum34
|
| |
-
|
| |
- %description -n python2-%{srcname}
|
| |
+ %description
|
| |
Fiona is designed to be simple and dependable. It focuses on reading and
|
| |
writing data in standard Python IO style and relies upon familiar Python types
|
| |
and protocols such as files, dictionaries, mappings, and iterators instead of
|
| |
@@ -78,21 +34,20 @@
|
| |
%{?python_provide:%python_provide python3-%{srcname}}
|
| |
|
| |
BuildRequires: python3-devel
|
| |
+ BuildRequires: python3-setuptools
|
| |
BuildRequires: python3-Cython
|
| |
+ BuildRequires: python3-boto3
|
| |
BuildRequires: python3-six >= 1.7
|
| |
BuildRequires: python3-munch
|
| |
BuildRequires: python3-cligj >= 0.4
|
| |
BuildRequires: python3-click-plugins
|
| |
BuildRequires: python3-shapely
|
| |
|
| |
- BuildRequires: python3-nose
|
| |
+ BuildRequires: python3-packaging
|
| |
BuildRequires: python3-pytest
|
| |
|
| |
- Requires: python3-six >= 1.7
|
| |
- Requires: python3-munch
|
| |
- Requires: python3-cligj >= 0.4
|
| |
- Requires: python3-click-plugins
|
| |
- Requires: python3-shapely
|
| |
+ Recommends: python3-boto3
|
| |
+ Recommends: python3-shapely
|
| |
|
| |
%description -n python3-%{srcname}
|
| |
Fiona is designed to be simple and dependable. It focuses on reading and
|
| |
@@ -104,16 +59,14 @@
|
| |
|
| |
|
| |
%prep
|
| |
- %autosetup -n %{Srcname}-%{version} -p1
|
| |
+ %autosetup -n %{Srcname}-%{uversion} -p1
|
| |
|
| |
|
| |
%build
|
| |
- %py2_build
|
| |
%py3_build
|
| |
|
| |
|
| |
%install
|
| |
- %py2_install
|
| |
%py3_install
|
| |
|
| |
|
| |
@@ -124,28 +77,27 @@
|
| |
pushd temp
|
| |
ln -s ../tests
|
| |
PYTHONPATH="%{buildroot}%{python3_sitearch}" \
|
| |
- nosetests-%{python3_version} --exclude test_filter_vsi --exclude test_geopackage --exclude test_write_mismatch
|
| |
- PYTHONPATH="%{buildroot}%{python2_sitearch}" \
|
| |
- nosetests --exclude test_filter_vsi --exclude test_geopackage --exclude test_write_mismatch
|
| |
+ %{__python3} -m pytest -m "not network"
|
| |
popd
|
| |
|
| |
|
| |
- %files -n python2-%{srcname}
|
| |
- %license LICENSE.txt
|
| |
- %doc README.rst CHANGES.txt CREDITS.txt
|
| |
- %{python2_sitearch}/%{srcname}
|
| |
- %{python2_sitearch}/%{Srcname}-%{version}-py%{python2_version}.egg-info
|
| |
-
|
| |
-
|
| |
%files -n python3-%{srcname}
|
| |
%license LICENSE.txt
|
| |
%doc README.rst CHANGES.txt CREDITS.txt
|
| |
%{_bindir}/fio
|
| |
%{python3_sitearch}/%{srcname}
|
| |
- %{python3_sitearch}/%{Srcname}-%{version}-py%{python3_version}.egg-info
|
| |
+ %{python3_sitearch}/%{Srcname}-%{uversion}-py%{python3_version}.egg-info
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Sat Sep 22 2018 Miro Hrončok <mhroncok@redhat.com> - 1.8-0.2.a2
|
| |
+ - Drop Python 2 subpackage
|
| |
+
|
| |
+ * Fri Sep 21 2018 Miro Hrončok <mhroncok@redhat.com> - 1.8-0.1.a2
|
| |
+ - Update to 1.8a2
|
| |
+ - Use automatic Python dependency generator
|
| |
+ - Use pytest instead of nose
|
| |
+
|
| |
* Wed Jul 18 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.7.13-1
|
| |
- Update to latest version
|
| |
|
| |