%define name opensearch-py %define version 2.7.1 %define unmangled_name opensearch_py %define unmangled_version 2.7.1 %define release 2 Summary: Python client for OpenSearch Name: %{name} Version: %{version} Release: %{release} Source0: %{unmangled_name}-%{unmangled_version}.tar.gz License: Apache License, Version 2.0 Group: Development/Libraries BuildRoot: %{_tmppath}/%{unmangled_name}-%{version}-%{release}-buildroot Prefix: %{_prefix} BuildArch: noarch Vendor: Honza Král Url: https://github.com/open/opensearch-py BuildRequires: python3-setuptools, python3-devel %{?python_disable_dependency_generator} %description Python client for OpenSearch. %package -n python3-opensearch Summary: Python client for OpenSearch Requires: python3-certifi, python3-urllib3 %description -n python3-opensearch Python client for OpenSearch. %prep %autosetup -n %{unmangled_name}-%{unmangled_version} %build %py3_build %install %py3_install rm -rf %{buildroot}/usr/lib/python*/site-packages/*.egg-info/requires.txt rm -rf %{buildroot}/usr/share/doc/%{name}/ %clean rm -rf %{buildroot} %files -n python3-opensearch %{python3_sitelib}/opensearchpy/ %{python3_sitelib}/opensearch_py*.egg-info %changelog * Sat Oct 12 2024 log2timeline development team 2.7.1-1 - Auto-generated