From 14a4ac8884fa004ef10534530b0cfd043f86c863 Mon Sep 17 00:00:00 2001 From: Odilon Sousa Date: Tue, 24 Sep 2024 12:03:06 -0300 Subject: [PATCH] Add python-cloudevents --- comps/comps-pulpcore-el8.xml | 1 + comps/comps-pulpcore-el9.xml | 1 + package_manifest.yaml | 1 + .../cloudevents-1.11.0.tar.gz | 1 + .../python-cloudevents.spec | 62 +++++++++++++++++++ 5 files changed, 66 insertions(+) create mode 120000 packages/python-cloudevents/cloudevents-1.11.0.tar.gz create mode 100644 packages/python-cloudevents/python-cloudevents.spec diff --git a/comps/comps-pulpcore-el8.xml b/comps/comps-pulpcore-el8.xml index 16465f543..cd106d5b0 100644 --- a/comps/comps-pulpcore-el8.xml +++ b/comps/comps-pulpcore-el8.xml @@ -69,6 +69,7 @@ python3.11-cleo python3.11-click python3.11-click-shell + python3.11-python-cloudevents python3.11-colorama python3.11-commonmark python3.11-contextlib2 diff --git a/comps/comps-pulpcore-el9.xml b/comps/comps-pulpcore-el9.xml index 8db29f931..56b4df7e4 100644 --- a/comps/comps-pulpcore-el9.xml +++ b/comps/comps-pulpcore-el9.xml @@ -66,6 +66,7 @@ python3.11-cleo python3.11-click python3.11-click-shell + python3.11-python-cloudevents python3.11-colorama python3.11-commonmark python3.11-contextlib2 diff --git a/package_manifest.yaml b/package_manifest.yaml index 074061510..13b3a5db7 100644 --- a/package_manifest.yaml +++ b/package_manifest.yaml @@ -192,6 +192,7 @@ tier4_packages: python-cleo: {} python-click: {} python-click-shell: {} + python-cloudevents: {} python-colorama: {} python-commonmark: {} python-contextlib2: {} diff --git a/packages/python-cloudevents/cloudevents-1.11.0.tar.gz b/packages/python-cloudevents/cloudevents-1.11.0.tar.gz new file mode 120000 index 000000000..2d2f1cfd8 --- /dev/null +++ b/packages/python-cloudevents/cloudevents-1.11.0.tar.gz @@ -0,0 +1 @@ +../../.git/annex/objects/ZF/pQ/SHA256E-s33670--5be990583e99f3b08af5a709460e20b25cb169270227957a20b47a6ec8635e66.tar.gz/SHA256E-s33670--5be990583e99f3b08af5a709460e20b25cb169270227957a20b47a6ec8635e66.tar.gz \ No newline at end of file diff --git a/packages/python-cloudevents/python-cloudevents.spec b/packages/python-cloudevents/python-cloudevents.spec new file mode 100644 index 000000000..a7a281a63 --- /dev/null +++ b/packages/python-cloudevents/python-cloudevents.spec @@ -0,0 +1,62 @@ +%global python3_pkgversion 3.11 +%global __python3 /usr/bin/python3.11 + +# Created by pyp2rpm-3.3.3 +%global pypi_name cloudevents + +Name: python-%{pypi_name} +Version: 1.11.0 +Release: 1%{?dist} +Summary: Python SDK for CloudEvents + +License: Apache Software License 2.0 +URL: https://github.com/cloudevents/sdk-python/ +Source0: https://files.pythonhosted.org/packages/source/c/%{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}-deprecation >= 2.0 +Requires: python%{python3_pkgversion}-deprecation < 3.0 + + +%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} +%license LICENSE +%doc README.md +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info + + +%changelog +* Tue Sep 24 2024 Odilon Sousa - 1.11.0-1 +- Initial package.