Markéta Machová
da470d4040
* Add field `experimental_features` to message `PythonSettings` (#249) - from version 1.64.0 * Add FieldInfo.referenced_types for generics (2ba3577) * Un-deprecate Endpoint.aliases field (2ba3577) * Fix formatting in http.proto comments (2ba3577) * Improve MethodSettings selector examples (2ba3577) * Reformat comments in context proto (2ba3577) * Update ResourceDescriptor.plural docs with AIP-122 nested collections guidance (2ba3577) - Adjust upstream source name in spec file - Remove unnecessary %{modname} and %{pkgname} variables OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-googleapis-common-protos?expand=0&rev=48
76 lines
2.3 KiB
RPMSpec
76 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-googleapis-common-protos
|
|
#
|
|
# Copyright (c) 2024 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/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-googleapis-common-protos
|
|
Version: 1.65.0
|
|
Release: 0
|
|
Summary: Common protobufs used in Google APIs
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/googleapis/python-api-common-protos
|
|
Source: https://files.pythonhosted.org/packages/source/g/googleapis_common_protos/googleapis_common_protos-%{version}.tar.gz
|
|
Source1: test_google_api_error_reason.py
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module protobuf >= 3.20.2}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-protobuf >= 3.20.2
|
|
Recommends: python-grpcio >= 1.0.0
|
|
BuildArch: noarch
|
|
%if 0%{?sle_version} >= 150400
|
|
Obsoletes: python3-googleapis-common-protos < %{version}
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
googleapis-common-protos contains the python classes generated from the common
|
|
protos in the googleapis_ repository.
|
|
|
|
%prep
|
|
%autosetup -p1 -n googleapis_common_protos-%{version}
|
|
|
|
install -p -D -t tests/unit %{SOURCE1}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst
|
|
%dir %{python_sitelib}/google
|
|
%{python_sitelib}/google/type
|
|
%{python_sitelib}/google/longrunning
|
|
%{python_sitelib}/google/rpc
|
|
%{python_sitelib}/google/logging
|
|
%{python_sitelib}/google/api
|
|
%{python_sitelib}/google/gapic
|
|
%{python_sitelib}/google/cloud
|
|
%{python_sitelib}/googleapis_common_protos-%{version}*-info
|
|
|
|
%changelog
|