Skip to content

Commit

Permalink
Add python-proto-plus
Browse files Browse the repository at this point in the history
  • Loading branch information
Odilhao committed Sep 23, 2024
1 parent c41607c commit 82b723e
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 0 deletions.
1 change: 1 addition & 0 deletions comps/comps-pulpcore-el9.xml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@
<packagereq type="default">python3.11-productmd</packagereq>
<packagereq type="default">python3.11-prometheus-client</packagereq>
<packagereq type="default">python3.11-protobuf</packagereq>
<packagereq type="default">python3.11-proto-plus</packagereq>
<packagereq type="default">python3.11-psycopg</packagereq>
<packagereq type="default">python3.11-psycopg2</packagereq>
<packagereq type="default">python3.11-ptyprocess</packagereq>
Expand Down
1 change: 1 addition & 0 deletions package_manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ tier3_packages:
python-hatch_fancy_pypi_readme: {}
python-hatch: {}
python-protobuf: {}
python-proto-plus: {}

tier4_packages:
hosts:
Expand Down
1 change: 1 addition & 0 deletions packages/python-proto-plus/proto-plus-1.24.0.tar.gz
60 changes: 60 additions & 0 deletions packages/python-proto-plus/python-proto-plus.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
%global python3_pkgversion 3.11
%global __python3 /usr/bin/python3.11

# Created by pyp2rpm-3.3.3
%global pypi_name proto-plus

Name: python-%{pypi_name}
Version: 1.24.0
Release: 1%{?dist}
Summary: Beautiful, Pythonic protocol buffers.

License: Apache 2.0
URL: https://github.com/googleapis/proto-plus-python
Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch

BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools


%description
%{summary}


%package -n python%{python3_pkgversion}-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pypi_name}}
Requires: python%{python3_pkgversion}-protobuf >= 3.19.0
Requires: python%{python3_pkgversion}-protobuf < 6


%description -n python%{python3_pkgversion}-%{pypi_name}
%{summary}


%prep
set -ex
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info


%build
set -ex
%py3_build


%install
set -ex
%py3_install


%files -n python%{python3_pkgversion}-%{pypi_name}
%{python3_sitelib}/proto
%{python3_sitelib}/proto_plus-%{version}-py%{python3_version}.egg-info


%changelog
* Mon Sep 23 2024 Odilon Sousa - 1.24.0-1
- Initial package.

0 comments on commit 82b723e

Please sign in to comment.