diff --git a/python-openai.changes b/python-openai.changes index 574ae9d..f421b4c 100644 --- a/python-openai.changes +++ b/python-openai.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jan 26 10:13:45 UTC 2023 - Matej Cepl + +- Clean up the SPEC file. + ------------------------------------------------------------------- Thu Jan 26 07:29:00 UTC 2023 - Adrian Schröter diff --git a/python-openai.spec b/python-openai.spec index ca9e750..7c1a5e2 100644 --- a/python-openai.spec +++ b/python-openai.spec @@ -16,31 +16,30 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 %define skip_python36 1 Name: python-openai Version: 0.26.2 Release: 0 -License: MIT Summary: OpenAI bindings for python +License: MIT Group: Development/Languages/Python URL: https://github.com/openai/openai-python Source: openai-python-%{version}.tar.gz +BuildRequires: %{python_module aiohttp} BuildRequires: %{python_module pip} BuildRequires: %{python_module poetry} +BuildRequires: %{python_module pytest >= 3.5} +BuildRequires: %{python_module pytest-mock} +BuildRequires: %{python_module tqdm} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module pytest >= 3.5} -BuildRequires: %{python_module aiohttp} -BuildRequires: %{python_module tqdm} -BuildRequires: %{python_module pytest-mock} -Requires(post): update-alternatives -Requires(postun):update-alternatives Requires: python-aiohttp Requires: python-requests >= 2.20 Requires: python-tqdm +Requires(post): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch %python_subpackages @@ -56,7 +55,7 @@ You can find usage examples for the OpenAI Python library in https://github.com/openai/openai-cookbook/. %prep -%setup -q -n openai-python-%{version} +%autosetup -p1 -n openai-python-%{version} %build %pyproject_wheel @@ -76,6 +75,7 @@ You can find usage examples for the OpenAI Python library in %files %{python_files} %python_alternative %{_bindir}/openai -%{python_sitelib}/* +%{python_sitelib}/openai +%{python_sitelib}/openai-%{version}*-info %changelog