File opensky-api.spec of Package opensky-api
#
# spec file for package opensky-api.spec
#
# Copyright (c) 2020-2022 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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/
#
Name: opensky-api
Version: 0.0.0+git20221103.3d01d1a
Release: 0
Summary: Python bindings for the OpenSky Network REST API
License: GPL-3.0
Group: Development/Languages/Python
URL: https://opensky-network.org/
Source: %{name}-%{version}.tar.xz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python3-requests
BuildArch: noarch
%python_subpackages
%description
API client implementations for the OpenSky Network in Python and Java as well
as the sources for the documentation. By using the OpenSky API, you agree with
our terms of use (https://opensky-network.org/about/terms-of-use).
%prep
%autosetup
find python/ -name "*.py" -exec sed -i 's|#!%{_bindir}/env python|#%{_bindir}/python3|' {} ";"
%build
cd python
export LC_ALL=en_US.utf8
%python_build
%install
cd python
export LC_ALL=en_US.utf8
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}/
%files %{python_files}
%license LICENSE.txt
%doc README.md
%doc docs/free/python.rst docs/free/state-vectors.rst
%{python_sitelib}/__pycache__
%{python_sitelib}/opensky_api*
%changelog