Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:andythe_great:branches:Application:Geo
python-rasterio
python-rasterio.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-rasterio.spec of Package python-rasterio
# # spec file for package python-rasterio # # Copyright (c) 2020 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 skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-rasterio Version: 1.1.5 Release: 0 Summary: Raster I/O package for use with Numpy and SciPy License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/mapbox/rasterio # pypi source lack test data Source: https://github.com/mapbox/rasterio/archive/%{version}.tar.gz#/rasterio-%{version}.tar.gz BuildRequires: %{python_module Cython} BuildRequires: %{python_module GDAL} BuildRequires: %{python_module affine} BuildRequires: %{python_module attrs} BuildRequires: %{python_module boto3 >= 1.2.4} BuildRequires: %{python_module click >= 4.0} BuildRequires: %{python_module click-plugins} BuildRequires: %{python_module cligj >= 0.5} BuildRequires: %{python_module devel} BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module mock} BuildRequires: %{python_module numpy-devel} BuildRequires: %{python_module numpy} BuildRequires: %{python_module packaging} BuildRequires: %{python_module pytest >= 2.8.2} BuildRequires: %{python_module pytest-cov >= 2.2.0} BuildRequires: %{python_module py} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module snuggs >= 1.4.1} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: proj >= 6.0 BuildRequires: python-rpm-macros # rasterio not compatible with GDAL 3.1 BuildRequires: pkgconfig(gdal) >= 1.11 Requires: python-GDAL Requires: python-affine Requires: python-attrs Requires: python-click >= 4.0 Requires: python-click-plugins Requires: python-cligj >= 0.5 Requires: python-numpy Requires(post): update-alternatives Requires(postun): update-alternatives %if 0%{?suse_version} <= 1510 BuildRequires: %{python_module enum34} Requires: python-enum34 %endif %python_subpackages %description Rasterio is raster I/O package for use with Numpy and SciPy. It employs GDAL under the hood for file I/O and raster formatting. Its functions typically accept and return Numpy ndarrays. %prep %setup -q -n rasterio-%{version} %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %python_clone -a %{buildroot}%{_bindir}/rio %post %python_install_alternative rio %postun %python_uninstall_alternative rio %check # We need to exclude tests require a network connection and tests dependent on specific paths rm -rf build rm -rf _build.* mv rasterio rasterio_temp %{python_expand rm -rf build rm -rf _build.* export PYTHONPATH=%{buildroot}%{$python_sitearch} pytest-%{$python_bin_suffix} -m 'not (wheel or network)' } mv rasterio_temp rasterio %files %{python_files} %doc AUTHORS.txt CHANGES.txt README.rst %license LICENSE.txt %python_alternative %{_bindir}/rio %{python_sitearch}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor