2018-05-18 06:47:35 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-googleapis-common-protos
|
|
|
|
#
|
2022-04-30 00:00:45 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-05-18 06:47:35 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 14:30:14 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-05-18 06:47:35 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2022-04-30 00:00:45 +02:00
|
|
|
%define modname googleapis-common-protos
|
|
|
|
%define pkgname %{lua:pname,_ = string.gsub(rpm.expand('%modname'), '-' , '_');print(pname)}
|
2018-05-18 06:47:35 +02:00
|
|
|
Name: python-googleapis-common-protos
|
2022-09-08 13:28:57 +02:00
|
|
|
Version: 1.56.4
|
2018-05-18 06:47:35 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Common protobufs used in Google APIs
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Languages/Python
|
2022-04-30 00:00:45 +02:00
|
|
|
URL: https://github.com/googleapis/python-api-common-protos
|
2018-05-18 06:47:35 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/g/googleapis-common-protos/googleapis-common-protos-%{version}.tar.gz
|
2022-04-30 00:00:45 +02:00
|
|
|
Source1: test_google_api_error_reason.py
|
|
|
|
BuildRequires: %{python_module pip}
|
2022-09-08 13:28:57 +02:00
|
|
|
BuildRequires: %{python_module protobuf >= 3.15.0}
|
2022-04-30 00:00:45 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-05-18 06:47:35 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-04-30 00:00:45 +02:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-05-18 06:47:35 +02:00
|
|
|
BuildRequires: fdupes
|
2018-12-04 18:14:07 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-09-08 13:28:57 +02:00
|
|
|
Requires: python-protobuf >= 3.15.0
|
2019-03-15 13:31:13 +01:00
|
|
|
Recommends: python-grpcio >= 1.0.0
|
2018-05-18 06:47:35 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
googleapis-common-protos contains the python classes generated from the common
|
|
|
|
protos in the googleapis_ repository.
|
|
|
|
|
|
|
|
%prep
|
2022-04-30 00:00:45 +02:00
|
|
|
%autosetup -p1 -n %{modname}-%{version}
|
|
|
|
|
|
|
|
install -p -D -t tests/unit %{SOURCE1}
|
2018-05-18 06:47:35 +02:00
|
|
|
|
|
|
|
%build
|
2022-04-30 00:00:45 +02:00
|
|
|
%pyproject_wheel
|
2018-05-18 06:47:35 +02:00
|
|
|
|
|
|
|
%install
|
2022-04-30 00:00:45 +02:00
|
|
|
%pyproject_install
|
2018-05-18 06:47:35 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
2022-04-30 00:00:45 +02:00
|
|
|
%check
|
|
|
|
%pytest
|
2019-03-15 13:31:13 +01:00
|
|
|
|
2018-05-18 06:47:35 +02:00
|
|
|
%files %{python_files}
|
2018-12-04 18:14:07 +01:00
|
|
|
%license LICENSE
|
2022-09-08 13:28:57 +02:00
|
|
|
%doc README.rst
|
2022-04-30 00:00:45 +02:00
|
|
|
%{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}/%{pkgname}-%{version}*-info
|
|
|
|
%{python_sitelib}/%{pkgname}-%{version}*-nspkg.pth
|
2018-05-18 06:47:35 +02:00
|
|
|
|
|
|
|
%changelog
|